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
Constructors Constructor Description EntityIndependentInitializedValueSelector(EntityIndependentValueSelector<Solution_> childValueSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longdetermineBailOutSize()longgetSize()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<Object>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, toString
-
Methods inherited from class ai.timefold.solver.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 ai.timefold.solver.core.impl.heuristic.selector.IterableSelector
spliterator
-
Methods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
-
Methods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.Selector
getCacheType, isCountable, isNeverEnding
-
Methods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Methods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.value.ValueSelector
endingIterator, getSize, getVariableDescriptor, iterator
-
-
-
-
Constructor Detail
-
EntityIndependentInitializedValueSelector
public EntityIndependentInitializedValueSelector(EntityIndependentValueSelector<Solution_> childValueSelector)
-
-
Method Detail
-
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
-
determineBailOutSize
protected long determineBailOutSize()
-
-