Class CompositeMoveSelector<Solution_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.move.AbstractMoveSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.move.composite.CompositeMoveSelector<Solution_>
- All Implemented Interfaces:
Iterable<Move<Solution_>>
,EventListener
,IterableSelector<Solution_,
,Move<Solution_>> MoveSelector<Solution_>
,Selector<Solution_>
,PhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
- Direct Known Subclasses:
CartesianProductMoveSelector
,UnionMoveSelector
Abstract superclass for every composite
MoveSelector
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<MoveSelector<Solution_>>
protected final boolean
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelector
logger, phaseLifecycleSupport, workingRandom
-
Constructor Summary
ModifierConstructorDescriptionprotected
CompositeMoveSelector
(List<MoveSelector<Solution_>> childMoveSelectorList, boolean randomSelection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
If false, thenSelector.isNeverEnding()
is true.boolean
toString()
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelector
getCacheType, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.heuristic.selector.IterableSelector
getSize, spliterator
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.heuristic.selector.Selector
getCacheType, isNeverEnding
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
childMoveSelectorList
-
randomSelection
protected final boolean randomSelection
-
-
Constructor Details
-
CompositeMoveSelector
protected CompositeMoveSelector(List<MoveSelector<Solution_>> childMoveSelectorList, boolean randomSelection)
-
-
Method Details
-
getChildMoveSelectorList
-
supportsPhaseAndSolverCaching
public boolean supportsPhaseAndSolverCaching() -
isCountable
public boolean isCountable()Description copied from interface:Selector
If false, thenSelector.isNeverEnding()
is true.- Returns:
- true if all the
ValueRange
s are countable (for example a double value range between 1.2 and 1.4 is not countable)
-
toString
-