public class InitializedValueSelector extends AbstractValueSelector
ValueSelector
applies to) and that is uninitialized too.
Mainly used for chained planning variables.Modifier and Type | Field and Description |
---|---|
protected boolean |
bailOutEnabled |
protected ValueSelector |
childValueSelector |
protected PlanningVariableDescriptor |
variableDescriptor |
logger, solverPhaseLifecycleSupport, workingRandom
Constructor and Description |
---|
InitializedValueSelector(ValueSelector childValueSelector) |
Modifier and Type | Method and Description |
---|---|
protected long |
determineBailOutSize(Object entity) |
long |
getSize(Object entity)
Similar to
IterableSelector.getSize() , but requires an entity. |
PlanningVariableDescriptor |
getVariableDescriptor() |
boolean |
isContinuous()
If true, then
Selector.isNeverEnding() is also true. |
boolean |
isNeverEnding()
Is true if
Selector.isContinuous() is true
or if this selector is in random order (for most cases). |
Iterator<Object> |
iterator(Object entity)
Similar to
Iterable.iterator() , but requires an entity. |
String |
toString() |
getCacheType, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCacheType
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
protected final PlanningVariableDescriptor variableDescriptor
protected final ValueSelector childValueSelector
protected final boolean bailOutEnabled
public InitializedValueSelector(ValueSelector childValueSelector)
public PlanningVariableDescriptor getVariableDescriptor()
public boolean isContinuous()
Selector
Selector.isNeverEnding()
is also true.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 long getSize(Object entity)
ValueSelector
IterableSelector.getSize()
, but requires an entity.entity
- never nullSelector
, always >= 0public Iterator<Object> iterator(Object entity)
ValueSelector
Iterable.iterator()
, but requires an entity.entity
- never nullprotected long determineBailOutSize(Object entity)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.