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_>
 
 public class BestSolutionRecaller<Solution_> extends PhaseLifecycleListenerAdapter<Solution_> Remembers thebest solutionthat aSolverencounters.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanassertBestScoreIsUnmodifiedprotected booleanassertInitialScoreFromScratchprotected booleanassertShadowVariablesAreNotStaleprotected SolverEventSupport<Solution_>solverEventSupport
 - 
Constructor SummaryConstructors Constructor Description BestSolutionRecaller()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessWorkingSolutionDuringMove(Score score, AbstractStepScope<Solution_> stepScope)voidprocessWorkingSolutionDuringStep(AbstractStepScope<Solution_> stepScope)voidsetAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified)voidsetAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch)voidsetAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale)voidsetSolverEventSupport(SolverEventSupport<Solution_> solverEventSupport)voidsolvingStarted(SolverScope<Solution_> solverScope)voidupdateBestSolution(SolverScope<Solution_> solverScope)protected voidupdateBestSolution(SolverScope<Solution_> solverScope, Score bestScore, Solution_ bestSolution)- 
Methods inherited from class org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapterphaseEnded, phaseStarted, stepEnded, stepStarted
 - 
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdaptersolvingEnded
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListenersolvingEnded
 
- 
 
- 
- 
- 
Field Detail- 
assertInitialScoreFromScratchprotected boolean assertInitialScoreFromScratch 
 - 
assertShadowVariablesAreNotStaleprotected boolean assertShadowVariablesAreNotStale 
 - 
assertBestScoreIsUnmodifiedprotected boolean assertBestScoreIsUnmodified 
 - 
solverEventSupportprotected SolverEventSupport<Solution_> solverEventSupport 
 
- 
 - 
Method Detail- 
setAssertInitialScoreFromScratchpublic void setAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch) 
 - 
setAssertShadowVariablesAreNotStalepublic void setAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale) 
 - 
setAssertBestScoreIsUnmodifiedpublic void setAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified) 
 - 
setSolverEventSupportpublic void setSolverEventSupport(SolverEventSupport<Solution_> solverEventSupport) 
 - 
solvingStartedpublic void solvingStarted(SolverScope<Solution_> solverScope) - Specified by:
- solvingStartedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingStartedin class- SolverLifecycleListenerAdapter<Solution_>
 
 - 
processWorkingSolutionDuringSteppublic void processWorkingSolutionDuringStep(AbstractStepScope<Solution_> stepScope) 
 - 
processWorkingSolutionDuringMovepublic void processWorkingSolutionDuringMove(Score score, AbstractStepScope<Solution_> stepScope) 
 - 
updateBestSolutionpublic void updateBestSolution(SolverScope<Solution_> solverScope) 
 - 
updateBestSolutionprotected void updateBestSolution(SolverScope<Solution_> solverScope, Score bestScore, Solution_ bestSolution) 
 
- 
 
-