Package jadex.rules.rulesystem
Interface IRulebase
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
Rulebase
public interface IRulebase extends java.lang.Cloneable
Contains the rules of a rule system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRule(IRule rule)
Add a rule.void
addRulebaseListener(IRulebaseListener listener)
Add a new state listener.java.lang.Object
clone()
Clone this object.IRule
getRule(java.lang.String string)
Get a rule with a given name.java.util.Collection
getRules()
Get all rules.void
removeRule(IRule rule)
Remove a rule.void
removeRulebaseListener(IRulebaseListener listener)
Remove a state listener.
-
-
-
Method Detail
-
addRule
void addRule(IRule rule)
Add a rule.- Parameters:
rule
- The rule to add.
-
removeRule
void removeRule(IRule rule)
Remove a rule.- Parameters:
rule
- The rule to remove.
-
getRules
java.util.Collection getRules()
Get all rules.- Returns:
- All rules.
-
getRule
IRule getRule(java.lang.String string)
Get a rule with a given name.- Parameters:
name
- The rule name.- Returns:
- The rule.
-
addRulebaseListener
void addRulebaseListener(IRulebaseListener listener)
Add a new state listener.- Parameters:
listener
- The state listener.
-
removeRulebaseListener
void removeRulebaseListener(IRulebaseListener listener)
Remove a state listener.- Parameters:
listener
- The state listener.
-
clone
java.lang.Object clone()
Clone this object.- Returns:
- A clone of this object.
-
-