org.optaplanner.core.impl.heuristic.selector.common.iterator
Class AbstractRandomSwapIterator<S,SubS>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.AbstractRandomSwapIterator<S,SubS>
- All Implemented Interfaces:
- Iterator<S>
public abstract class AbstractRandomSwapIterator<S,SubS>
- extends UpcomingSelectionIterator<S>
leftSubSelector
protected final Iterable<SubS> leftSubSelector
rightSubSelector
protected final Iterable<SubS> rightSubSelector
leftSubSelectionIterator
protected Iterator<SubS> leftSubSelectionIterator
rightSubSelectionIterator
protected Iterator<SubS> rightSubSelectionIterator
AbstractRandomSwapIterator
public AbstractRandomSwapIterator(Iterable<SubS> leftSubSelector,
Iterable<SubS> rightSubSelector)
createUpcomingSelection
protected S createUpcomingSelection()
- Specified by:
createUpcomingSelection
in class UpcomingSelectionIterator<S>
newSwapSelection
protected abstract S newSwapSelection(SubS leftSubSelection,
SubS rightSubSelection)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.