Solution_
- the solution type, the class with the PlanningSolution
annotationpublic interface ValueRangeDescriptor<Solution_>
Modifier and Type | Method and Description |
---|---|
ValueRange<?> |
extractValueRange(Solution_ solution,
Object entity) |
GenuineVariableDescriptor<Solution_> |
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<Solution_> 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–2020 JBoss by Red Hat. All rights reserved.