org.optaplanner.core.impl.heuristic.selector.common.iterator
Class AbstractOriginalSwapIterator<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.AbstractOriginalSwapIterator<S,SubS>
- All Implemented Interfaces:
- Iterator<S>
public abstract class AbstractOriginalSwapIterator<S,SubS>
- extends UpcomingSelectionIterator<S>
leftSubSelector
protected final ListIterable<SubS> leftSubSelector
rightSubSelector
protected final ListIterable<SubS> rightSubSelector
leftEqualsRight
protected final boolean leftEqualsRight
AbstractOriginalSwapIterator
public AbstractOriginalSwapIterator(ListIterable<SubS> leftSubSelector,
ListIterable<SubS> rightSubSelector)
getSize
public static <SubS> long getSize(ListIterableSelector leftSubSelector,
ListIterableSelector 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.