Class IterableFromEntityPropertyValueSelector<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.IterableFromEntityPropertyValueSelector<Solution_>
Type Parameters:
Solution_ - the solution type
All Implemented Interfaces:
IterableSelector<Solution_,Object>, Selector<Solution_>, IterableValueSelector<Solution_>, ValueSelector<Solution_>, PhaseLifecycleListener<Solution_>, SolverLifecycleListener<Solution_>, Iterable<Object>, EventListener

public final class IterableFromEntityPropertyValueSelector<Solution_> extends AbstractDemandEnabledSelector<Solution_> implements IterableValueSelector<Solution_>
The value range for list variables requires the selector to be entity-independent, as it needs to fetch the entire list of values. Fetching the list of values is not a problem when the value range is located within the solution class, serving as a single source of truth. In cases where it is entity-dependent, the list of entities must be read to generate the corresponding list of values.

This selector adapts FromEntityPropertyValueSelector to behave like an entity-independent selector and meets the requirement to retrieve the complete list of values.