Class AbstractOriginalSwapIterator<Solution_,Move_ extends Move<Solution_>,SubSelection_>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
ai.timefold.solver.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<Move_>
ai.timefold.solver.core.impl.heuristic.selector.common.iterator.AbstractOriginalSwapIterator<Solution_,Move_,SubSelection_>
- All Implemented Interfaces:
Iterator<Move_>
public abstract class AbstractOriginalSwapIterator<Solution_,Move_ extends Move<Solution_>,SubSelection_>
extends UpcomingSelectionIterator<Move_>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final ListIterable<SubSelection_>protected final ListIterable<SubSelection_>Fields inherited from class ai.timefold.solver.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOriginalSwapIterator(ListIterable<SubSelection_> leftSubSelector, ListIterable<SubSelection_> rightSubSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected Move_static <Solution_,SubSelection_>
longgetSize(ListIterableSelector<Solution_, SubSelection_> leftSubSelector, ListIterableSelector<Solution_, SubSelection_> rightSubSelector) protected abstract Move_newSwapSelection(SubSelection_ leftSubSelection, SubSelection_ rightSubSelection) Methods inherited from class ai.timefold.solver.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
findUnpinnedDestination, hasNext, next, noUpcomingSelection, toStringMethods inherited from class ai.timefold.solver.core.impl.heuristic.selector.common.iterator.SelectionIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
leftSubSelector
-
rightSubSelector
-
leftEqualsRight
protected final boolean leftEqualsRight
-
-
Constructor Details
-
AbstractOriginalSwapIterator
public AbstractOriginalSwapIterator(ListIterable<SubSelection_> leftSubSelector, ListIterable<SubSelection_> rightSubSelector)
-
-
Method Details
-
getSize
public static <Solution_,SubSelection_> long getSize(ListIterableSelector<Solution_, SubSelection_> leftSubSelector, ListIterableSelector<Solution_, SubSelection_> rightSubSelector) -
createUpcomingSelection
- Specified by:
createUpcomingSelectionin classUpcomingSelectionIterator<Move_ extends Move<Solution_>>
-
newSwapSelection
protected abstract Move_ newSwapSelection(SubSelection_ leftSubSelection, SubSelection_ rightSubSelection)
-