|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.reteoo.impl.ReteImpl
The Rete-OO network.
This node accepts an Object
, and simply
propagates it to all ObjectTypeNode
s for
type testings.
ObjectTypeNodeImpl
Constructor Summary | |
ReteImpl()
Construct. |
Method Summary | |
void |
assertObject(java.lang.Object object,
WorkingMemory workingMemory)
Assert a new fact object into this RuleBase
and the specified WorkingMemory . |
ObjectTypeNode |
getObjectTypeNode(ObjectType objectType)
Retrieve an ObjectTypeNode keyed by ObjectType . |
java.util.Collection |
getObjectTypeNodes()
Retrieve all ObjectTypeNode children
of this node. |
ObjectTypeNodeImpl |
getOrCreateObjectTypeNode(ObjectType objectType)
Retrieve an ObjectTypeNode keyed by ObjectType ,
creating one, if necessary. |
void |
modifyObject(java.lang.Object object,
WorkingMemory workingMemory)
Modify a fact object in this RuleBase
and the specified WorkingMemory . |
void |
retractObject(java.lang.Object object,
WorkingMemory 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 ReteImpl()
Method Detail |
public void assertObject(java.lang.Object object, WorkingMemory workingMemory) throws AssertionException
RuleBase
and the specified WorkingMemory
.assertObject
in interface Rete
object
- The object to assert.workingMemory
- The working memory session.AssertionException
- if an error occurs during assertion.public void retractObject(java.lang.Object object, WorkingMemory workingMemory) throws RetractionException
RuleBase
and the specified WorkingMemory
.retractObject
in interface Rete
object
- The object to retract.workingMemory
- The working memory session.RetractionException
- if an error occurs during retraction.public void modifyObject(java.lang.Object object, WorkingMemory 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.modifyObject
in interface Rete
object
- The object to modify.workingMemory
- The working memory session.FactException
- if an error occurs during modification.public java.util.Collection getObjectTypeNodes()
ObjectTypeNode
children
of this node.Set
of ObjectTypeNodes
.public ObjectTypeNode getObjectTypeNode(ObjectType objectType)
ObjectTypeNode
keyed by ObjectType
.objectType
- The ObjectType
key.ObjectTypeNode
if one has already
been created, else null
.public ObjectTypeNodeImpl getOrCreateObjectTypeNode(ObjectType objectType)
ObjectTypeNode
keyed by ObjectType
,
creating one, if necessary.objectType
- The ObjectType
key.ObjectTypeNode
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |