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 SummaryFields Modifier and Type Field Description protected Iterator<SubSelection_>leftSubSelectionIteratorprotected Iterable<SubSelection_>leftSubSelectorprotected Iterator<SubSelection_>rightSubSelectionIteratorprotected Iterable<SubSelection_>rightSubSelector- 
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIteratorhasUpcomingSelection, upcomingCreated, upcomingSelection
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractRandomSwapIterator(Iterable<SubSelection_> leftSubSelector, Iterable<SubSelection_> rightSubSelector)
 - 
Method SummaryAll 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.UpcomingSelectionIteratorhasNext, next, noUpcomingSelection, toString
 - 
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIteratorremove
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining
 
- 
 
- 
- 
- 
Field Detail- 
leftSubSelectorprotected final Iterable<SubSelection_> leftSubSelector 
 - 
rightSubSelectorprotected final Iterable<SubSelection_> rightSubSelector 
 - 
leftSubSelectionIteratorprotected Iterator<SubSelection_> leftSubSelectionIterator 
 - 
rightSubSelectionIteratorprotected Iterator<SubSelection_> rightSubSelectionIterator 
 
- 
 - 
Constructor Detail- 
AbstractRandomSwapIteratorpublic AbstractRandomSwapIterator(Iterable<SubSelection_> leftSubSelector, Iterable<SubSelection_> rightSubSelector) 
 
- 
 - 
Method Detail- 
createUpcomingSelectionprotected Move_ createUpcomingSelection() - Specified by:
- createUpcomingSelectionin class- UpcomingSelectionIterator<Move_ extends Move<Solution_>>
 
 - 
newSwapSelectionprotected abstract Move_ newSwapSelection(SubSelection_ leftSubSelection, SubSelection_ rightSubSelection) 
 
- 
 
-