Solution_ - the solution type, the class with the PlanningSolution annotationpublic class BestSolutionRecaller<Solution_> extends PhaseLifecycleListenerAdapter<Solution_>
best solution that a Solver encounters.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
assertBestScoreIsUnmodified |
protected boolean |
assertInitialScoreFromScratch |
protected boolean |
assertShadowVariablesAreNotStale |
protected org.slf4j.Logger |
logger |
protected SolverEventSupport |
solverEventSupport |
| Constructor and Description |
|---|
BestSolutionRecaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
processWorkingSolutionDuringMove(Score score,
AbstractStepScope<Solution_> stepScope) |
void |
processWorkingSolutionDuringStep(AbstractStepScope<Solution_> stepScope) |
void |
setAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified) |
void |
setAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch) |
void |
setAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale) |
void |
setSolverEventSupport(SolverEventSupport solverEventSupport) |
void |
solvingStarted(DefaultSolverScope<Solution_> solverScope) |
void |
updateBestSolution(DefaultSolverScope<Solution_> solverScope) |
protected void |
updateBestSolution(DefaultSolverScope<Solution_> solverScope,
Score bestScore,
Solution_ bestSolution) |
phaseEnded, phaseStarted, stepEnded, stepStartedsolvingEndedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsolvingEndedprotected final transient org.slf4j.Logger logger
protected boolean assertInitialScoreFromScratch
protected boolean assertShadowVariablesAreNotStale
protected boolean assertBestScoreIsUnmodified
protected SolverEventSupport solverEventSupport
public void setAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch)
public void setAssertShadowVariablesAreNotStale(boolean assertShadowVariablesAreNotStale)
public void setAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified)
public void setSolverEventSupport(SolverEventSupport solverEventSupport)
public void solvingStarted(DefaultSolverScope<Solution_> solverScope)
solvingStarted in interface SolverLifecycleListener<Solution_>solvingStarted in class SolverLifecycleListenerAdapter<Solution_>public void processWorkingSolutionDuringStep(AbstractStepScope<Solution_> stepScope)
public void processWorkingSolutionDuringMove(Score score, AbstractStepScope<Solution_> stepScope)
public void updateBestSolution(DefaultSolverScope<Solution_> solverScope)
protected void updateBestSolution(DefaultSolverScope<Solution_> solverScope, Score bestScore, Solution_ bestSolution)
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.