Class ListVariableDescriptor<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.ListVariableDescriptor<Solution_>
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
entityDescriptor, sinkVariableDescriptorList, variableMemberAccessor, variableName
-
Constructor Summary
ConstructorDescriptionListVariableDescriptor
(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsValueType
(Class<?> valueType) void
addElement
(Object entity, int index, Object element) getElement
(Object entity, int index) Class<?>
int
getListSize
(Object entity) getListVariable
(Object entity) boolean
boolean
boolean
isInitialized
(Object entity) Anullable
planning variable andPlanningListVariable
are always considered initialized.boolean
boolean
protected void
processPropertyAnnotations
(DescriptorPolicy descriptorPolicy) protected void
processValueRangeRefs
(DescriptorPolicy descriptorPolicy, String[] valueRangeProviderRefs) removeElement
(Object entity, int index) setElement
(Object entity, int index, Object element) Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor
getDecreasingStrengthSorter, getIncreasingStrengthSorter, getMovableChainedTrailingValueFilter, getValueCount, getValueRangeDescriptor, hasMovableChainedTrailingValueFilter, isGenuineAndUninitialized, isReinitializable, isValueRangeEntityIndependent, linkVariableDescriptors, processAnnotations, processStrength, toString
Methods inherited from class org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
getEntityDescriptor, getMemberAccessorSpeedNote, getSimpleEntityAndVariableName, getSinkVariableDescriptorList, getValue, getVariableName, getVariablePropertyType, isValuePotentialAnchor, registerSinkVariableDescriptor, setValue
-
Constructor Details
-
ListVariableDescriptor
public ListVariableDescriptor(EntityDescriptor<Solution_> entityDescriptor, MemberAccessor variableMemberAccessor)
-
-
Method Details
-
processPropertyAnnotations
- Specified by:
processPropertyAnnotations
in classGenuineVariableDescriptor<Solution_>
-
processValueRangeRefs
protected void processValueRangeRefs(DescriptorPolicy descriptorPolicy, String[] valueRangeProviderRefs) - Overrides:
processValueRangeRefs
in classGenuineVariableDescriptor<Solution_>
-
isGenuineListVariable
public boolean isGenuineListVariable()- Overrides:
isGenuineListVariable
in classVariableDescriptor<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
- Specified by:
acceptsValueType
in classGenuineVariableDescriptor<Solution_>
-
getElementType
-
isInitialized
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
-
getListVariable
-
removeElement
-
addElement
-
getElement
-
setElement
-
getListSize
-