Class RandomListSwapIterator<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
-
- org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<Move<Solution_>>
-
- org.optaplanner.core.impl.heuristic.selector.move.generic.list.RandomListSwapIterator<Solution_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
public class RandomListSwapIterator<Solution_> extends UpcomingSelectionIterator<Move<Solution_>>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection
-
-
Constructor Summary
Constructors Constructor Description RandomListSwapIterator(ListVariableDescriptor<Solution_> listVariableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, IndexVariableSupply indexVariableSupply, EntityIndependentValueSelector<Solution_> leftValueSelector, EntityIndependentValueSelector<Solution_> rightValueSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Move<Solution_>
createUpcomingSelection()
-
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
-
-
-
-
Constructor Detail
-
RandomListSwapIterator
public RandomListSwapIterator(ListVariableDescriptor<Solution_> listVariableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, IndexVariableSupply indexVariableSupply, EntityIndependentValueSelector<Solution_> leftValueSelector, EntityIndependentValueSelector<Solution_> rightValueSelector)
-
-
Method Detail
-
createUpcomingSelection
protected Move<Solution_> createUpcomingSelection()
- Specified by:
createUpcomingSelection
in classUpcomingSelectionIterator<Move<Solution_>>
-
-