Class ProjectGlobalLog
java.lang.Object
com.strategyquant.tradinglib.project.ProjectGlobalLog
The type Project global log.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectGlobalLog(String projectFolder)Instantiates a new Project global log.ProjectGlobalLog(String projectFolder, String rangerDir)Instantiates a new Project global log. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAcceptedStats(ProjectRunInfo projectRunInfo, ISQTask task)Add accepted stats.voidaddDismissalStats(ProjectRunInfo projectRunInfo, ISQTask task)Add dismissal stats.voidaddDurationStats(ProjectRunInfo projectRunInfo)Add duration stats.voidclose()Close.com.strategyquant.tradinglib.project.TaskStatsgetTaskStats(int taskHash)Gets task stats.voidincreaseStats(int taskHash, String action1, long count1, String action2, long count2)Increase stats.voidincreaseStats(String display, int taskHash, String action, long count, int order)Increase stats.booleanIs ranger log boolean.load()Load string.voidPrint.voidPrint.voidPrint double separator.voidPrint empty line.voidPrint separator.voidsetStats(String display, int taskHash, String action, long count, int order, String percentageCompareAction)Sets stats.
-
Constructor Details
-
ProjectGlobalLog
Instantiates a new Project global log.- Parameters:
projectFolder- the project folder- Throws:
Exception- the exception
-
ProjectGlobalLog
Instantiates a new Project global log.- Parameters:
projectFolder- the project folderrangerDir- the ranger dir- Throws:
Exception- the exception
-
-
Method Details
-
print
Print.- Parameters:
text- the textaddNewLine- the add new line
-
print
Print.- Parameters:
text- the text
-
printSeparator
public void printSeparator()Print separator. -
printDoubleSeparator
public void printDoubleSeparator()Print double separator. -
printEmptyLine
public void printEmptyLine()Print empty line. -
load
Load string.- Returns:
- the string
- Throws:
Exception- the exception
-
close
public void close()Close. -
addDurationStats
Add duration stats.- Parameters:
projectRunInfo- the project run info
-
addAcceptedStats
Add accepted stats.- Parameters:
projectRunInfo- the project run infotask- the task
-
addDismissalStats
Add dismissal stats.- Parameters:
projectRunInfo- the project run infotask- the task
-
getTaskStats
public com.strategyquant.tradinglib.project.TaskStats getTaskStats(int taskHash)Gets task stats.- Parameters:
taskHash- the task hash- Returns:
- the task stats
-
increaseStats
Increase stats.- Parameters:
taskHash- the task hashaction1- the action 1count1- the count 1action2- the action 2count2- the count 2
-
increaseStats
Increase stats.- Parameters:
display- the displaytaskHash- the task hashaction- the actioncount- the countorder- the order
-
setStats
public void setStats(String display, int taskHash, String action, long count, int order, String percentageCompareAction)Sets stats.- Parameters:
display- the displaytaskHash- the task hashaction- the actioncount- the countorder- the orderpercentageCompareAction- the percentage compare action
-
isRangerLog
public boolean isRangerLog()Is ranger log boolean.- Returns:
- the boolean
-