Class AbstractPhaseScope<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractPhaseScope<Solution_>
- Type Parameters:
 Solution_- the solution type, the class with thePlanningSolutionannotation
- Direct Known Subclasses:
 ConstructionHeuristicPhaseScope,CustomPhaseScope,ExhaustiveSearchPhaseScope,LocalSearchPhaseScope,PartitionedSearchPhaseScope
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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
- 
logger
protected final transient org.slf4j.Logger logger - 
solverScope
 - 
startingSystemTimeMillis
 - 
startingScoreCalculationCount
 - 
startingScore
 - 
endingSystemTimeMillis
 - 
endingScoreCalculationCount
 - 
childThreadsScoreCalculationCount
protected long childThreadsScoreCalculationCount - 
bestSolutionStepIndex
protected int bestSolutionStepIndex 
 - 
 - 
Constructor Details
- 
AbstractPhaseScope
 
 - 
 - 
Method Details
- 
getSolverScope
 - 
getStartingSystemTimeMillis
 - 
getStartingScore
 - 
getEndingSystemTimeMillis
 - 
getBestSolutionStepIndex
public int getBestSolutionStepIndex() - 
setBestSolutionStepIndex
public void setBestSolutionStepIndex(int bestSolutionStepIndex)  - 
getLastCompletedStepScope
 - 
reset
public void reset() - 
startingNow
public void startingNow() - 
endingNow
public void endingNow() - 
getSolutionDescriptor
 - 
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
 
 - 
getScoreDirector
 - 
getWorkingSolution
 - 
getWorkingEntityCount
public int getWorkingEntityCount() - 
getWorkingValueCount
public int getWorkingValueCount() - 
calculateScore
 - 
assertExpectedWorkingScore
 - 
assertWorkingScoreFromScratch
 - 
assertPredictedScoreFromScratch
 - 
assertShadowVariablesAreNotStale
 - 
getWorkingRandom
 - 
isBestSolutionInitialized
public boolean isBestSolutionInitialized() - 
getBestScore
 - 
getPhaseBestSolutionTimeMillis
public long getPhaseBestSolutionTimeMillis() - 
getNextStepIndex
public int getNextStepIndex() - 
toString
 
 -