| org.osbl.agent.model.Action
All known Subclasses: org.osbl.agent.model.action.SetPropertyAction, org.osbl.agent.model.action.BeanShellAction,
Action | public interface Action (Code) | | Actions are the second of the key components of a Rule (the other being its Conditions).
When a Rule is run, and all the Conditions are met, then the List of Actions is gone through
and its Actions executed one by one.
Classes that wish to pose as Actions need to implement method
Action.execute execute .
See Also: Rule See Also: Condition author: Sebastian Nozzi. |
Method Summary | |
public boolean | equals(Object anotherAction) Implements a better version of "equals", comparing Actions of what they
do semantically. | public void | execute(RuleContext context) This method is called in an Action when it is to be executed. |
equals | public boolean equals(Object anotherAction)(Code) | | Implements a better version of "equals", comparing Actions of what they
do semantically.
Parameters: anotherAction - the other Action to compare true, if both Actions do the same See Also: Rule.equals(Object) |
execute | public void execute(RuleContext context)(Code) | | This method is called in an Action when it is to be executed.
Normally invoked by a Rule object.
Parameters: context - the RuleContext in which the action is executed. See Also: Rule.executeActions(RuleContext) |
|
|