Class AbstractOriginalSwapIterator<Solution_,Move_ extends Move<Solution_>,SubSelection_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<Move_>
org.optaplanner.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
Modifier and TypeFieldDescriptionprotected final boolean
protected final ListIterable<SubSelection_>
protected final ListIterable<SubSelection_>
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection
-
Constructor Summary
ConstructorDescriptionAbstractOriginalSwapIterator
(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 org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasNext, next, noUpcomingSelection, toString
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
createUpcomingSelection
in classUpcomingSelectionIterator<Move_ extends Move<Solution_>>
-
newSwapSelection
protected abstract Move_ newSwapSelection(SubSelection_ leftSubSelection, SubSelection_ rightSubSelection)
-