|
|||||||||
| Home >> All >> org >> yajre >> [ reteoo overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.yajre.reteoo
Class ObjectTypeNode

java.lang.Objectorg.yajre.reteoo.ObjectTypeNode
- public final class ObjectTypeNode
- extends java.lang.Object
Filters Objects coming from the RootNode using
a org.yajre.spi.ObjectType semantic module.
It receives Objects from the
RootNode, uses a ObjectType instance to
determine membership, and propagates matching Objects
further to all matching ParameterNodes.
| Field Summary | |
private java.util.Map |
declarations
Declarations indexed by declaration identifier. |
private org.yajre.spi.ObjectType |
objectType
The ObjectType semantic module. |
private java.util.List |
parameters
ParameterNode heads of their respective rule
chains. |
| Constructor Summary | |
(package private) |
ObjectTypeNode(org.yajre.spi.ObjectType objectType)
Construct given a semantic ObjectType. |
| Method Summary | |
protected void |
addParameterNode(ParameterNode node)
Add a ParameterNode child to this node. |
void |
assert(org.yajre.spi.Declaration decl,
java.lang.Object object,
org.yajre.WorkingMemory mem)
Assert a fact. |
org.yajre.spi.ObjectType |
getObjectType()
Retrieve the semantic ObjectType differentiator. |
org.yajre.spi.Declaration |
identity(java.lang.String parmid)
|
void |
modify(org.yajre.spi.Declaration decl,
java.lang.Object object,
org.yajre.WorkingMemory mem)
Modify a fact object in this RuleBase
and the specified WorkingMemory. |
void |
retract(org.yajre.spi.Declaration decl,
org.yajre.WorkingMemory mem)
Retract a fact object from this RuleBase
and the specified WorkingMemory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
objectType
private org.yajre.spi.ObjectType objectType
- The
ObjectTypesemantic module.
parameters
private final java.util.List parameters
ParameterNodeheads of their respective rule chains.
declarations
private final java.util.Map declarations
Declarations indexed by declaration identifier.
| Constructor Detail |
ObjectTypeNode
ObjectTypeNode(org.yajre.spi.ObjectType objectType)
- Construct given a semantic
ObjectType.
| Method Detail |
identity
public final org.yajre.spi.Declaration identity(java.lang.String parmid)
getObjectType
public final org.yajre.spi.ObjectType getObjectType()
- Retrieve the semantic
ObjectTypedifferentiator.
addParameterNode
protected final void addParameterNode(ParameterNode node)
- Add a
ParameterNodechild to this node.
assert
public final void assert(org.yajre.spi.Declaration decl, java.lang.Object object, org.yajre.WorkingMemory mem) throws org.yajre.AssertionException
- Assert a fact.
retract
public final void retract(org.yajre.spi.Declaration decl, org.yajre.WorkingMemory mem) throws org.yajre.RetractionException
- Retract a fact object from this
RuleBaseand the specifiedWorkingMemory.
modify
public final void modify(org.yajre.spi.Declaration decl, java.lang.Object object, org.yajre.WorkingMemory mem) throws org.yajre.ModificationException
- Modify a fact object in this
RuleBaseand the specifiedWorkingMemory. With the exception of time-based nodes, modification of a fact object is semantically equivelent to retracting and re-asserting it.
|
|||||||||
| Home >> All >> org >> yajre >> [ reteoo overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.yajre.reteoo.ObjectTypeNode