Class VariableDescriptor<Solution_>
java.lang.Object
org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- Direct Known Subclasses:
GenuineVariableDescriptor
,ShadowVariableDescriptor
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EntityDescriptor<Solution_>
protected List<ShadowVariableDescriptor<Solution_>>
protected final MemberAccessor
protected final String
-
Constructor Summary
ConstructorDescriptionVariableDescriptor
(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
abstract boolean
isGenuineAndUninitialized
(Object entity) boolean
boolean
isValuePotentialAnchor
(Object value) abstract void
linkVariableDescriptors
(DescriptorPolicy descriptorPolicy) void
registerSinkVariableDescriptor
(ShadowVariableDescriptor<Solution_> shadowVariableDescriptor) void
-
Field Details
-
entityDescriptor
-
variableMemberAccessor
-
variableName
-
sinkVariableDescriptorList
-
-
Constructor Details
-
VariableDescriptor
public VariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Details
-
getEntityDescriptor
-
getVariableName
-
getSimpleEntityAndVariableName
-
getVariablePropertyType
-
linkVariableDescriptors
-
isGenuineListVariable
public boolean isGenuineListVariable() -
registerSinkVariableDescriptor
public void registerSinkVariableDescriptor(ShadowVariableDescriptor<Solution_> shadowVariableDescriptor) -
getSinkVariableDescriptorList
- Returns:
- never null, only direct shadow variables that are affected by this variable
-
isValuePotentialAnchor
- Parameters:
value
- never null- Returns:
- true if it might be an anchor, false if it is definitely not an anchor
-
getValue
-
setValue
-
getMemberAccessorSpeedNote
-
isGenuineAndUninitialized
-