Class ProjectEngine
java.lang.Object
com.strategyquant.tradinglib.project.ProjectEngine
The type Project engine.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SQProjectAdd sq project.static SQProjectadd(String projectName, File projectFile, org.jdom2.Element configXml, HashMap<String,org.jdom2.Element> taskConfigs)Add sq project.static StringgenerateProjectName(String projectName)Generate project name string.static SQProjectGet sq project.static ProjectEngineGets instance.static booleanisDefaulProject(String projectName)Is defaul project boolean.static booleanIs initialized boolean.list()List list.List custom projects list.static voidLoad strategies.static booleanprojectExists(String projectName)Project exists boolean.static voidprojectFinished(String projectName)Project finished.static voidRemove.static voidRename.static voidstopAll()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
-