Package jadex.rules.eca
Class Rule<T>
- java.lang.Object
- 
- jadex.rules.eca.Rule<T>
 
- 
- 
Constructor SummaryConstructors Constructor Description Rule(java.lang.String name)Create a new rule.Rule(java.lang.String name, ICondition condition)Create a new rule.Rule(java.lang.String name, ICondition condition, IAction<T> action)Create a new rule.Rule(java.lang.String name, ICondition condition, IAction<T> action, EventType[] events)Create a new rule.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(EventType event)Set the event types.IAction<T>getAction()Get the action.IConditiongetCondition()Get the condition.java.util.List<EventType>getEvents()Get the event types.java.lang.StringgetName()Get the rule name.voidsetAction(IAction<T> action)Set the action.voidsetCondition(ICondition condition)Set the condition.voidsetEventNames(java.util.List<java.lang.String> events)Set the event types.voidsetEvents(java.util.List<EventType> events)Set the event types.voidsetName(java.lang.String name)Set the name.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name The rule name.
 - 
eventsprotected java.util.List<EventType> events The event types.
 - 
conditionprotected ICondition condition The condition.
 
- 
 - 
Constructor Detail- 
Rulepublic Rule(java.lang.String name) Create a new rule.
 - 
Rulepublic Rule(java.lang.String name, ICondition condition)Create a new rule.
 - 
Rulepublic Rule(java.lang.String name, ICondition condition, IAction<T> action)Create a new rule.
 - 
Rulepublic Rule(java.lang.String name, ICondition condition, IAction<T> action, EventType[] events)Create a new rule.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the rule name.
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getConditionpublic ICondition getCondition() Get the condition.- Specified by:
- getConditionin interface- IRule<T>
- Returns:
- The condition.
 
 - 
setConditionpublic void setCondition(ICondition condition) Set the condition.- Parameters:
- condition- The condition to set.
 
 - 
setActionpublic void setAction(IAction<T> action) Set the action.- Parameters:
- action- The action to set.
 
 - 
setEventspublic void setEvents(java.util.List<EventType> events) Set the event types.- Parameters:
- events- The event types.
 
 - 
setEventNamespublic void setEventNames(java.util.List<java.lang.String> events) Set the event types.- Parameters:
- events- The event types.
 
 - 
getEventspublic java.util.List<EventType> getEvents() Get the event types.
 - 
addEventpublic void addEvent(EventType event) Set the event types.- Parameters:
- events- The event types.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-