| java.lang.Object org.cougaar.planning.ldm.policy.KeyRuleParameter
KeyRuleParameter | public class KeyRuleParameter implements RuleParameter,java.io.Serializable(Code) | | An KeyRuleParameter is a RuleParameter with a list of
key/value pairs and a default value. When the
getValue is called with the Key argument, and some value is defined
for that key, that value is returned. Otherwise, the default
is returned.
|
KeyRuleParameter | public KeyRuleParameter(String param_name)(Code) | | |
KeyRuleParameter | public KeyRuleParameter()(Code) | | |
ParameterType | public int ParameterType()(Code) | | Parameter type is KEY
|
getValue | public Object getValue()(Code) | | Get parameter value (String)
Object parameter value (String). Note : could be null. |
getValue | public Object getValue(String key)(Code) | | Get parameter value (String) keyed by int
If key equals one of the defined keys, return associated
value, otherwise return default value (String).
Object parameter value (String). Note : could be null. |
inRange | public boolean inRange(Object test_value)(Code) | | Parameters: test_value - : must be String true if Object is a String in the enumeration, false otherwise |
|
|