Solution_ - the solution type, the class with the PlanningSolution annotationpublic class CompositeValueRangeDescriptor<Solution_> extends AbstractValueRangeDescriptor<Solution_> implements EntityIndependentValueRangeDescriptor<Solution_>
| Modifier and Type | Field and Description |
|---|---|
protected List<ValueRangeDescriptor<Solution_>> |
childValueRangeDescriptorList |
protected boolean |
entityIndependent |
addNullInValueRange, variableDescriptor| Constructor and Description |
|---|
CompositeValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor,
boolean addNullInValueRange,
List<ValueRangeDescriptor<Solution_>> childValueRangeDescriptorList) |
| 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 |
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. |
doNullInValueRangeWrapping, getVariableDescriptor, mightContainEntity, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVariableDescriptor, mightContainEntityprotected final List<ValueRangeDescriptor<Solution_>> childValueRangeDescriptorList
protected boolean entityIndependent
public CompositeValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange, List<ValueRangeDescriptor<Solution_>> childValueRangeDescriptorList)
public boolean isCountable()
isCountable in interface ValueRangeDescriptor<Solution_>ValueRange is countable
(for example a double value range between 1.2 and 1.4 is not countable)public boolean isEntityIndependent()
ValueRangeDescriptorEntityIndependentValueRangeDescriptor,
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)
EntityIndependentValueRangeDescriptorValueRangeDescriptor.extractValueRange(Solution_, java.lang.Object).extractValueRange in interface EntityIndependentValueRangeDescriptor<Solution_>solution - never nullValueRangeDescriptor.extractValueRange(Solution_, java.lang.Object)Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.