public interface Selector extends PhaseLifecycleListener
MoveSelector
, EntitySelector
and ValueSelector
which generates Move
s or parts of them.Modifier and Type | Method and Description |
---|---|
SelectionCacheType |
getCacheType()
Unless this selector itself caches, this returns
SelectionCacheType.JUST_IN_TIME ,
even if a selector child caches. |
boolean |
isCountable()
If false, then
isNeverEnding() is true. |
boolean |
isNeverEnding()
Is true if
isCountable() is false
or if this selector is in random order (for most cases). |
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
boolean isCountable()
isNeverEnding()
is true.ValueRange
s are countable
(for example a double value range between 1.2 and 1.4 is not countable)boolean isNeverEnding()
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).SelectionCacheType getCacheType()
SelectionCacheType.JUST_IN_TIME
,
even if a selector child caches.Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.