org.optaplanner.core.impl.heuristic.selector.value
public class FromEntityPropertyValueSelector extends AbstractValueSelector
ValueSelector
implementation.Modifier and Type | Field and Description |
---|---|
protected boolean |
randomSelection |
protected FromEntityPropertyPlanningValueRangeDescriptor |
valueRangeDescriptor |
protected PlanningVariableDescriptor |
variableDescriptor |
logger, solverPhaseLifecycleSupport, workingRandom
Constructor and Description |
---|
FromEntityPropertyValueSelector(FromEntityPropertyPlanningValueRangeDescriptor valueRangeDescriptor,
SelectionCacheType cacheType,
boolean randomSelection) |
Modifier and Type | Method and Description |
---|---|
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 FromEntityPropertyPlanningValueRangeDescriptor valueRangeDescriptor
protected final boolean randomSelection
public FromEntityPropertyValueSelector(FromEntityPropertyPlanningValueRangeDescriptor valueRangeDescriptor, SelectionCacheType cacheType, boolean randomSelection)
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 nullCopyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.