Class AbstractFinalistPodium<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter<Solution_>
ai.timefold.solver.core.impl.localsearch.decider.forager.finalist.AbstractFinalistPodium<Solution_>
- All Implemented Interfaces:
FinalistPodium<Solution_>,LocalSearchPhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,EventListener
- Direct Known Subclasses:
HighestScoreFinalistPodium,StrategicOscillationByLevelFinalistPodium
public abstract class AbstractFinalistPodium<Solution_>
extends LocalSearchPhaseLifecycleListenerAdapter<Solution_>
implements FinalistPodium<Solution_>
Abstract superclass for
FinalistPodium.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected booleanprotected List<LocalSearchMoveScope<Solution_>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFinalist(LocalSearchMoveScope<Solution_> moveScope) protected voidclearAndAddFinalist(LocalSearchMoveScope<Solution_> moveScope) voidphaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) voidstepStarted(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
phaseStarted, stepEndedMethods inherited from class ai.timefold.solver.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.localsearch.decider.forager.finalist.FinalistPodium
addMoveMethods inherited from interface ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
phaseStarted, stepEndedMethods inherited from interface ai.timefold.solver.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:
stepStartedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
stepStartedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
clearAndAddFinalist
-
addFinalist
-
getFinalistList
- Specified by:
getFinalistListin interfaceFinalistPodium<Solution_>- Returns:
- never null, sometimes empty
-
phaseEnded
- Specified by:
phaseEndedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
phaseEndedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-