Class CompositeMoveSelector<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.move.AbstractMoveSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.move.composite.CompositeMoveSelector<Solution_>
- All Implemented Interfaces:
IterableSelector<Solution_,,Move<Solution_>> MoveSelector<Solution_>,Selector<Solution_>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,Iterable<Move<Solution_>>,EventListener
- Direct Known Subclasses:
CartesianProductMoveSelector,UnionMoveSelector
Abstract superclass for every composite
MoveSelector.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<MoveSelector<Solution_>>protected final booleanFields inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
logger, phaseLifecycleSupport, workingRandom -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompositeMoveSelector(List<MoveSelector<Solution_>> childMoveSelectorList, boolean randomSelection) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf false, thenSelector.isNeverEnding()is true.booleantoString()Methods inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
getCacheType, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.IterableSelector
getSize, spliteratorMethods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.Selector
getCacheType, isNeverEndingMethods inherited from interface ai.timefold.solver.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:SelectorIf false, thenSelector.isNeverEnding()is true.- Returns:
- true if all the
ValueRanges are countable (for example a double value range between 1.2 and 1.4 is not countable)
-
toString
-