Package com.strategyquant.tradinglib
Class ProjectRunInfo
java.lang.Object
com.strategyquant.tradinglib.ProjectRunInfo
The Class ProjectRunInfo.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
The accepted strategies per hour.long
The backtests performed.The error info.static int
The Constant ERROR_TYPE_FATAL.static int
The Constant ERROR_TYPE_GENERAL.The error info.int
The error type.boolean
The infinite progress.The info.int
The job exceptions count.double
The progress percent.long
The project running time.long
The running jobs.long
The start time.int
The step.long
The strategies accepted.double
The strategies accepted pct.long
The strategies failed.long
The strategies generated.long
The strategies passed.double
The strategies per hour.long
The strategies rejected.double
The strategies rejected pct.long
The task running time.long
The time per accepted strategy.long
The time per strategy.long
The time to finish.int
The total jobs done.long
The total project running time.int
The total steps.long
The waiting jobs. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom(ProjectRunInfo projectRunInfo, boolean includingDismissalStats)
Copy from.it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap
Gets the accepted counts.it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap
Gets the dismissal counts.it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<String>
Gets the dismissal reasons.Gets the duration stats.void
increaseAcceptedReasonCount(int reason)
Increase accepted reason count.void
increaseDismissalReasonCount(int dismissalReason)
Increase dismissal reason count.void
reset(boolean infiniteProgress, boolean resetProjectRunningTime)
Reset.void
Reset accepted counts.void
Reset dismissal counts.void
Reset duration stats.void
updateDurationStats(com.strategyquant.tradinglib.backtestrunner.DurationStats durationStatsObj)
Update duration stats.
-
Field Details
-
ERROR_TYPE_GENERAL
public static final int ERROR_TYPE_GENERALThe Constant ERROR_TYPE_GENERAL.- See Also:
- Constant Field Values
-
ERROR_TYPE_FATAL
public static final int ERROR_TYPE_FATALThe Constant ERROR_TYPE_FATAL.- See Also:
- Constant Field Values
-
backtestsPerformed
public long backtestsPerformedThe backtests performed. -
strategiesGenerated
public long strategiesGeneratedThe strategies generated. -
strategiesRejected
public long strategiesRejectedThe strategies rejected. -
strategiesRejectedPct
public double strategiesRejectedPctThe strategies rejected pct. -
strategiesAccepted
public long strategiesAcceptedThe strategies accepted. -
strategiesAcceptedPct
public double strategiesAcceptedPctThe strategies accepted pct. -
timePerStrategy
public long timePerStrategyThe time per strategy. -
timePerAcceptedStrategy
public long timePerAcceptedStrategyThe time per accepted strategy. -
strategiesPerHour
public double strategiesPerHourThe strategies per hour. -
acceptedStrategiesPerHour
public double acceptedStrategiesPerHourThe accepted strategies per hour. -
strategiesPassed
public long strategiesPassedThe strategies passed. -
strategiesFailed
public long strategiesFailedThe strategies failed. -
startTime
public long startTimeThe start time. -
totalProjectRunningTime
public long totalProjectRunningTimeThe total project running time. -
projectRunningTime
public long projectRunningTimeThe project running time. -
taskRunningTime
public long taskRunningTimeThe task running time. -
timeToFinish
public long timeToFinishThe time to finish. -
jobExceptionsCount
public int jobExceptionsCountThe job exceptions count. -
totalJobsDone
public int totalJobsDoneThe total jobs done. -
runningJobs
public long runningJobsThe running jobs. -
waitingJobs
public long waitingJobsThe waiting jobs. -
totalSteps
public int totalStepsThe total steps. -
step
public int stepThe step. -
infiniteProgress
public boolean infiniteProgressThe infinite progress. -
progressPercent
public double progressPercentThe progress percent. -
info
The info. -
error
The error info. -
errorInfo
The error info. -
errorType
public int errorTypeThe error type.
-
-
Constructor Details
-
ProjectRunInfo
public ProjectRunInfo()
-
-
Method Details
-
copyFrom
Copy from.- Parameters:
projectRunInfo
- the project run infoincludingDismissalStats
- the including dismissal stats
-
increaseDismissalReasonCount
public void increaseDismissalReasonCount(int dismissalReason)Increase dismissal reason count.- Parameters:
dismissalReason
- the dismissal reason
-
getDismissalReasons
Gets the dismissal reasons.- Returns:
- the dismissal reasons
-
getDismissalCounts
public it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap getDismissalCounts()Gets the dismissal counts.- Returns:
- the dismissal counts
-
resetDismissalCounts
public void resetDismissalCounts()Reset dismissal counts. -
increaseAcceptedReasonCount
public void increaseAcceptedReasonCount(int reason)Increase accepted reason count.- Parameters:
reason
- the reason
-
getAcceptedCounts
public it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap getAcceptedCounts()Gets the accepted counts.- Returns:
- the accepted counts
-
resetAcceptedCounts
public void resetAcceptedCounts()Reset accepted counts. -
updateDurationStats
public void updateDurationStats(com.strategyquant.tradinglib.backtestrunner.DurationStats durationStatsObj)Update duration stats.- Parameters:
durationStatsObj
- the duration stats obj
-
getDurationStats
public HashMap<String,com.strategyquant.tradinglib.project.ComplexDurationStats> getDurationStats()Gets the duration stats.- Returns:
- the duration stats
-
resetDurationStats
public void resetDurationStats()Reset duration stats. -
reset
public void reset(boolean infiniteProgress, boolean resetProjectRunningTime)Reset.- Parameters:
infiniteProgress
- the infinite progressresetProjectRunningTime
- the reset project running time
-