Class NextElementShadowVariableDescriptor<Solution_>
- java.lang.Object
-
- ai.timefold.solver.core.impl.domain.variable.descriptor.VariableDescriptor<Solution_>
-
- ai.timefold.solver.core.impl.domain.variable.descriptor.ShadowVariableDescriptor<Solution_>
-
- ai.timefold.solver.core.impl.domain.variable.nextprev.NextElementShadowVariableDescriptor<Solution_>
-
public class NextElementShadowVariableDescriptor<Solution_> extends ShadowVariableDescriptor<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected ListVariableDescriptor<Solution_>sourceVariableDescriptor-
Fields inherited from class ai.timefold.solver.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
-
Constructor Summary
Constructors Constructor Description NextElementShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<VariableListenerWithSources<Solution_>>buildVariableListeners(SupplyManager supplyManager)Demand<?>getProvidedDemand()List<VariableDescriptor<Solution_>>getSourceVariableDescriptorList()Collection<Class<? extends AbstractVariableListener>>getVariableListenerClasses()voidlinkVariableDescriptors(DescriptorPolicy descriptorPolicy)voidprocessAnnotations(DescriptorPolicy descriptorPolicy)-
Methods inherited from class ai.timefold.solver.core.impl.domain.variable.descriptor.ShadowVariableDescriptor
getGlobalShadowOrder, hasVariableListener, isGenuineAndUninitialized, setGlobalShadowOrder, toString
-
Methods inherited from class ai.timefold.solver.core.impl.domain.variable.descriptor.VariableDescriptor
getEntityDescriptor, getMemberAccessorSpeedNote, getSimpleEntityAndVariableName, getSinkVariableDescriptorList, getValue, getVariableName, getVariablePropertyType, isGenuineListVariable, isValuePotentialAnchor, registerSinkVariableDescriptor, setValue
-
-
-
-
Field Detail
-
sourceVariableDescriptor
protected ListVariableDescriptor<Solution_> sourceVariableDescriptor
-
-
Constructor Detail
-
NextElementShadowVariableDescriptor
public NextElementShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Detail
-
getVariableListenerClasses
public Collection<Class<? extends AbstractVariableListener>> getVariableListenerClasses()
- Specified by:
getVariableListenerClassesin classShadowVariableDescriptor<Solution_>
-
buildVariableListeners
public Iterable<VariableListenerWithSources<Solution_>> buildVariableListeners(SupplyManager supplyManager)
- Specified by:
buildVariableListenersin classShadowVariableDescriptor<Solution_>- Parameters:
supplyManager- never null- Returns:
- never null
-
processAnnotations
public void processAnnotations(DescriptorPolicy descriptorPolicy)
- Specified by:
processAnnotationsin classShadowVariableDescriptor<Solution_>
-
linkVariableDescriptors
public void linkVariableDescriptors(DescriptorPolicy descriptorPolicy)
- Specified by:
linkVariableDescriptorsin classVariableDescriptor<Solution_>
-
getSourceVariableDescriptorList
public List<VariableDescriptor<Solution_>> getSourceVariableDescriptorList()
Description copied from class:ShadowVariableDescriptor- Specified by:
getSourceVariableDescriptorListin classShadowVariableDescriptor<Solution_>- Returns:
- never null, only variables affect this shadow variable directly
-
getProvidedDemand
public Demand<?> getProvidedDemand()
- Specified by:
getProvidedDemandin classShadowVariableDescriptor<Solution_>- Returns:
- never null
-
-