| |
|
| java.lang.Object org.cougaar.core.adaptivity.ConstraintOpValue
All known Subclasses: org.cougaar.core.adaptivity.ConstraintPhrase,
ConstraintOpValue | public class ConstraintOpValue implements java.io.Serializable(Code) | | A phrase fragment used to express a boolean comparison and a set of
valid values to compare against.
|
ConstraintOpValue | public ConstraintOpValue()(Code) | | Constructor
|
getAllowedValues | public OMCRangeList getAllowedValues()(Code) | | Get the ranges of allowed values.
all allowed ranges as imposed by this constraint |
getOperator | public ConstraintOperator getOperator()(Code) | | The relationship between the condition or operating mode and the
value.
ConstraintOperator |
getValue | public Comparable getValue()(Code) | | Get the effective value of the allowed values. This is always the
the min of the first range.
the value as a Comparable (String, Integer, Double, etc.) |
setAllowedValues | public void setAllowedValues(OMCRangeList l)(Code) | | Set the list of value ranges against which the operator can
compare a condition value. The actual interpretation of the
allowed values depends on the operator.
Parameters: l - the list of value ranges. |
|
|
|