Class AbstractSelector<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector<Solution_>
- All Implemented Interfaces:
Selector<Solution_>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,EventListener
- Direct Known Subclasses:
AbstractDemandEnabledSelector,AbstractMoveSelector,DefaultPillarSelector,DefaultSubChainSelector,ElementDestinationSelector,MimicRecordingSubListSelector,MimicReplayingSubListSelector,RandomSubListSelector
Abstract superclass for
Selector.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected PhaseLifecycleSupport<Solution_>protected Random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUnless this selector itself caches, this returnsSelectionCacheType.JUST_IN_TIME, even if a selector child caches.voidphaseEnded(AbstractPhaseScope<Solution_> phaseScope) voidphaseStarted(AbstractPhaseScope<Solution_> phaseScope) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(AbstractStepScope<Solution_> stepScope) voidstepStarted(AbstractStepScope<Solution_> stepScope) Methods 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.heuristic.selector.Selector
isCountable, isNeverEndingMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingError
-
Field Details
-
logger
protected final transient org.slf4j.Logger logger -
phaseLifecycleSupport
-
workingRandom
-
-
Constructor Details
-
AbstractSelector
public AbstractSelector()
-
-
Method Details
-
solvingStarted
- Specified by:
solvingStartedin interfaceSolverLifecycleListener<Solution_>
-
phaseStarted
- Specified by:
phaseStartedin interfacePhaseLifecycleListener<Solution_>
-
stepStarted
- Specified by:
stepStartedin interfacePhaseLifecycleListener<Solution_>
-
stepEnded
- Specified by:
stepEndedin interfacePhaseLifecycleListener<Solution_>
-
phaseEnded
- Specified by:
phaseEndedin interfacePhaseLifecycleListener<Solution_>
-
solvingEnded
- Specified by:
solvingEndedin interfaceSolverLifecycleListener<Solution_>
-
getCacheType
Description copied from interface:SelectorUnless this selector itself caches, this returnsSelectionCacheType.JUST_IN_TIME, even if a selector child caches.- Specified by:
getCacheTypein interfaceSelector<Solution_>- Returns:
- never null
-