jadex.rules.eca.IRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-rules-eca Show documentation
Show all versions of jadex-rules-eca Show documentation
Small Java annotation-based event-condition-action rule engine.
package jadex.rules.eca;
import java.util.List;
/**
* Interface for a rule.
* Has a
* - name
* - event types it reacts to
* - condition, lhs of the rule
* - action, rhs of the rule
*/
public interface IRule
{
/**
* Get the rule name.
* @return The rule name.
*/
public String getName();
/**
* Get the event types this rule reactes to.
* @return The event types.
*/
public List getEvents();
/**
* Get the condition of the rule.
* @return The condition.
*/
public ICondition getCondition();
/**
* Get the action of the rule.
* @return The action.
*/
public IAction getAction();
}