Class AbstractFinalistPodium<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.localsearch.decider.forager.finalist.AbstractFinalistPodium<Solution_>
- All Implemented Interfaces:
EventListener
,FinalistPodium<Solution_>
,LocalSearchPhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
- Direct Known Subclasses:
HighestScoreFinalistPodium
,StrategicOscillationByLevelFinalistPodium
public abstract class AbstractFinalistPodium<Solution_>
extends LocalSearchPhaseLifecycleListenerAdapter<Solution_>
implements FinalistPodium<Solution_>
Abstract superclass for
FinalistPodium
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected boolean
protected List<LocalSearchMoveScope<Solution_>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFinalist
(LocalSearchMoveScope<Solution_> moveScope) protected void
clearAndAddFinalist
(LocalSearchMoveScope<Solution_> moveScope) void
phaseEnded
(LocalSearchPhaseScope<Solution_> phaseScope) void
stepStarted
(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
phaseStarted, stepEnded
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.localsearch.decider.forager.finalist.FinalistPodium
addMove
Methods inherited from interface org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
phaseStarted, stepEnded
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
FINALIST_LIST_MAX_SIZE
protected static final int FINALIST_LIST_MAX_SIZE- See Also:
-
finalistIsAccepted
protected boolean finalistIsAccepted -
finalistList
-
-
Constructor Details
-
AbstractFinalistPodium
public AbstractFinalistPodium()
-
-
Method Details
-
stepStarted
- Specified by:
stepStarted
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
stepStarted
in classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
clearAndAddFinalist
-
addFinalist
-
getFinalistList
- Specified by:
getFinalistList
in interfaceFinalistPodium<Solution_>
- Returns:
- never null, sometimes empty
-
phaseEnded
- Specified by:
phaseEnded
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
phaseEnded
in classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-