Package jadex.rules.rulesystem.rete
Class RetePatternMatcherFunctionality
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.RetePatternMatcherFunctionality
 
- 
- All Implemented Interfaces:
- IPatternMatcherFunctionality,- IRulebaseListener,- java.lang.Cloneable
 
 public class RetePatternMatcherFunctionality extends java.lang.Object implements IPatternMatcherFunctionality, IRulebaseListener, java.lang.Cloneable The static (reusable) part of a Rete matcher (i.e. the Rete network).
- 
- 
Constructor SummaryConstructors Constructor Description RetePatternMatcherFunctionality(IRulebase rulebase)Create a new Rete pattern matcher functionality.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clone this object.IPatternMatcherStatecreateMatcherState(IOAVState state, AbstractAgenda agenda)Create a pattern matcher instance for a given state.ReteNodegetReteNode()Get the Rete node.IRulebasegetRulebase()Get the rulebase.voidruleAdded(IRule rule)Notification when a rule has been added.voidruleRemoved(IRule rule)Notification when a rule has been removed.
 
- 
- 
- 
Constructor Detail- 
RetePatternMatcherFunctionalitypublic RetePatternMatcherFunctionality(IRulebase rulebase) Create a new Rete pattern matcher functionality.
 
- 
 - 
Method Detail- 
getRulebasepublic IRulebase getRulebase() Get the rulebase.- Specified by:
- getRulebasein interface- IPatternMatcherFunctionality
- Returns:
- The rulebase.
 
 - 
ruleAddedpublic void ruleAdded(IRule rule) Notification when a rule has been added.- Specified by:
- ruleAddedin interface- IRulebaseListener
- Parameters:
- rule- The added rule.
 
 - 
ruleRemovedpublic void ruleRemoved(IRule rule) Notification when a rule has been removed.- Specified by:
- ruleRemovedin interface- IRulebaseListener
- Parameters:
- rule- The removed rule.
 
 - 
createMatcherStatepublic IPatternMatcherState createMatcherState(IOAVState state, AbstractAgenda agenda) Create a pattern matcher instance for a given state.- Specified by:
- createMatcherStatein interface- IPatternMatcherFunctionality
- Parameters:
- state- The state.
- agenda- The agenda.
 
 - 
getReteNodepublic ReteNode getReteNode() Get the Rete node.
 - 
clonepublic java.lang.Object clone() Clone this object.- Specified by:
- clonein interface- IPatternMatcherFunctionality
- Overrides:
- clonein class- java.lang.Object
- Returns:
- A clone of this object.
 
 
- 
 
-