public class RetePatternMatcherFunctionality extends java.lang.Object implements IPatternMatcherFunctionality, IRulebaseListener, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected ReteNode |
node
The rete node.
|
protected IRulebase |
rulebase
The rulebase.
|
| Constructor and Description |
|---|
RetePatternMatcherFunctionality(IRulebase rulebase)
Create a new Rete pattern matcher functionality.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone this object.
|
IPatternMatcherState |
createMatcherState(IOAVState state,
AbstractAgenda agenda)
Create a pattern matcher instance for a given state.
|
ReteNode |
getReteNode()
Get the Rete node.
|
IRulebase |
getRulebase()
Get the rulebase.
|
void |
ruleAdded(IRule rule)
Notification when a rule has been added.
|
void |
ruleRemoved(IRule rule)
Notification when a rule has been removed.
|
protected IRulebase rulebase
protected ReteNode node
public RetePatternMatcherFunctionality(IRulebase rulebase)
public IRulebase getRulebase()
getRulebase in interface IPatternMatcherFunctionalitypublic void ruleAdded(IRule rule)
ruleAdded in interface IRulebaseListenerrule - The added rule.public void ruleRemoved(IRule rule)
ruleRemoved in interface IRulebaseListenerrule - The removed rule.public IPatternMatcherState createMatcherState(IOAVState state, AbstractAgenda agenda)
createMatcherState in interface IPatternMatcherFunctionalitystate - The state.agenda - The agenda.public ReteNode getReteNode()
public java.lang.Object clone()
clone in interface IPatternMatcherFunctionalityclone in class java.lang.Object