org.optaplanner.core.impl.heuristic.selector.common.iterator
Class UpcomingSelectionIterator<S>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<S>
- Type Parameters:
S -
- All Implemented Interfaces:
- Iterator<S>
- Direct Known Subclasses:
- AbstractOriginalSwapIterator, AbstractRandomSwapIterator, CartesianProductMoveSelector.OriginalCartesianProductMoveIterator
public abstract class UpcomingSelectionIterator<S>
- extends SelectionIterator<S>
IMPORTANT: The constructor of any subclass of this abstract class, should never call any of its child
Selector's Iterator.hasNext() or Iterator.next() methods,
because that can cause descendant Selectors to be selected too early
(which breaks MimicReplayingEntitySelector).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
upcomingCreated
protected boolean upcomingCreated
hasUpcomingSelection
protected boolean hasUpcomingSelection
upcomingSelection
protected S upcomingSelection
UpcomingSelectionIterator
public UpcomingSelectionIterator()
hasNext
public boolean hasNext()
next
public S next()
createUpcomingSelection
protected abstract S createUpcomingSelection()
noUpcomingSelection
protected S noUpcomingSelection()
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.