Class AbstractRandomSwapIterator<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.AbstractRandomSwapIterator<Solution_,Move_,SubSelection_>
- All Implemented Interfaces:
Iterator<Move_>
public abstract class AbstractRandomSwapIterator<Solution_,Move_ extends Move<Solution_>,SubSelection_>
extends UpcomingSelectionIterator<Move_>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Iterator<SubSelection_>
protected final Iterable<SubSelection_>
protected Iterator<SubSelection_>
protected final Iterable<SubSelection_>
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection
-
Constructor Summary
ConstructorDescriptionAbstractRandomSwapIterator
(Iterable<SubSelection_> leftSubSelector, Iterable<SubSelection_> rightSubSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected Move_
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
-
leftSubSelectionIterator
-
rightSubSelectionIterator
-
-
Constructor Details
-
AbstractRandomSwapIterator
public AbstractRandomSwapIterator(Iterable<SubSelection_> leftSubSelector, Iterable<SubSelection_> rightSubSelector)
-
-
Method Details
-
createUpcomingSelection
- Specified by:
createUpcomingSelection
in classUpcomingSelectionIterator<Move_ extends Move<Solution_>>
-
newSwapSelection
protected abstract Move_ newSwapSelection(SubSelection_ leftSubSelection, SubSelection_ rightSubSelection)
-