Class ConstructionHeuristicDecider<Solution_>
java.lang.Object
org.optaplanner.core.impl.constructionheuristic.decider.ConstructionHeuristicDecider<Solution_>
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- Direct Known Subclasses:
- MultiThreadedConstructionHeuristicDecider
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected final ConstructionHeuristicForager<Solution_>protected final org.slf4j.Loggerprotected final Stringprotected final Termination<Solution_>
- 
Constructor SummaryConstructorsConstructorDescriptionConstructionHeuristicDecider(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddecideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement) protected <Score_ extends Score<Score_>>
 voiddoMove(ConstructionHeuristicMoveScope<Solution_> moveScope) voidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) protected voidpickMove(ConstructionHeuristicStepScope<Solution_> stepScope) voidsetAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) voidsetAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingError(SolverScope<Solution_> solverScope, Exception exception) voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(ConstructionHeuristicStepScope<Solution_> stepScope) voidstepStarted(ConstructionHeuristicStepScope<Solution_> stepScope) 
- 
Field Details- 
loggerprotected final transient org.slf4j.Logger logger
- 
logIndentation
- 
termination
- 
forager
- 
assertMoveScoreFromScratchprotected boolean assertMoveScoreFromScratch
- 
assertExpectedUndoMoveScoreprotected boolean assertExpectedUndoMoveScore
 
- 
- 
Constructor Details- 
ConstructionHeuristicDeciderpublic ConstructionHeuristicDecider(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager) 
 
- 
- 
Method Details- 
getForager
- 
setAssertMoveScoreFromScratchpublic void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) 
- 
setAssertExpectedUndoMoveScorepublic void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) 
- 
solvingStarted
- 
phaseStarted
- 
stepStarted
- 
stepEnded
- 
phaseEnded
- 
solvingEnded
- 
solvingError
- 
decideNextSteppublic void decideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement) 
- 
pickMove
- 
doMoveprotected <Score_ extends Score<Score_>> void doMove(ConstructionHeuristicMoveScope<Solution_> moveScope) 
 
-