|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.Rete
The Rete-OO network.
This node accepts an Object
, and simply propagates it to all
ObjectTypeNode
s for type testings.
ObjectTypeNode
Constructor Summary | |
Rete()
Construct. |
Method Summary | |
(package private) void |
addObjectTypeNode(ObjectTypeNode node)
Add an ObjectTypeNode child to this Rete . |
(package private) void |
assertObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Assert a new fact object into this RuleBase and the
specified WorkingMemory . |
(package private) ObjectTypeNode |
getObjectTypeNode(ObjectType objectType)
Retrieve an ObjectTypeNode keyed by
ObjectType . |
(package private) Iterator |
getObjectTypeNodeIterator()
Retrieve an Iterator over the ObjectTypeNode
children of this node. |
(package private) Collection |
getObjectTypeNodes()
Retrieve all ObjectTypeNode children of this node. |
(package private) ObjectTypeNode |
getOrCreateObjectTypeNode(ObjectType objectType)
Retrieve an ObjectTypeNode keyed by
ObjectType , creating one, if necessary. |
(package private) void |
modifyObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Modify a fact object in this RuleBase and the specified
WorkingMemory . |
(package private) void |
retractObject(FactHandle handle,
WorkingMemoryImpl workingMemory)
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 |
Constructor Detail |
public Rete()
Method Detail |
void assertObject(FactHandle handle, Object object, WorkingMemoryImpl workingMemory) throws FactException
RuleBase
and the
specified WorkingMemory
.
handle
- The fact handle.object
- The object to assert.workingMemory
- The working memory session.
FactException
- if an error occurs during assertion.void retractObject(FactHandle handle, WorkingMemoryImpl workingMemory) throws FactException
RuleBase
and the specified
WorkingMemory
.
handle
- The handle of the fact to retract.workingMemory
- The working memory session.
FactException
- if an error occurs during retraction.void modifyObject(FactHandle handle, Object object, WorkingMemoryImpl workingMemory) throws FactException
RuleBase
and the specified
WorkingMemory
.
With the exception of time-based nodes, modification of a fact object is
semantically equivelent to retracting and re-asserting it.
handle
- The fact handle.object
- The modified value object.workingMemory
- The working memory session.
FactException
- if an error occurs during modification.void addObjectTypeNode(ObjectTypeNode node)
ObjectTypeNode
child to this Rete
.
node
- The node to add.Collection getObjectTypeNodes()
ObjectTypeNode
children of this node.
Set
of ObjectTypeNodes
.Iterator getObjectTypeNodeIterator()
Iterator
over the ObjectTypeNode
children of this node.
Iterator
over ObjectTypeNodes
.ObjectTypeNode getObjectTypeNode(ObjectType objectType)
ObjectTypeNode
keyed by
ObjectType
.
objectType
- The ObjectType
key.
ObjectTypeNode
if one has already
been created, else null
.ObjectTypeNode getOrCreateObjectTypeNode(ObjectType objectType)
ObjectTypeNode
keyed by
ObjectType
, creating one, if necessary.
objectType
- The ObjectType
key.
ObjectTypeNode.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |