Class InverseRelationShadowVariableDescriptor<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.inverserelation.InverseRelationShadowVariableDescriptor<Solution_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
public class InverseRelationShadowVariableDescriptor<Solution_> extends ShadowVariableDescriptor<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleansingletonprotected VariableDescriptor<Solution_>sourceVariableDescriptor-
Fields inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
-
Constructor Summary
Constructors Constructor Description InverseRelationShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableListener<Solution_,?>buildVariableListener(InnerScoreDirector<Solution_,?> scoreDirector)Demand<Solution_,?>getProvidedDemand()List<VariableDescriptor<Solution_>>getSourceVariableDescriptorList()Class<? extends VariableListener>getVariableListenerClass()voidlinkVariableDescriptors(DescriptorPolicy descriptorPolicy)voidprocessAnnotations(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, isValuePotentialAnchor, registerSinkVariableDescriptor, setValue
-
-
-
-
Field Detail
-
sourceVariableDescriptor
protected VariableDescriptor<Solution_> sourceVariableDescriptor
-
singleton
protected boolean singleton
-
-
Constructor Detail
-
InverseRelationShadowVariableDescriptor
public InverseRelationShadowVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Detail
-
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
-
getVariableListenerClass
public Class<? extends VariableListener> getVariableListenerClass()
- Specified by:
getVariableListenerClassin classShadowVariableDescriptor<Solution_>
-
getProvidedDemand
public Demand<Solution_,?> getProvidedDemand()
- Specified by:
getProvidedDemandin classShadowVariableDescriptor<Solution_>- Returns:
- never null
-
buildVariableListener
public VariableListener<Solution_,?> buildVariableListener(InnerScoreDirector<Solution_,?> scoreDirector)
- Specified by:
buildVariableListenerin classShadowVariableDescriptor<Solution_>- Parameters:
scoreDirector- never null- Returns:
- never null
-
-