org.optaplanner.core.impl.domain.variable.descriptor
Class GenuineVariableDescriptor
java.lang.Object
org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor
public class GenuineVariableDescriptor
- extends VariableDescriptor
GenuineVariableDescriptor
public GenuineVariableDescriptor(EntityDescriptor entityDescriptor,
PropertyDescriptor propertyDescriptor)
processAnnotations
public void processAnnotations(DescriptorPolicy descriptorPolicy)
registerShadowVariableDescriptor
public void registerShadowVariableDescriptor(ShadowVariableDescriptor shadowVariableDescriptor)
isChained
public boolean isChained()
isNullable
public boolean isNullable()
getReinitializeVariableEntityFilter
public SelectionFilter getReinitializeVariableEntityFilter()
getValueRangeDescriptor
public ValueRangeDescriptor getValueRangeDescriptor()
isValueRangeEntityIndependent
public boolean isValueRangeEntityIndependent()
buildVariableListenerList
public List<VariableListener> buildVariableListenerList()
isInitialized
public boolean isInitialized(Object entity)
- A
PlanningVariable.nullable() value is always considered initialized, but it can still be reinitialized
with PlanningVariable.reinitializeVariableEntityFilter().
- Parameters:
entity - never null
- Returns:
- true if the variable on that entity is initialized
getIncreasingStrengthSorter
public SelectionSorter getIncreasingStrengthSorter()
getDecreasingStrengthSorter
public SelectionSorter getDecreasingStrengthSorter()
getValueCount
public long getValueCount(Solution solution,
Object entity)
toString
public String toString()
- Overrides:
toString in class VariableDescriptor
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.