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