Interface LocalSearchForager<Solution_>
- All Superinterfaces:
EventListener
,LocalSearchPhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
- All Known Implementing Classes:
AbstractLocalSearchForager
,AcceptedLocalSearchForager
Collects the moves and picks the next step from those for the
LocalSearchDecider
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMove
(LocalSearchMoveScope<Solution_> moveScope) boolean
pickMove
(LocalSearchStepScope<Solution_> stepScope) boolean
Methods inherited from interface org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Method Details
-
supportsNeverEndingMoveSelector
boolean supportsNeverEndingMoveSelector()- Returns:
- true if it can be combined with a
Selector.isNeverEnding()
that returns true.
-
addMove
- Parameters:
moveScope
- never null
-
isQuitEarly
boolean isQuitEarly()- Returns:
- true if no further moves should be selected (and evaluated) for this step.
-
pickMove
- Parameters:
stepScope
- never null- Returns:
- sometimes null, for example if no move is selected
-