org.optaplanner.core.impl.heuristic.selector
Class AbstractSelector
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector
- All Implemented Interfaces:
- EventListener, Selector, PhaseLifecycleListener, SolverLifecycleListener
- Direct Known Subclasses:
- AbstractEntitySelector, AbstractMoveSelector, AbstractValueSelector, DefaultPillarSelector, DefaultSubChainSelector
public abstract class AbstractSelector
- extends Object
- implements Selector
Abstract superclass for Selector
.
- See Also:
Selector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
phaseLifecycleSupport
protected PhaseLifecycleSupport phaseLifecycleSupport
workingRandom
protected Random workingRandom
AbstractSelector
public AbstractSelector()
solvingStarted
public void solvingStarted(DefaultSolverScope solverScope)
- Specified by:
solvingStarted
in interface SolverLifecycleListener
phaseStarted
public void phaseStarted(AbstractPhaseScope phaseScope)
- Specified by:
phaseStarted
in interface PhaseLifecycleListener
stepStarted
public void stepStarted(AbstractStepScope stepScope)
- Specified by:
stepStarted
in interface PhaseLifecycleListener
stepEnded
public void stepEnded(AbstractStepScope stepScope)
- Specified by:
stepEnded
in interface PhaseLifecycleListener
phaseEnded
public void phaseEnded(AbstractPhaseScope phaseScope)
- Specified by:
phaseEnded
in interface PhaseLifecycleListener
solvingEnded
public void solvingEnded(DefaultSolverScope solverScope)
- Specified by:
solvingEnded
in interface SolverLifecycleListener
getCacheType
public SelectionCacheType getCacheType()
- Description copied from interface:
Selector
- Unless this selector itself caches, this returns
SelectionCacheType.JUST_IN_TIME
,
even if a selector child caches.
- Specified by:
getCacheType
in interface Selector
- Returns:
- never null
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.