Class NextElementShadowVariableDescriptor<Solution_>
java.lang.Object
org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor<Solution_>
org.optaplanner.core.impl.domain.variable.descriptor.ShadowVariableDescriptor<Solution_>
org.optaplanner.core.impl.domain.variable.nextprev.NextElementShadowVariableDescriptor<Solution_>
public class NextElementShadowVariableDescriptor<Solution_>
extends ShadowVariableDescriptor<Solution_>
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
Constructor Summary
ConstructorDescriptionNextElementShadowVariableDescriptor
(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionbuildVariableListeners
(SupplyManager supplyManager) Demand<?>
Collection<Class<? extends AbstractVariableListener>>
void
linkVariableDescriptors
(DescriptorPolicy descriptorPolicy) void
processAnnotations
(DescriptorPolicy descriptorPolicy) Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.ShadowVariableDescriptor
getGlobalShadowOrder, hasVariableListener, isGenuineAndUninitialized, setGlobalShadowOrder, toString
Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
getEntityDescriptor, getMemberAccessorSpeedNote, getSimpleEntityAndVariableName, getSinkVariableDescriptorList, getValue, getVariableName, getVariablePropertyType, isGenuineListVariable, isValuePotentialAnchor, registerSinkVariableDescriptor, setValue
-
Field Details
-
sourceVariableDescriptor
-
-
Constructor Details
-
NextElementShadowVariableDescriptor
public NextElementShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Details
-
getVariableListenerClasses
- Specified by:
getVariableListenerClasses
in classShadowVariableDescriptor<Solution_>
-
buildVariableListeners
public Iterable<VariableListenerWithSources<Solution_>> buildVariableListeners(SupplyManager supplyManager) - Specified by:
buildVariableListeners
in classShadowVariableDescriptor<Solution_>
- Parameters:
supplyManager
- never null- Returns:
- never null
-
processAnnotations
- Specified by:
processAnnotations
in classShadowVariableDescriptor<Solution_>
-
linkVariableDescriptors
- Specified by:
linkVariableDescriptors
in classVariableDescriptor<Solution_>
-
getSourceVariableDescriptorList
Description copied from class:ShadowVariableDescriptor
- Specified by:
getSourceVariableDescriptorList
in classShadowVariableDescriptor<Solution_>
- Returns:
- never null, only variables affect this shadow variable directly
-
getProvidedDemand
- Specified by:
getProvidedDemand
in classShadowVariableDescriptor<Solution_>
- Returns:
- never null
-