Class BasicVariableDescriptor<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor<Solution_>
-
- org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor<Solution_>
-
- org.optaplanner.core.impl.domain.variable.descriptor.BasicVariableDescriptor<Solution_>
-
public class BasicVariableDescriptor<Solution_> extends GenuineVariableDescriptor<Solution_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
-
Constructor Summary
Constructors Constructor Description BasicVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsValueType(Class<?> valueType)
boolean
isChained()
boolean
isInitialized(Object entity)
Anullable
planning variable andPlanningListVariable
are always considered initialized.boolean
isListVariable()
boolean
isNullable()
protected void
processPropertyAnnotations(DescriptorPolicy descriptorPolicy)
-
Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor
getDecreasingStrengthSorter, getIncreasingStrengthSorter, getMovableChainedTrailingValueFilter, getValueCount, getValueRangeDescriptor, hasMovableChainedTrailingValueFilter, isGenuineAndUninitialized, isReinitializable, isValueRangeEntityIndependent, linkVariableDescriptors, processAnnotations, processStrength, processValueRangeRefs, toString
-
Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
getEntityDescriptor, getMemberAccessorSpeedNote, getSimpleEntityAndVariableName, getSinkVariableDescriptorList, getValue, getVariableName, getVariablePropertyType, isGenuineListVariable, isValuePotentialAnchor, registerSinkVariableDescriptor, setValue
-
-
-
-
Constructor Detail
-
BasicVariableDescriptor
public BasicVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Detail
-
processPropertyAnnotations
protected void processPropertyAnnotations(DescriptorPolicy descriptorPolicy)
- Specified by:
processPropertyAnnotations
in classGenuineVariableDescriptor<Solution_>
-
isListVariable
public boolean isListVariable()
- Specified by:
isListVariable
in classGenuineVariableDescriptor<Solution_>
-
isChained
public boolean isChained()
- Specified by:
isChained
in classGenuineVariableDescriptor<Solution_>
-
isNullable
public boolean isNullable()
- Specified by:
isNullable
in classGenuineVariableDescriptor<Solution_>
-
acceptsValueType
public boolean acceptsValueType(Class<?> valueType)
- Specified by:
acceptsValueType
in classGenuineVariableDescriptor<Solution_>
-
isInitialized
public boolean isInitialized(Object entity)
Description copied from class:GenuineVariableDescriptor
Anullable
planning variable andPlanningListVariable
are always considered initialized.- Specified by:
isInitialized
in classGenuineVariableDescriptor<Solution_>
- Parameters:
entity
- never null- Returns:
- true if the variable on that entity is initialized
-
-