Class ProjectRunInfo

java.lang.Object
com.strategyquant.tradinglib.ProjectRunInfo

public class ProjectRunInfo extends Object
The Class ProjectRunInfo.
  • Field Details

    • ERROR_TYPE_GENERAL

      public static final int ERROR_TYPE_GENERAL
      The Constant ERROR_TYPE_GENERAL.
      See Also:
      Constant Field Values
    • ERROR_TYPE_FATAL

      public static final int ERROR_TYPE_FATAL
      The Constant ERROR_TYPE_FATAL.
      See Also:
      Constant Field Values
    • backtestsPerformed

      public long backtestsPerformed
      The backtests performed.
    • strategiesGenerated

      public long strategiesGenerated
      The strategies generated.
    • strategiesRejected

      public long strategiesRejected
      The strategies rejected.
    • strategiesRejectedPct

      public double strategiesRejectedPct
      The strategies rejected pct.
    • strategiesAccepted

      public long strategiesAccepted
      The strategies accepted.
    • strategiesAcceptedPct

      public double strategiesAcceptedPct
      The strategies accepted pct.
    • timePerStrategy

      public long timePerStrategy
      The time per strategy.
    • timePerAcceptedStrategy

      public long timePerAcceptedStrategy
      The time per accepted strategy.
    • strategiesPerHour

      public double strategiesPerHour
      The strategies per hour.
    • acceptedStrategiesPerHour

      public double acceptedStrategiesPerHour
      The accepted strategies per hour.
    • strategiesPassed

      public long strategiesPassed
      The strategies passed.
    • strategiesFailed

      public long strategiesFailed
      The strategies failed.
    • startTime

      public long startTime
      The start time.
    • totalProjectRunningTime

      public long totalProjectRunningTime
      The total project running time.
    • projectRunningTime

      public long projectRunningTime
      The project running time.
    • taskRunningTime

      public long taskRunningTime
      The task running time.
    • timeToFinish

      public long timeToFinish
      The time to finish.
    • jobExceptionsCount

      public int jobExceptionsCount
      The job exceptions count.
    • totalJobsDone

      public int totalJobsDone
      The total jobs done.
    • runningJobs

      public long runningJobs
      The running jobs.
    • waitingJobs

      public long waitingJobs
      The waiting jobs.
    • totalSteps

      public int totalSteps
      The total steps.
    • step

      public int step
      The step.
    • infiniteProgress

      public boolean infiniteProgress
      The infinite progress.
    • progressPercent

      public double progressPercent
      The progress percent.
    • info

      public String info
      The info.
    • error

      public String error
      The error info.
    • errorInfo

      public String errorInfo
      The error info.
    • errorType

      public int errorType
      The error type.
  • Constructor Details

    • ProjectRunInfo

      public ProjectRunInfo()
  • Method Details

    • copyFrom

      public void copyFrom(ProjectRunInfo projectRunInfo, boolean includingDismissalStats)
      Copy from.
      Parameters:
      projectRunInfo - the project run info
      includingDismissalStats - the including dismissal stats
    • increaseDismissalReasonCount

      public void increaseDismissalReasonCount(int dismissalReason)
      Increase dismissal reason count.
      Parameters:
      dismissalReason - the dismissal reason
    • getDismissalReasons

      public it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<String> 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 progress
      resetProjectRunningTime - the reset project running time