Class LocalSearchDecider<Solution_>
java.lang.Object
org.optaplanner.core.impl.localsearch.decider.LocalSearchDecider<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- Direct Known Subclasses:
MultiThreadedLocalSearchDecider
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected final LocalSearchForager<Solution_>
protected final org.slf4j.Logger
protected final String
protected final MoveSelector<Solution_>
protected final Termination<Solution_>
-
Constructor Summary
ConstructorDescriptionLocalSearchDecider
(String logIndentation, Termination<Solution_> termination, MoveSelector<Solution_> moveSelector, Acceptor<Solution_> acceptor, LocalSearchForager<Solution_> forager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decideNextStep
(LocalSearchStepScope<Solution_> stepScope) protected <Score_ extends Score<Score_>>
voiddoMove
(LocalSearchMoveScope<Solution_> moveScope) void
phaseEnded
(LocalSearchPhaseScope<Solution_> phaseScope) void
phaseStarted
(LocalSearchPhaseScope<Solution_> phaseScope) protected void
pickMove
(LocalSearchStepScope<Solution_> stepScope) void
setAssertExpectedUndoMoveScore
(boolean assertExpectedUndoMoveScore) void
setAssertMoveScoreFromScratch
(boolean assertMoveScoreFromScratch) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingError
(SolverScope<Solution_> solverScope, Exception exception) void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(LocalSearchStepScope<Solution_> stepScope) void
stepStarted
(LocalSearchStepScope<Solution_> stepScope)
-
Field Details
-
logger
protected final transient org.slf4j.Logger logger -
logIndentation
-
termination
-
moveSelector
-
acceptor
-
forager
-
assertMoveScoreFromScratch
protected boolean assertMoveScoreFromScratch -
assertExpectedUndoMoveScore
protected boolean assertExpectedUndoMoveScore
-
-
Constructor Details
-
LocalSearchDecider
public LocalSearchDecider(String logIndentation, Termination<Solution_> termination, MoveSelector<Solution_> moveSelector, Acceptor<Solution_> acceptor, LocalSearchForager<Solution_> forager)
-
-
Method Details
-
getTermination
-
getMoveSelector
-
getAcceptor
-
getForager
-
setAssertMoveScoreFromScratch
public void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) -
setAssertExpectedUndoMoveScore
public void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) -
solvingStarted
-
phaseStarted
-
stepStarted
-
decideNextStep
-
doMove
-
pickMove
-
stepEnded
-
phaseEnded
-
solvingEnded
-
solvingError
-