Class BestSolutionRecaller<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.solver.recaller.BestSolutionRecaller<Solution_>
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- All Implemented Interfaces:
- EventListener,- PhaseLifecycleListener<Solution_>,- SolverLifecycleListener<Solution_>
Remembers the 
best solution that a Solver encounters.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected SolverEventSupport<Solution_>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidprocessWorkingSolutionDuringMove(Score score, AbstractStepScope<Solution_> stepScope) voidvoidsetAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified) voidsetAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch) voidsetAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale) voidsetSolverEventSupport(SolverEventSupport<Solution_> solverEventSupport) voidsolvingStarted(SolverScope<Solution_> solverScope) voidupdateBestSolutionAndFire(SolverScope<Solution_> solverScope) voidupdateBestSolutionAndFireIfInitialized(SolverScope<Solution_> solverScope) Methods inherited from class org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapterphaseEnded, phaseStarted, stepEnded, stepStartedMethods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdaptersolvingEndedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListenersolvingEnded, solvingError
- 
Field Details- 
assertInitialScoreFromScratchprotected boolean assertInitialScoreFromScratch
- 
assertShadowVariablesAreNotStaleprotected boolean assertShadowVariablesAreNotStale
- 
assertBestScoreIsUnmodifiedprotected boolean assertBestScoreIsUnmodified
- 
solverEventSupport
 
- 
- 
Constructor Details- 
BestSolutionRecallerpublic BestSolutionRecaller()
 
- 
- 
Method Details- 
setAssertInitialScoreFromScratchpublic void setAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch) 
- 
setAssertShadowVariablesAreNotStalepublic void setAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale) 
- 
setAssertBestScoreIsUnmodifiedpublic void setAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified) 
- 
setSolverEventSupport
- 
solvingStarted- Specified by:
- solvingStartedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingStartedin class- SolverLifecycleListenerAdapter<Solution_>
 
- 
processWorkingSolutionDuringConstructionHeuristicsSteppublic void processWorkingSolutionDuringConstructionHeuristicsStep(AbstractStepScope<Solution_> stepScope) 
- 
processWorkingSolutionDuringStep
- 
processWorkingSolutionDuringMove
- 
updateBestSolutionAndFire
- 
updateBestSolutionAndFireIfInitialized
 
-