Package jadex.rules.rulesystem.rete
Class RetePatternMatcherState
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.RetePatternMatcherState
 
- 
- All Implemented Interfaces:
- IPatternMatcherState,- IOAVStateListener
 
 public class RetePatternMatcherState extends java.lang.Object implements IPatternMatcherState, IOAVStateListener The state specific part of a Rete pattern matcher.
- 
- 
Field SummaryFields Modifier and Type Field Description protected AbstractAgendaagendaThe agenda.protected ReteNodenodeThe rete node.protected ReteMemoryretememThe rete memory.protected IOAVStatestateThe state.
 - 
Constructor SummaryConstructors Constructor Description RetePatternMatcherState(ReteNode node, IOAVState state, ReteMemory retemem, AbstractAgenda agenda)Create a state specific part of a Rete pattern matcher.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IAgendagetAgenda()Get the agenda.ReteMemorygetReteMemory()Get the Rete memory.ReteNodegetReteNode()Get the node.voidinit()Initialize the pattern matcher.voidobjectAdded(java.lang.Object id, OAVObjectType type, boolean root)Notification when an object has been added to the state.voidobjectModified(java.lang.Object id, OAVObjectType type, OAVAttributeType attr, java.lang.Object oldvalue, java.lang.Object newvalue)Notification when an attribute value of an object has been set.voidobjectRemoved(java.lang.Object id, OAVObjectType type)Notification when an object has been removed from state.
 
- 
- 
- 
Field Detail- 
nodeprotected ReteNode node The rete node.
 - 
retememprotected ReteMemory retemem The rete memory.
 - 
stateprotected IOAVState state The state.
 - 
agendaprotected AbstractAgenda agenda The agenda.
 
- 
 - 
Constructor Detail- 
RetePatternMatcherStatepublic RetePatternMatcherState(ReteNode node, IOAVState state, ReteMemory retemem, AbstractAgenda agenda) Create a state specific part of a Rete pattern matcher.
 
- 
 - 
Method Detail- 
initpublic void init() Initialize the pattern matcher. Called before the agenda is accessed to perform any initialization, if necessary.- Specified by:
- initin interface- IPatternMatcherState
 
 - 
getAgendapublic IAgenda getAgenda() Get the agenda. The agenda can only be accessed, after the rule system has been initialized withinit().- Specified by:
- getAgendain interface- IPatternMatcherState
- Returns:
- The agenda.
 
 - 
objectModifiedpublic void objectModified(java.lang.Object id, OAVObjectType type, OAVAttributeType attr, java.lang.Object oldvalue, java.lang.Object newvalue)Notification when an attribute value of an object has been set.- Specified by:
- objectModifiedin interface- IOAVStateListener
- Parameters:
- id- The object id.
- type- The object type.
- attr- The attribute type.
- oldvalue- The oldvalue.
- newvalue- The newvalue.
 
 - 
objectAddedpublic void objectAdded(java.lang.Object id, OAVObjectType type, boolean root)Notification when an object has been added to the state.- Specified by:
- objectAddedin interface- IOAVStateListener
- Parameters:
- id- The object id.
- type- The object type.
- root- Flag indicating that the object is a root object.
 
 - 
objectRemovedpublic void objectRemoved(java.lang.Object id, OAVObjectType type)Notification when an object has been removed from state.- Specified by:
- objectRemovedin interface- IOAVStateListener
- Parameters:
- id- The object id.
- type- The object type.
 
 - 
getReteMemorypublic ReteMemory getReteMemory() Get the Rete memory.
 - 
getReteNodepublic ReteNode getReteNode() Get the node.- Returns:
- The node.
 
 
- 
 
-