Class ShadowVariableDescriptor<Solution_>
java.lang.Object
org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor<Solution_>
org.optaplanner.core.impl.domain.variable.descriptor.ShadowVariableDescriptor<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- Direct Known Subclasses:
AnchorShadowVariableDescriptor
,CustomShadowVariableDescriptor
,IndexShadowVariableDescriptor
,InverseRelationShadowVariableDescriptor
,LegacyCustomShadowVariableDescriptor
,NextElementShadowVariableDescriptor
,PiggybackShadowVariableDescriptor
,PreviousElementShadowVariableDescriptor
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
Constructor Summary
ConstructorDescriptionShadowVariableDescriptor
(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionabstract Iterable<VariableListenerWithSources<Solution_>>
buildVariableListeners
(SupplyManager supplyManager) int
abstract Demand<?>
abstract List<VariableDescriptor<Solution_>>
abstract Collection<Class<? extends AbstractVariableListener>>
boolean
boolean
isGenuineAndUninitialized
(Object entity) abstract void
processAnnotations
(DescriptorPolicy descriptorPolicy) void
setGlobalShadowOrder
(int globalShadowOrder) toString()
Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
getEntityDescriptor, getMemberAccessorSpeedNote, getSimpleEntityAndVariableName, getSinkVariableDescriptorList, getValue, getVariableName, getVariablePropertyType, isGenuineListVariable, isValuePotentialAnchor, linkVariableDescriptors, registerSinkVariableDescriptor, setValue
-
Constructor Details
-
ShadowVariableDescriptor
public ShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Details
-
getGlobalShadowOrder
public int getGlobalShadowOrder() -
setGlobalShadowOrder
public void setGlobalShadowOrder(int globalShadowOrder) -
processAnnotations
-
getSourceVariableDescriptorList
- Returns:
- never null, only variables affect this shadow variable directly
-
getVariableListenerClasses
-
getProvidedDemand
- Returns:
- never null
-
hasVariableListener
public boolean hasVariableListener() -
buildVariableListeners
public abstract Iterable<VariableListenerWithSources<Solution_>> buildVariableListeners(SupplyManager supplyManager) - Parameters:
supplyManager
- never null- Returns:
- never null
-
isGenuineAndUninitialized
- Specified by:
isGenuineAndUninitialized
in classVariableDescriptor<Solution_>
-
toString
-