Class SubChainSwapMoveSelector<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.generic.GenericMoveSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.move.generic.chained.SubChainSwapMoveSelector<Solution_>
- All Implemented Interfaces:
IterableSelector<Solution_,,Move<Solution_>> MoveSelector<Solution_>,Selector<Solution_>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,Iterable<Move<Solution_>>,EventListener
@Deprecated(forRemoval=true,
since="1.31.0")
public class SubChainSwapMoveSelector<Solution_>
extends GenericMoveSelector<Solution_>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SingletonInverseVariableSupplyDeprecated, for removal: This API element is subject to removal in a future version.protected final SubChainSelector<Solution_>Deprecated, for removal: This API element is subject to removal in a future version.protected final booleanDeprecated, for removal: This API element is subject to removal in a future version.protected final SubChainSelector<Solution_>Deprecated, for removal: This API element is subject to removal in a future version.protected final booleanDeprecated, for removal: This API element is subject to removal in a future version.protected final GenuineVariableDescriptor<Solution_>Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
logger, phaseLifecycleSupport, workingRandom -
Constructor Summary
ConstructorsConstructorDescriptionSubChainSwapMoveSelector(SubChainSelector<Solution_> leftSubChainSelector, SubChainSelector<Solution_> rightSubChainSelector, boolean randomSelection, boolean selectReversingMoveToo) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Deprecated, for removal: This API element is subject to removal in a future version.A random JITSelectorwithSelector.isNeverEnding()true should return a size as if it would be able to return each distinct element only once, because the size can be used inSelectionProbabilityWeightFactory.booleanDeprecated, for removal: This API element is subject to removal in a future version.If false, thenSelector.isNeverEnding()is true.booleanDeprecated, for removal: This API element is subject to removal in a future version.Is true ifSelector.isCountable()is false or if this selector is in random order (for most cases).iterator()Deprecated, for removal: This API element is subject to removal in a future version.voidsolvingEnded(SolverScope<Solution_> solverScope) Deprecated, for removal: This API element is subject to removal in a future version.voidsolvingStarted(SolverScope<Solution_> solverScope) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
getCacheType, phaseEnded, phaseStarted, 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
spliteratorMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.move.MoveSelector
supportsPhaseAndSolverCachingMethods 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
getCacheTypeMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingError
-
Field Details
-
leftSubChainSelector
Deprecated, for removal: This API element is subject to removal in a future version. -
rightSubChainSelector
Deprecated, for removal: This API element is subject to removal in a future version. -
variableDescriptor
Deprecated, for removal: This API element is subject to removal in a future version. -
randomSelection
protected final boolean randomSelectionDeprecated, for removal: This API element is subject to removal in a future version. -
selectReversingMoveToo
protected final boolean selectReversingMoveTooDeprecated, for removal: This API element is subject to removal in a future version. -
inverseVariableSupply
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
SubChainSwapMoveSelector
public SubChainSwapMoveSelector(SubChainSelector<Solution_> leftSubChainSelector, SubChainSelector<Solution_> rightSubChainSelector, boolean randomSelection, boolean selectReversingMoveToo) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
solvingStarted
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
solvingStartedin interfaceSolverLifecycleListener<Solution_>- Overrides:
solvingStartedin classAbstractSelector<Solution_>
-
solvingEnded
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
solvingEndedin interfaceSolverLifecycleListener<Solution_>- Overrides:
solvingEndedin classAbstractSelector<Solution_>
-
isCountable
public boolean isCountable()Deprecated, for removal: This API element is subject to removal in a future version.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)
-
isNeverEnding
public boolean isNeverEnding()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SelectorIs true ifSelector.isCountable()is false or if this selector is in random order (for most cases). Is never true when this selector is in shuffled order (which is less scalable but more exact).- Returns:
- true if the
Iterator.hasNext()of theIteratorcreated byIterable.iterator()never returns false (except when it's empty).
-
getSize
public long getSize()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IterableSelectorA random JITSelectorwithSelector.isNeverEnding()true should return a size as if it would be able to return each distinct element only once, because the size can be used inSelectionProbabilityWeightFactory.- Returns:
- the approximate number of elements generated by this
Selector, always>= 0
-
iterator
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
list variableinstead.