Class ExhaustiveSearchDecider<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.exhaustivesearch.decider.ExhaustiveSearchDecider<Solution_>
-
- All Implemented Interfaces:
EventListener,ExhaustiveSearchPhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>
public class ExhaustiveSearchDecider<Solution_> extends Object implements ExhaustiveSearchPhaseLifecycleListener<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanassertExpectedUndoMoveScoreprotected booleanassertMoveScoreFromScratchprotected BestSolutionRecaller<Solution_>bestSolutionRecallerprotected org.slf4j.Loggerloggerprotected StringlogIndentationprotected ManualEntityMimicRecordermanualEntityMimicRecorderprotected MoveSelectormoveSelectorprotected ScoreBounderscoreBounderprotected booleanscoreBounderEnabledprotected Terminationtermination
-
Constructor Summary
Constructors Constructor Description ExhaustiveSearchDecider(String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination, ManualEntityMimicRecorder manualEntityMimicRecorder, MoveSelector moveSelector, boolean scoreBounderEnabled, ScoreBounder scoreBounder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexpandNode(ExhaustiveSearchStepScope<Solution_> stepScope)ManualEntityMimicRecordergetManualEntityMimicRecorder()MoveSelectorgetMoveSelector()ScoreBoundergetScoreBounder()booleanisScoreBounderEnabled()voidphaseEnded(ExhaustiveSearchPhaseScope<Solution_> phaseScope)voidphaseStarted(ExhaustiveSearchPhaseScope<Solution_> phaseScope)voidsetAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore)voidsetAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch)voidsolvingEnded(DefaultSolverScope<Solution_> solverScope)voidsolvingStarted(DefaultSolverScope<Solution_> solverScope)voidstepEnded(ExhaustiveSearchStepScope<Solution_> stepScope)voidstepStarted(ExhaustiveSearchStepScope<Solution_> stepScope)
-
-
-
Field Detail
-
logger
protected final transient org.slf4j.Logger logger
-
logIndentation
protected final String logIndentation
-
bestSolutionRecaller
protected final BestSolutionRecaller<Solution_> bestSolutionRecaller
-
termination
protected final Termination termination
-
manualEntityMimicRecorder
protected final ManualEntityMimicRecorder manualEntityMimicRecorder
-
moveSelector
protected final MoveSelector moveSelector
-
scoreBounderEnabled
protected final boolean scoreBounderEnabled
-
scoreBounder
protected final ScoreBounder scoreBounder
-
assertMoveScoreFromScratch
protected boolean assertMoveScoreFromScratch
-
assertExpectedUndoMoveScore
protected boolean assertExpectedUndoMoveScore
-
-
Constructor Detail
-
ExhaustiveSearchDecider
public ExhaustiveSearchDecider(String logIndentation, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination termination, ManualEntityMimicRecorder manualEntityMimicRecorder, MoveSelector moveSelector, boolean scoreBounderEnabled, ScoreBounder scoreBounder)
-
-
Method Detail
-
getManualEntityMimicRecorder
public ManualEntityMimicRecorder getManualEntityMimicRecorder()
-
getMoveSelector
public MoveSelector getMoveSelector()
-
isScoreBounderEnabled
public boolean isScoreBounderEnabled()
-
getScoreBounder
public ScoreBounder getScoreBounder()
-
setAssertMoveScoreFromScratch
public void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch)
-
setAssertExpectedUndoMoveScore
public void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore)
-
solvingStarted
public void solvingStarted(DefaultSolverScope<Solution_> solverScope)
- Specified by:
solvingStartedin interfaceSolverLifecycleListener<Solution_>
-
phaseStarted
public void phaseStarted(ExhaustiveSearchPhaseScope<Solution_> phaseScope)
- Specified by:
phaseStartedin interfaceExhaustiveSearchPhaseLifecycleListener<Solution_>
-
stepStarted
public void stepStarted(ExhaustiveSearchStepScope<Solution_> stepScope)
- Specified by:
stepStartedin interfaceExhaustiveSearchPhaseLifecycleListener<Solution_>
-
stepEnded
public void stepEnded(ExhaustiveSearchStepScope<Solution_> stepScope)
- Specified by:
stepEndedin interfaceExhaustiveSearchPhaseLifecycleListener<Solution_>
-
phaseEnded
public void phaseEnded(ExhaustiveSearchPhaseScope<Solution_> phaseScope)
- Specified by:
phaseEndedin interfaceExhaustiveSearchPhaseLifecycleListener<Solution_>
-
solvingEnded
public void solvingEnded(DefaultSolverScope<Solution_> solverScope)
- Specified by:
solvingEndedin interfaceSolverLifecycleListener<Solution_>
-
expandNode
public void expandNode(ExhaustiveSearchStepScope<Solution_> stepScope)
-
-