| java.lang.Object org.cougaar.planning.ldm.policy.RangeRuleParameter
RangeRuleParameter | public class RangeRuleParameter implements RuleParameter,java.io.Serializable(Code) | | An RangeRuleParameter is a RuleParameter with a list of
integer-range delineated values and a default value. When the
getValue is called with the Key argument, and some value is defined
within some range, that value is returned. Otherwise, the default
is returned.
|
RangeRuleParameter | public RangeRuleParameter(String param_name)(Code) | | |
RangeRuleParameter | public RangeRuleParameter()(Code) | | |
ParameterType | public int ParameterType()(Code) | | Parameter type is RANGE
|
getValue | public Object getValue()(Code) | | Get parameter value
parameter value. Note : could be null. |
getValue | public Object getValue(int key)(Code) | | Get parameter value keyed by int
If key fits into one of the defined ranges, return associated
value, otherwise return default value.
parameter value. Note : could be null. |
inRange | public boolean inRange(Object test_value)(Code) | | Parameters: test_value - always returns true |
|
|