public interface ValueRangeDescriptor
| Modifier and Type | Method and Description |
|---|---|
ValueRange<?> |
extractValueRange(Solution solution,
Object entity) |
GenuineVariableDescriptor |
getVariableDescriptor() |
boolean |
isCountable() |
boolean |
isEntityIndependent()
If this method return true, this instance is safe to cast to
EntityIndependentValueRangeDescriptor,
otherwise it requires an entity to determine the ValueRange. |
boolean |
mightContainEntity() |
GenuineVariableDescriptor getVariableDescriptor()
boolean isCountable()
ValueRange is countable
(for example a double value range between 1.2 and 1.4 is not countable)boolean isEntityIndependent()
EntityIndependentValueRangeDescriptor,
otherwise it requires an entity to determine the ValueRange.ValueRange is the same for all entities of the same solutionboolean mightContainEntity()
ValueRange might contain a planning entity instance
(not necessarily of the same entity class as this entity class of this descriptor.ValueRange<?> extractValueRange(Solution solution, Object entity)
solution - never nullentity - never null. To avoid this parameter,
use EntityIndependentValueRangeDescriptor.extractValueRange(Solution) instead.Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.