org.optaplanner.core.impl.heuristic.selector.entity.decorator
public class ShufflingEntitySelector extends AbstractCachingEntitySelector
cachedEntityList, cacheType, childEntitySelector
logger, solverPhaseLifecycleSupport, workingRandom
Constructor and Description |
---|
ShufflingEntitySelector(EntitySelector childEntitySelector,
SelectionCacheType cacheType) |
Modifier and Type | Method and Description |
---|---|
boolean |
isNeverEnding()
Is true if
Selector.isContinuous() is true
or if this selector is in random order (for most cases). |
Iterator<Object> |
iterator() |
ListIterator<Object> |
listIterator()
|
ListIterator<Object> |
listIterator(int index)
|
String |
toString() |
constructCache, disposeCache, endingIterator, getCacheType, getChildEntitySelector, getEntityDescriptor, getSize, isContinuous
phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
public ShufflingEntitySelector(EntitySelector childEntitySelector, SelectionCacheType cacheType)
public boolean isNeverEnding()
Selector
Selector.isContinuous()
is true
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.public ListIterator<Object> listIterator()
ListIterable
List.listIterator()
.public ListIterator<Object> listIterator(int index)
ListIterable
index
- lower than the size of this ListIterable
, see List.listIterator(int)
.List.listIterator(int)
.Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.