Class ProjectEngine

java.lang.Object
com.strategyquant.tradinglib.project.ProjectEngine

public class ProjectEngine extends Object
The type Project engine.
  • Field Details

    • loading

      public static boolean loading
      The constant loading.
  • Method Details

    • list

      public static List<SQProject> list()
      List list.
      Returns:
      the list
    • listCustomProjects

      public static List<SQProject> listCustomProjects()
      List custom projects list.
      Returns:
      the list
    • getInstance

      public static ProjectEngine getInstance()
      Gets instance.
      Returns:
      the instance
    • get

      public static SQProject get(String projectName) throws Exception
      Get sq project.
      Parameters:
      projectName - the project name
      Returns:
      the sq project
      Throws:
      Exception - the exception
    • add

      public static SQProject add(String projectName) throws Exception
      Add sq project.
      Parameters:
      projectName - the project name
      Returns:
      the sq project
      Throws:
      Exception - the exception
    • add

      public static SQProject add(String projectName, File projectFile, org.jdom2.Element configXml, HashMap<String,​org.jdom2.Element> taskConfigs) throws Exception
      Add sq project.
      Parameters:
      projectName - the project name
      projectFile - the project file
      configXml - the config xml
      taskConfigs - the task configs
      Returns:
      the sq project
      Throws:
      Exception - the exception
    • remove

      public static void remove(String projectName) throws Exception
      Remove.
      Parameters:
      projectName - the project name
      Throws:
      Exception - the exception
    • rename

      public static void rename(String oldProjectName, String newProjectName) throws Exception
      Rename.
      Parameters:
      oldProjectName - the old project name
      newProjectName - the new project name
      Throws:
      Exception - the exception
    • projectExists

      public static boolean projectExists(String projectName)
      Project exists boolean.
      Parameters:
      projectName - the project name
      Returns:
      the boolean
    • generateProjectName

      public static String generateProjectName(String projectName)
      Generate project name string.
      Parameters:
      projectName - the project name
      Returns:
      the string
    • isDefaulProject

      public static boolean isDefaulProject(String projectName)
      Is defaul project boolean.
      Parameters:
      projectName - the project name
      Returns:
      the boolean
    • loadStrategies

      public static void loadStrategies()
      Load strategies.
    • stopAll

      public static void stopAll()
      Stop all.
    • isInitialized

      public static boolean isInitialized()
      Is initialized boolean.
      Returns:
      the boolean
    • projectFinished

      public static void projectFinished(String projectName)
      Project finished.
      Parameters:
      projectName - the project name