public class CachingMoveSelector extends AbstractCachingMoveSelector
MoveSelector
that caches the result of its child MoveSelector
.
Keep this code in sync with CachingEntitySelector
and CachingValueSelector
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
randomSelection |
cachedMoveList, cacheType, childMoveSelector
logger, phaseLifecycleSupport, workingRandom
Constructor and Description |
---|
CachingMoveSelector(MoveSelector childMoveSelector,
SelectionCacheType cacheType,
boolean randomSelection) |
Modifier and Type | Method and Description |
---|---|
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() |
constructCache, disposeCache, getCacheType, getChildMoveSelector, getSize, isCountable
phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
supportsPhaseAndSolverCaching
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
forEach, spliterator
public CachingMoveSelector(MoveSelector childMoveSelector, SelectionCacheType cacheType, boolean randomSelection)
public boolean isNeverEnding()
Selector
Selector.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–2020 JBoss by Red Hat. All rights reserved.