Class ProjectEngine
java.lang.Object
com.strategyquant.tradinglib.project.ProjectEngine
The type Project engine.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SQProject
Add sq project.static SQProject
add(String projectName, File projectFile, org.jdom2.Element configXml, HashMap<String,org.jdom2.Element> taskConfigs)
Add sq project.static String
generateProjectName(String projectName)
Generate project name string.static SQProject
Get sq project.static ProjectEngine
Gets instance.static boolean
isDefaulProject(String projectName)
Is defaul project boolean.static boolean
Is initialized boolean.list()
List list.List custom projects list.static void
Load strategies.static boolean
projectExists(String projectName)
Project exists boolean.static void
projectFinished(String projectName)
Project finished.static void
Remove.static void
Rename.static void
stopAll()
Stop all.
-
Field Details
-
loading
public static boolean loadingThe constant loading.
-
-
Method Details
-
list
List list.- Returns:
- the list
-
listCustomProjects
List custom projects list.- Returns:
- the list
-
getInstance
Gets instance.- Returns:
- the instance
-
get
Get sq project.- Parameters:
projectName
- the project name- Returns:
- the sq project
- Throws:
Exception
- the exception
-
add
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 ExceptionAdd sq project.- Parameters:
projectName
- the project nameprojectFile
- the project fileconfigXml
- the config xmltaskConfigs
- the task configs- Returns:
- the sq project
- Throws:
Exception
- the exception
-
remove
Remove.- Parameters:
projectName
- the project name- Throws:
Exception
- the exception
-
rename
Rename.- Parameters:
oldProjectName
- the old project namenewProjectName
- the new project name- Throws:
Exception
- the exception
-
projectExists
Project exists boolean.- Parameters:
projectName
- the project name- Returns:
- the boolean
-
generateProjectName
Generate project name string.- Parameters:
projectName
- the project name- Returns:
- the string
-
isDefaulProject
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
Project finished.- Parameters:
projectName
- the project name
-