public class SortingMoveSelector extends AbstractCachingMoveSelector
| Modifier and Type | Field and Description |
|---|---|
protected SelectionSorter |
sorter |
cachedMoveList, cacheType, childMoveSelectorlogger, phaseLifecycleSupport, workingRandom| Constructor and Description |
|---|
SortingMoveSelector(MoveSelector childMoveSelector,
SelectionCacheType cacheType,
SelectionSorter sorter) |
| Modifier and Type | Method and Description |
|---|---|
void |
constructCache(DefaultSolverScope solverScope) |
boolean |
isNeverEnding()
Is true if
Selector.isCountable() is false
or if this selector is in random order (for most cases). |
Iterator<Move> |
iterator() |
String |
toString() |
disposeCache, getCacheType, getChildMoveSelector, getSize, isCountablephaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitphaseEnded, phaseStarted, stepEnded, stepStartedsolvingEnded, solvingStartedprotected final SelectionSorter sorter
public SortingMoveSelector(MoveSelector childMoveSelector, SelectionCacheType cacheType, SelectionSorter sorter)
public void constructCache(DefaultSolverScope solverScope)
constructCache in interface SelectionCacheLifecycleListenerconstructCache in class AbstractCachingMoveSelectorpublic boolean isNeverEnding()
SelectorSelector.isCountable() is false
or if this selector is in random order (for most cases).
Is never true when this selector is in shuffled order (which is less scalable but more exact).Iterator.hasNext() of the Iterator created by Iterable.iterator()
never returns false (except when it's empty).Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.