| |
|
| java.lang.Object org.cougaar.planning.ldm.policy.PredicateRuleParameter
PredicateRuleParameter | public class PredicateRuleParameter implements RuleParameter,java.io.Serializable(Code) | | An PredicateRuleParameter is a RuleParameter with a UnaryPredicate
as its value. The inRange method is implemented to apply the
predicate to the test object.
|
PredicateRuleParameter | public PredicateRuleParameter(String param_name, UnaryPredicate aPredicate)(Code) | | Constructor sets the predicate
|
PredicateRuleParameter | public PredicateRuleParameter()(Code) | | |
ParameterType | public int ParameterType()(Code) | | Parameter type is PREDICATE
|
getPredicate | public UnaryPredicate getPredicate()(Code) | | Convenience accessor not requiring casting the result
|
getValue | public Object getValue()(Code) | | Get parameter value (UnaryPredicate)
Object parameter value (UnaryPredicate). Note : could be null. |
inRange | public boolean inRange(Object test_value)(Code) | | Parameters: test_value - : Any object true if test_value is acceptable to the predicate |
|
|
|