Class AbstractPhaseScope<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractPhaseScope<Solution_>
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- Direct Known Subclasses:
- ConstructionHeuristicPhaseScope,- CustomPhaseScope,- ExhaustiveSearchPhaseScope,- LocalSearchPhaseScope,- PartitionedSearchPhaseScope
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddChildThreadsScoreCalculationCount(long addition) <Score_ extends Score<Score_>>
 voidassertExpectedWorkingScore(Score_ expectedWorkingScore, Object completedAction) <Score_ extends Score<Score_>>
 voidassertPredictedScoreFromScratch(Score_ workingScore, Object completedAction) <Score_ extends Score<Score_>>
 voidassertShadowVariablesAreNotStale(Score_ workingScore, Object completedAction) <Score_ extends Score<Score_>>
 voidassertWorkingScoreFromScratch(Score_ workingScore, Object completedAction) long<Score_ extends Score<Score_>>
 Score_longvoid<Score_ extends Score<Score_>>
 Score_intabstract AbstractStepScope<Solution_>intlonglonglonglong<Score_ extends Score<Score_>>
 InnerScoreDirector<Solution_,Score_> <Score_ extends Score<Score_>>
 Score_intintbooleanvoidreset()voidsetBestSolutionStepIndex(int bestSolutionStepIndex) voidtoString()
- 
Field Details- 
loggerprotected final transient org.slf4j.Logger logger
- 
solverScope
- 
startingSystemTimeMillis
- 
startingScoreCalculationCount
- 
startingScore
- 
endingSystemTimeMillis
- 
endingScoreCalculationCount
- 
childThreadsScoreCalculationCountprotected long childThreadsScoreCalculationCount
- 
bestSolutionStepIndexprotected int bestSolutionStepIndex
 
- 
- 
Constructor Details- 
AbstractPhaseScope
 
- 
- 
Method Details- 
getSolverScope
- 
getStartingSystemTimeMillis
- 
getStartingScore
- 
getEndingSystemTimeMillis
- 
getBestSolutionStepIndexpublic int getBestSolutionStepIndex()
- 
setBestSolutionStepIndexpublic void setBestSolutionStepIndex(int bestSolutionStepIndex) 
- 
getLastCompletedStepScope
- 
resetpublic void reset()
- 
startingNowpublic void startingNow()
- 
endingNowpublic void endingNow()
- 
getSolutionDescriptor
- 
calculateSolverTimeMillisSpentUpToNowpublic long calculateSolverTimeMillisSpentUpToNow()
- 
calculatePhaseTimeMillisSpentUpToNowpublic long calculatePhaseTimeMillisSpentUpToNow()
- 
getPhaseTimeMillisSpentpublic long getPhaseTimeMillisSpent()
- 
addChildThreadsScoreCalculationCountpublic void addChildThreadsScoreCalculationCount(long addition) 
- 
getPhaseScoreCalculationCountpublic long getPhaseScoreCalculationCount()
- 
getPhaseScoreCalculationSpeedpublic long getPhaseScoreCalculationSpeed()- Returns:
- at least 0, per second
 
- 
getScoreDirector
- 
getWorkingSolution
- 
getWorkingEntityCountpublic int getWorkingEntityCount()
- 
getWorkingValueCountpublic int getWorkingValueCount()
- 
calculateScore
- 
assertExpectedWorkingScore
- 
assertWorkingScoreFromScratch
- 
assertPredictedScoreFromScratch
- 
assertShadowVariablesAreNotStale
- 
getWorkingRandom
- 
isBestSolutionInitializedpublic boolean isBestSolutionInitialized()
- 
getBestScore
- 
getPhaseBestSolutionTimeMillispublic long getPhaseBestSolutionTimeMillis()
- 
getNextStepIndexpublic int getNextStepIndex()
- 
toString
 
-