Class EntityIndependentInitializedValueSelector<Solution_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.value.AbstractValueSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.value.decorator.InitializedValueSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.value.decorator.EntityIndependentInitializedValueSelector<Solution_>
- All Implemented Interfaces:
Iterable<Object>
,EventListener
,IterableSelector<Solution_,
,Object> Selector<Solution_>
,EntityIndependentValueSelector<Solution_>
,ValueSelector<Solution_>
,PhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
public final class EntityIndependentInitializedValueSelector<Solution_>
extends InitializedValueSelector<Solution_>
implements EntityIndependentValueSelector<Solution_>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.optaplanner.core.impl.heuristic.selector.value.decorator.InitializedValueSelector
InitializedValueSelector.JustInTimeInitializedValueIterator
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelector
logger, phaseLifecycleSupport, workingRandom
-
Constructor Summary
ConstructorDescriptionEntityIndependentInitializedValueSelector
(EntityIndependentValueSelector<Solution_> childValueSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
long
getSize()
A random JITSelector
withSelector.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 inSelectionProbabilityWeightFactory
.iterator()
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.value.decorator.InitializedValueSelector
accept, create, determineBailOutSize, endingIterator, equals, getSize, getVariableDescriptor, hashCode, isCountable, isNeverEnding, iterator, toString
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelector
getCacheType, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.heuristic.selector.IterableSelector
spliterator
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
Methods inherited from interface org.optaplanner.core.impl.heuristic.selector.Selector
getCacheType, isCountable, isNeverEnding
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
Methods inherited from interface org.optaplanner.core.impl.heuristic.selector.value.ValueSelector
endingIterator, getSize, getVariableDescriptor, iterator
-
Constructor Details
-
EntityIndependentInitializedValueSelector
public EntityIndependentInitializedValueSelector(EntityIndependentValueSelector<Solution_> childValueSelector)
-
-
Method Details
-
getSize
public long getSize()Description copied from interface:IterableSelector
A random JITSelector
withSelector.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 inSelectionProbabilityWeightFactory
.- Specified by:
getSize
in interfaceIterableSelector<Solution_,
Object> - Returns:
- the approximate number of elements generated by this
Selector
, always>= 0
-
iterator
-
determineBailOutSize
protected long determineBailOutSize()
-