| org.osbl.agent.model.Condition
All known Subclasses: org.osbl.agent.model.condition.BeanShellCondition, org.osbl.agent.model.condition.PropertyCondition, org.osbl.agent.model.condition.OgnlCondition, org.osbl.agent.model.condition.SubjectCondition,
Condition | public interface Condition (Code) | | Condition are the first of the two important key aspects of a Rule.
When a Rule is run, all Conditions are evaluated in turn to test the applicability
of the Rule.
For that purpose, implementing classes should return true or false in
Condition.evaluate evaluate according to its class definition and purpose.
If the Conditions are all met, only then the Actions are executed.
See Also: Rule See Also: Action author: Sebastian Nozzi. |
Method Summary | |
public boolean | equals(Object anotherCondition) Equals. | public boolean | evaluate(RuleContext context) Implementing classes can perform an evaluation of some conditional potentially
taking information from context into account.
Parameters: context - the RuleContext, in which, among other things, implementingclasses can find the target instance. |
equals | public boolean equals(Object anotherCondition)(Code) | | Equals.
Parameters: anotherCondition - the another condition true, if successful |
evaluate | public boolean evaluate(RuleContext context)(Code) | | Implementing classes can perform an evaluation of some conditional potentially
taking information from context into account.
Parameters: context - the RuleContext, in which, among other things, implementingclasses can find the target instance. true, if the evaluation is to be taken as successfull. |
|
|