Class ProjectGlobalLog
java.lang.Object
com.strategyquant.tradinglib.project.ProjectGlobalLog
The type Project global log.
-
Constructor Summary
ConstructorDescriptionProjectGlobalLog(String projectFolder)
Instantiates a new Project global log.ProjectGlobalLog(String projectFolder, String rangerDir)
Instantiates a new Project global log. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAcceptedStats(ProjectRunInfo projectRunInfo, ISQTask task)
Add accepted stats.void
addDismissalStats(ProjectRunInfo projectRunInfo, ISQTask task)
Add dismissal stats.void
addDurationStats(ProjectRunInfo projectRunInfo)
Add duration stats.void
close()
Close.com.strategyquant.tradinglib.project.TaskStats
getTaskStats(int taskHash)
Gets task stats.void
increaseStats(int taskHash, String action1, long count1, String action2, long count2)
Increase stats.void
increaseStats(String display, int taskHash, String action, long count, int order)
Increase stats.boolean
Is ranger log boolean.load()
Load string.void
Print.void
Print.void
Print double separator.void
Print empty line.void
Print separator.void
setStats(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
-