Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class FromSolutionPropertyValueRangeDescriptor<Solution_> extends AbstractFromPropertyValueRangeDescriptor<Solution_> implements EntityIndependentValueRangeDescriptor<Solution_>
arrayWrapping, collectionWrapping, countable, memberAccessor
addNullInValueRange, variableDescriptor
Constructor and Description |
---|
FromSolutionPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor,
boolean addNullInValueRange,
MemberAccessor memberAccessor) |
Modifier and Type | Method and Description |
---|---|
ValueRange<?> |
extractValueRange(Solution_ solution)
As specified by
ValueRangeDescriptor.extractValueRange(Solution_, java.lang.Object) . |
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, readValueRange
doNullInValueRangeWrapping, getVariableDescriptor, mightContainEntity, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVariableDescriptor, isCountable, mightContainEntity
public FromSolutionPropertyValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange, MemberAccessor memberAccessor)
public boolean isEntityIndependent()
ValueRangeDescriptor
EntityIndependentValueRangeDescriptor
,
otherwise it requires an entity to determine the ValueRange
.isEntityIndependent
in interface ValueRangeDescriptor<Solution_>
ValueRange
is the same for all entities of the same solutionpublic ValueRange<?> extractValueRange(Solution_ solution, Object entity)
extractValueRange
in interface ValueRangeDescriptor<Solution_>
solution
- never nullentity
- never null. To avoid this parameter,
use EntityIndependentValueRangeDescriptor.extractValueRange(Solution_)
instead.public ValueRange<?> extractValueRange(Solution_ solution)
EntityIndependentValueRangeDescriptor
ValueRangeDescriptor.extractValueRange(Solution_, java.lang.Object)
.extractValueRange
in interface EntityIndependentValueRangeDescriptor<Solution_>
solution
- never nullValueRangeDescriptor.extractValueRange(Solution_, java.lang.Object)
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.