Class AbstractPhaseScope<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractPhaseScope<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- Direct Known Subclasses:
ConstructionHeuristicPhaseScope
,CustomPhaseScope
,ExhaustiveSearchPhaseScope
,LocalSearchPhaseScope
,PartitionedSearchPhaseScope
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildThreadsScoreCalculationCount
(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_long
void
<Score_ extends Score<Score_>>
Score_int
abstract AbstractStepScope<Solution_>
int
long
long
long
long
<Score_ extends Score<Score_>>
InnerScoreDirector<Solution_,Score_> <Score_ extends Score<Score_>>
Score_int
int
boolean
void
reset()
void
setBestSolutionStepIndex
(int bestSolutionStepIndex) void
toString()
-
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
-