Class AbstractPhaseScope<Solution_>

    • Field Detail

      • logger

        protected final transient org.slf4j.Logger logger
      • startingSystemTimeMillis

        protected Long startingSystemTimeMillis
      • startingScoreCalculationCount

        protected Long startingScoreCalculationCount
      • startingScore

        protected Score startingScore
      • endingSystemTimeMillis

        protected Long endingSystemTimeMillis
      • endingScoreCalculationCount

        protected Long endingScoreCalculationCount
      • childThreadsScoreCalculationCount

        protected long childThreadsScoreCalculationCount
      • bestSolutionStepIndex

        protected int bestSolutionStepIndex
    • Method Detail

      • getStartingSystemTimeMillis

        public Long getStartingSystemTimeMillis()
      • getStartingScore

        public <Score_ extends Score<Score_>> Score_ getStartingScore()
      • getEndingSystemTimeMillis

        public Long getEndingSystemTimeMillis()
      • getBestSolutionStepIndex

        public int getBestSolutionStepIndex()
      • setBestSolutionStepIndex

        public void setBestSolutionStepIndex​(int bestSolutionStepIndex)
      • reset

        public void reset()
      • startingNow

        public void startingNow()
      • endingNow

        public void endingNow()
      • getScoreDefinition

        public <Score_ extends Score<Score_>> ScoreDefinition<Score_> getScoreDefinition()
      • calculateSolverTimeMillisSpentUpToNow

        public long calculateSolverTimeMillisSpentUpToNow()
      • calculatePhaseTimeMillisSpentUpToNow

        public long calculatePhaseTimeMillisSpentUpToNow()
      • getPhaseTimeMillisSpent

        public long getPhaseTimeMillisSpent()
      • addChildThreadsScoreCalculationCount

        public void addChildThreadsScoreCalculationCount​(long addition)
      • getPhaseScoreCalculationCount

        public long getPhaseScoreCalculationCount()
      • getPhaseScoreCalculationSpeed

        public long getPhaseScoreCalculationSpeed()
        Returns:
        at least 0, per second
      • getWorkingSolution

        public Solution_ getWorkingSolution()
      • getWorkingEntityCount

        public int getWorkingEntityCount()
      • getWorkingEntityList

        public List<Object> getWorkingEntityList()
      • getWorkingValueCount

        public int getWorkingValueCount()
      • calculateScore

        public <Score_ extends Score<Score_>> Score_ calculateScore()
      • assertExpectedWorkingScore

        public <Score_ extends Score<Score_>> void assertExpectedWorkingScore​(Score_ expectedWorkingScore,
                                                                              Object completedAction)
      • assertWorkingScoreFromScratch

        public <Score_ extends Score<Score_>> void assertWorkingScoreFromScratch​(Score_ workingScore,
                                                                                 Object completedAction)
      • assertPredictedScoreFromScratch

        public <Score_ extends Score<Score_>> void assertPredictedScoreFromScratch​(Score_ workingScore,
                                                                                   Object completedAction)
      • assertShadowVariablesAreNotStale

        public <Score_ extends Score<Score_>> void assertShadowVariablesAreNotStale​(Score_ workingScore,
                                                                                    Object completedAction)
      • getWorkingRandom

        public Random getWorkingRandom()
      • isBestSolutionInitialized

        public boolean isBestSolutionInitialized()
      • getBestScore

        public <Score_ extends Score<Score_>> Score_ getBestScore()
      • getPhaseBestSolutionTimeMillis

        public long getPhaseBestSolutionTimeMillis()
      • getNextStepIndex

        public int getNextStepIndex()