Package jadex.rules.eca
Class Rule<T>
java.lang.Object
jadex.rules.eca.Rule<T>
- All Implemented Interfaces:
IRule<T>
Implementation of a rule.
Has a
- name
- event types it reacts to
- condition, lhs of the rule
- action, rhs of the rule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the event types.Get the action.Get the condition.Get the event types.getName()
Get the rule name.void
Set the action.void
setCondition
(ICondition condition) Set the condition.void
Set the event types.void
Set the name.toString()
-
Field Details
-
name
The rule name. -
events
The event types. -
condition
The condition. -
action
The action.
-
-
Constructor Details
-
Rule
Create a new rule. -
Rule
Create a new rule. -
Rule
Create a new rule. -
Rule
Create a new rule.
-
-
Method Details
-
getName
Get the rule name. -
setName
Set the name.- Parameters:
name
- The name to set.
-
getCondition
Get the condition.- Specified by:
getCondition
in interfaceIRule<T>
- Returns:
- The condition.
-
setCondition
Set the condition.- Parameters:
condition
- The condition to set.
-
getAction
Get the action. -
setAction
Set the action.- Parameters:
action
- The action to set.
-
setEvents
Set the event types.- Parameters:
events
- The event types.
-
getEvents
Get the event types. -
addEvent
Set the event types.- Parameters:
events
- The event types.
-
toString
-