public class RetePatternMatcherState extends java.lang.Object implements IPatternMatcherState, IOAVStateListener
| Modifier and Type | Field and Description |
|---|---|
protected AbstractAgenda |
agenda
The agenda.
|
protected ReteNode |
node
The rete node.
|
protected ReteMemory |
retemem
The rete memory.
|
protected IOAVState |
state
The state.
|
| Constructor and Description |
|---|
RetePatternMatcherState(ReteNode node,
IOAVState state,
ReteMemory retemem,
AbstractAgenda agenda)
Create a state specific part of a Rete pattern matcher.
|
| Modifier and Type | Method and Description |
|---|---|
IAgenda |
getAgenda()
Get the agenda.
|
ReteMemory |
getReteMemory()
Get the Rete memory.
|
ReteNode |
getReteNode()
Get the node.
|
void |
init()
Initialize the pattern matcher.
|
void |
objectAdded(java.lang.Object id,
OAVObjectType type,
boolean root)
Notification when an object has been added to the state.
|
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.
|
void |
objectRemoved(java.lang.Object id,
OAVObjectType type)
Notification when an object has been removed from state.
|
protected ReteNode node
protected ReteMemory retemem
protected IOAVState state
protected AbstractAgenda agenda
public RetePatternMatcherState(ReteNode node, IOAVState state, ReteMemory retemem, AbstractAgenda agenda)
public void init()
init in interface IPatternMatcherStatepublic IAgenda getAgenda()
init().getAgenda in interface IPatternMatcherStatepublic void objectModified(java.lang.Object id,
OAVObjectType type,
OAVAttributeType attr,
java.lang.Object oldvalue,
java.lang.Object newvalue)
objectModified in interface IOAVStateListenerid - The object id.type - The object type.attr - The attribute type.oldvalue - The oldvalue.newvalue - The newvalue.public void objectAdded(java.lang.Object id,
OAVObjectType type,
boolean root)
objectAdded in interface IOAVStateListenerid - The object id.type - The object type.root - Flag indicating that the object is a root object.public void objectRemoved(java.lang.Object id,
OAVObjectType type)
objectRemoved in interface IOAVStateListenerid - The object id.type - The object type.public ReteMemory getReteMemory()
public ReteNode getReteNode()