Class AbstractSelector<Solution_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector<Solution_>
- All Implemented Interfaces:
EventListener
,Selector<Solution_>
,PhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
- Direct Known Subclasses:
AbstractDemandEnabledSelector
,AbstractMoveSelector
,DefaultPillarSelector
,DefaultSubChainSelector
,ElementDestinationSelector
,MimicRecordingSubListSelector
,MimicReplayingSubListSelector
,RandomSubListSelector
Abstract superclass for
Selector
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.slf4j.Logger
protected PhaseLifecycleSupport<Solution_>
protected Random
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUnless this selector itself caches, this returnsSelectionCacheType.JUST_IN_TIME
, even if a selector child caches.void
phaseEnded
(AbstractPhaseScope<Solution_> phaseScope) void
phaseStarted
(AbstractPhaseScope<Solution_> phaseScope) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(AbstractStepScope<Solution_> stepScope) void
stepStarted
(AbstractStepScope<Solution_> stepScope) 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.heuristic.selector.Selector
isCountable, isNeverEnding
Methods inherited from interface org.optaplanner.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:
solvingStarted
in interfaceSolverLifecycleListener<Solution_>
-
phaseStarted
- Specified by:
phaseStarted
in interfacePhaseLifecycleListener<Solution_>
-
stepStarted
- Specified by:
stepStarted
in interfacePhaseLifecycleListener<Solution_>
-
stepEnded
- Specified by:
stepEnded
in interfacePhaseLifecycleListener<Solution_>
-
phaseEnded
- Specified by:
phaseEnded
in interfacePhaseLifecycleListener<Solution_>
-
solvingEnded
- Specified by:
solvingEnded
in interfaceSolverLifecycleListener<Solution_>
-
getCacheType
Description copied from interface:Selector
Unless this selector itself caches, this returnsSelectionCacheType.JUST_IN_TIME
, even if a selector child caches.- Specified by:
getCacheType
in interfaceSelector<Solution_>
- Returns:
- never null
-