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 DefaultSolverScope<Solution_>solverScopeprotected ScorestartingScoreprotected LongstartingScoreCalculationCountprotected LongstartingSystemTimeMillis
 - 
Constructor SummaryConstructors Constructor Description AbstractPhaseScope(DefaultSolverScope<Solution_> solverScope)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
loggerprotected final transient org.slf4j.Logger logger 
 - 
solverScopeprotected final DefaultSolverScope<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(DefaultSolverScope<Solution_> solverScope) 
 
- 
 - 
Method Detail- 
getSolverScopepublic DefaultSolverScope<Solution_> getSolverScope() 
 - 
getStartingSystemTimeMillispublic Long getStartingSystemTimeMillis() 
 - 
getStartingScorepublic 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 ScoreDefinition 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 InnerScoreDirector<Solution_> getScoreDirector() 
 - 
getWorkingSolutionpublic Solution_ getWorkingSolution() 
 - 
getWorkingEntityCountpublic int getWorkingEntityCount() 
 - 
getWorkingValueCountpublic int getWorkingValueCount() 
 - 
calculateScorepublic Score calculateScore() 
 - 
assertExpectedWorkingScorepublic void assertExpectedWorkingScore(Score expectedWorkingScore, Object completedAction) 
 - 
assertWorkingScoreFromScratchpublic void assertWorkingScoreFromScratch(Score workingScore, Object completedAction) 
 - 
assertPredictedScoreFromScratchpublic void assertPredictedScoreFromScratch(Score workingScore, Object completedAction) 
 - 
assertShadowVariablesAreNotStalepublic void assertShadowVariablesAreNotStale(Score workingScore, Object completedAction) 
 - 
getWorkingRandompublic Random getWorkingRandom() 
 - 
isBestSolutionInitializedpublic boolean isBestSolutionInitialized() 
 - 
getBestScorepublic Score getBestScore() 
 - 
getPhaseBestSolutionTimeMillispublic long getPhaseBestSolutionTimeMillis() 
 - 
getNextStepIndexpublic int getNextStepIndex() 
 
- 
 
-