|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Selector
General interface for MoveSelector
, EntitySelector
and ValueSelector
which generates Move
s or parts of them.
Method Summary | |
---|---|
long |
getSize()
A random JIT Selector with isNeverEnding() true should return a size
as if it would be able to return each distinct element only once,
because the size can be used in SelectionProbabilityWeightFactory . |
boolean |
isContinuous()
If true, then isNeverEnding() is also true. |
boolean |
isNeverEnding()
Is true if isContinuous() is true
or if this selector is in random order (for most cases). |
Methods inherited from interface org.drools.planner.core.phase.event.SolverPhaseLifecycleListener |
---|
phaseEnded, phaseStarted, stepEnded, stepStarted |
Methods inherited from interface org.drools.planner.core.solver.event.SolverLifecycleListener |
---|
solvingEnded, solvingStarted |
Method Detail |
---|
boolean isContinuous()
isNeverEnding()
is also true.
boolean isNeverEnding()
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.long getSize()
Selector
with isNeverEnding()
true should return a size
as if it would be able to return each distinct element only once,
because the size can be used in SelectionProbabilityWeightFactory
.
Selector
, always >= 0
IllegalStateException
- if isContinuous()
returns true,
but not if only isNeverEnding()
returns true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |