Class ConstructionHeuristicDecider<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.constructionheuristic.decider.ConstructionHeuristicDecider<Solution_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- Direct Known Subclasses:
MultiThreadedConstructionHeuristicDecider
public class ConstructionHeuristicDecider<Solution_> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanassertExpectedUndoMoveScoreprotected booleanassertMoveScoreFromScratchprotected ConstructionHeuristicForager<Solution_>foragerprotected org.slf4j.Loggerloggerprotected StringlogIndentationprotected Termination<Solution_>termination
-
Constructor Summary
Constructors Constructor Description ConstructionHeuristicDecider(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement)protected <Score_ extends Score<Score_>>
voiddoMove(ConstructionHeuristicMoveScope<Solution_> moveScope)ConstructionHeuristicForager<Solution_>getForager()voidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope)voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope)protected voidpickMove(ConstructionHeuristicStepScope<Solution_> stepScope)voidsetAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore)voidsetAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch)voidsolvingEnded(SolverScope<Solution_> solverScope)voidsolvingStarted(SolverScope<Solution_> solverScope)voidstepEnded(ConstructionHeuristicStepScope<Solution_> stepScope)voidstepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)
-
-
-
Field Detail
-
logger
protected final transient org.slf4j.Logger logger
-
logIndentation
protected final String logIndentation
-
termination
protected final Termination<Solution_> termination
-
forager
protected final ConstructionHeuristicForager<Solution_> forager
-
assertMoveScoreFromScratch
protected boolean assertMoveScoreFromScratch
-
assertExpectedUndoMoveScore
protected boolean assertExpectedUndoMoveScore
-
-
Constructor Detail
-
ConstructionHeuristicDecider
public ConstructionHeuristicDecider(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager)
-
-
Method Detail
-
getForager
public ConstructionHeuristicForager<Solution_> getForager()
-
setAssertMoveScoreFromScratch
public void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch)
-
setAssertExpectedUndoMoveScore
public void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore)
-
solvingStarted
public void solvingStarted(SolverScope<Solution_> solverScope)
-
phaseStarted
public void phaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
-
stepStarted
public void stepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)
-
stepEnded
public void stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope)
-
phaseEnded
public void phaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
-
solvingEnded
public void solvingEnded(SolverScope<Solution_> solverScope)
-
decideNextStep
public void decideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement)
-
pickMove
protected void pickMove(ConstructionHeuristicStepScope<Solution_> stepScope)
-
doMove
protected <Score_ extends Score<Score_>> void doMove(ConstructionHeuristicMoveScope<Solution_> moveScope)
-
-