Package jadex.rules.eca
Interface IRulebase
-
- All Known Implementing Classes:
Rulebase
public interface IRulebase
Interface for the rulebase that contains all the rules of the system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRule(IRule<?> rule)
Add a new rule.boolean
containsRule(java.lang.String name)
Test if a rule is contained in the rule base.IRule<?>
getRule(java.lang.String name)
Get the rule.java.util.Collection<IRule<?>>
getRules()
Get all rules.java.util.List<IRule<?>>
getRules(EventType event)
Get all rules that are relevant for an event type.void
removeRule(java.lang.String rulename)
Remove a rule.void
updateRule(IRule<?> rule)
Update a rule.
-
-
-
Method Detail
-
addRule
void addRule(IRule<?> rule)
Add a new rule.- Parameters:
rule
- The rule.
-
removeRule
void removeRule(java.lang.String rulename)
Remove a rule.- Parameters:
rulename
- The rule name.
-
updateRule
void updateRule(IRule<?> rule)
Update a rule.- Parameters:
rule
- The rule.
-
getRules
java.util.List<IRule<?>> getRules(EventType event)
Get all rules that are relevant for an event type.- Parameters:
event
- The event type.- Returns:
- The rules.
-
getRules
java.util.Collection<IRule<?>> getRules()
Get all rules.- Returns:
- The rules.
-
getRule
IRule<?> getRule(java.lang.String name)
Get the rule.- Parameters:
event
- The rule name.- Returns:
- The rule.
-
containsRule
boolean containsRule(java.lang.String name)
Test if a rule is contained in the rule base.- Parameters:
name
- The rule name.- Returns:
- True, if contained.
-
-