Interface EntitySelector<Solution_>
- All Superinterfaces:
EventListener,Iterable<Object>,IterableSelector<Solution_,,Object> ListIterable<Object>,ListIterableSelector<Solution_,,Object> PhaseLifecycleListener<Solution_>,Selector<Solution_>,SolverLifecycleListener<Solution_>
- All Known Implementing Classes:
AbstractCachingEntitySelector,CachingEntitySelector,FilteringEntitySelector,FromSolutionEntitySelector,MimicRecordingEntitySelector,MimicReplayingEntitySelector,ProbabilityEntitySelector,SelectedCountLimitEntitySelector,ShufflingEntitySelector,SortingEntitySelector
Selects instances of 1
PlanningEntity annotated class.
Instances created via EntitySelectorFactory are guaranteed to exclude pinned entities.-
Method Summary
Modifier and TypeMethodDescriptionIfSelector.isNeverEnding()is true, thenIterable.iterator()will never end.Methods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.IterableSelector
getSize, spliteratorMethods inherited from interface ai.timefold.solver.core.impl.heuristic.selector.common.iterator.ListIterable
listIterator, listIteratorMethods 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, solvingStarted
-
Method Details
-
getEntityDescriptor
EntityDescriptor<Solution_> getEntityDescriptor()- Returns:
- never null
-
endingIterator
IfSelector.isNeverEnding()is true, thenIterable.iterator()will never end. This returns an endingIterator, that tries to matchIterable.iterator()as much as possible, but returns each distinct element only once and returns every element that might possibly be selected and therefore it might not respect the configuration of thisEntitySelectorentirely.- Returns:
- never null
- See Also:
-