Class EntityIndependentInitializedValueSelector<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.AbstractDemandEnabledSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.value.decorator.InitializedValueSelector<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.value.decorator.EntityIndependentInitializedValueSelector<Solution_>
- All Implemented Interfaces:
IterableSelector<Solution_,,Object> Selector<Solution_>,EntityIndependentValueSelector<Solution_>,ValueSelector<Solution_>,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,Iterable<Object>,EventListener
public final class EntityIndependentInitializedValueSelector<Solution_>
extends InitializedValueSelector<Solution_>
implements EntityIndependentValueSelector<Solution_>
-
Nested Class Summary
Nested classes/interfaces inherited from class ai.timefold.solver.core.impl.heuristic.selector.value.decorator.InitializedValueSelector
InitializedValueSelector.JustInTimeInitializedValueIterator -
Field Summary
Fields inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
logger, phaseLifecycleSupport, workingRandom -
Constructor Summary
ConstructorsConstructorDescriptionEntityIndependentInitializedValueSelector(EntityIndependentValueSelector<Solution_> childValueSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected longlonggetSize()A random JITSelectorwithSelector.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 ai.timefold.solver.core.impl.heuristic.selector.value.decorator.InitializedValueSelector
accept, create, determineBailOutSize, endingIterator, equals, getSize, getVariableDescriptor, hashCode, isCountable, isNeverEnding, iterator, toStringMethods inherited from class ai.timefold.solver.core.impl.heuristic.selector.AbstractSelector
getCacheType, phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStartedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.IterableSelector
spliteratorMethods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.Selector
getCacheType, isCountable, isNeverEndingMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStartedMethods inherited from interface ai.timefold.solver.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:IterableSelectorA random JITSelectorwithSelector.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:
getSizein interfaceIterableSelector<Solution_,Object> - Returns:
- the approximate number of elements generated by this
Selector, always>= 0
-
iterator
-
determineBailOutSize
protected long determineBailOutSize()
-