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
 
 public abstract class AbstractPhaseScope<Solution_> extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected intbestSolutionStepIndexprotected longchildThreadsScoreCalculationCountprotected LongendingScoreCalculationCountprotected LongendingSystemTimeMillisprotected org.slf4j.Loggerloggerprotected SolverScope<Solution_>solverScopeprotected ScorestartingScoreprotected LongstartingScoreCalculationCountprotected LongstartingSystemTimeMillis
 - 
Constructor SummaryConstructors Constructor Description AbstractPhaseScope(SolverScope<Solution_> solverScope)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
loggerprotected final transient org.slf4j.Logger logger 
 - 
solverScopeprotected final SolverScope<Solution_> solverScope 
 - 
startingSystemTimeMillisprotected Long startingSystemTimeMillis 
 - 
startingScoreCalculationCountprotected Long startingScoreCalculationCount 
 - 
startingScoreprotected Score startingScore 
 - 
endingSystemTimeMillisprotected Long endingSystemTimeMillis 
 - 
endingScoreCalculationCountprotected Long endingScoreCalculationCount 
 - 
childThreadsScoreCalculationCountprotected long childThreadsScoreCalculationCount 
 - 
bestSolutionStepIndexprotected int bestSolutionStepIndex 
 
- 
 - 
Constructor Detail- 
AbstractPhaseScopepublic AbstractPhaseScope(SolverScope<Solution_> solverScope) 
 
- 
 - 
Method Detail- 
getSolverScopepublic SolverScope<Solution_> getSolverScope() 
 - 
getStartingSystemTimeMillispublic Long getStartingSystemTimeMillis() 
 - 
getStartingScorepublic <Score_ extends Score<Score_>> Score_ getStartingScore() 
 - 
getEndingSystemTimeMillispublic Long getEndingSystemTimeMillis() 
 - 
getBestSolutionStepIndexpublic int getBestSolutionStepIndex() 
 - 
setBestSolutionStepIndexpublic void setBestSolutionStepIndex(int bestSolutionStepIndex) 
 - 
getLastCompletedStepScopepublic abstract AbstractStepScope<Solution_> getLastCompletedStepScope() 
 - 
resetpublic void reset() 
 - 
startingNowpublic void startingNow() 
 - 
endingNowpublic void endingNow() 
 - 
getSolutionDescriptorpublic SolutionDescriptor<Solution_> getSolutionDescriptor() 
 - 
getScoreDefinitionpublic <Score_ extends Score<Score_>> ScoreDefinition<Score_> getScoreDefinition() 
 - 
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
 
 - 
getScoreDirectorpublic <Score_ extends Score<Score_>> InnerScoreDirector<Solution_,Score_> getScoreDirector() 
 - 
getWorkingSolutionpublic Solution_ getWorkingSolution() 
 - 
getWorkingEntityCountpublic int getWorkingEntityCount() 
 - 
getWorkingValueCountpublic int getWorkingValueCount() 
 - 
calculateScorepublic <Score_ extends Score<Score_>> Score_ calculateScore() 
 - 
assertExpectedWorkingScorepublic <Score_ extends Score<Score_>> void assertExpectedWorkingScore(Score_ expectedWorkingScore, Object completedAction) 
 - 
assertWorkingScoreFromScratchpublic <Score_ extends Score<Score_>> void assertWorkingScoreFromScratch(Score_ workingScore, Object completedAction) 
 - 
assertPredictedScoreFromScratchpublic <Score_ extends Score<Score_>> void assertPredictedScoreFromScratch(Score_ workingScore, Object completedAction) 
 - 
assertShadowVariablesAreNotStalepublic <Score_ extends Score<Score_>> void assertShadowVariablesAreNotStale(Score_ workingScore, Object completedAction) 
 - 
getWorkingRandompublic Random getWorkingRandom() 
 - 
isBestSolutionInitializedpublic boolean isBestSolutionInitialized() 
 - 
getBestScorepublic <Score_ extends Score<Score_>> Score_ getBestScore() 
 - 
getPhaseBestSolutionTimeMillispublic long getPhaseBestSolutionTimeMillis() 
 - 
getNextStepIndexpublic int getNextStepIndex() 
 
- 
 
-