Solution_ - the solution type, the class with the PlanningSolution annotationpublic class FromEntityPropertyValueRangeDescriptor<Solution_> extends AbstractFromPropertyValueRangeDescriptor<Solution_>
arrayWrapping, collectionWrapping, countable, memberAccessoraddNullInValueRange, variableDescriptor| Constructor and Description |
|---|
FromEntityPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor,
boolean addNullInValueRange,
MemberAccessor memberAccessor) |
| Modifier and Type | Method and Description |
|---|---|
ValueRange<?> |
extractValueRange(Solution_ solution,
Object entity) |
boolean |
isEntityIndependent()
If this method return true, this instance is safe to cast to
EntityIndependentValueRangeDescriptor,
otherwise it requires an entity to determine the ValueRange. |
isCountable, readValueRangedoNullInValueRangeWrapping, getVariableDescriptor, mightContainEntity, toStringpublic FromEntityPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange, MemberAccessor memberAccessor)
public boolean isEntityIndependent()
ValueRangeDescriptorEntityIndependentValueRangeDescriptor,
otherwise it requires an entity to determine the ValueRange.ValueRange is the same for all entities of the same solutionpublic ValueRange<?> extractValueRange(Solution_ solution, Object entity)
solution - never nullentity - never null. To avoid this parameter,
use EntityIndependentValueRangeDescriptor.extractValueRange(Solution_) instead.Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.