|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.ObjectTypeNode
Filters Objects
coming from the Rete
using a
ObjectType
semantic module.
It receives Objects
from the Rete
, uses a
ObjectType
instance to determine membership, and propagates
matching Objects
further to all matching
ParameterNode
s.
ObjectType
,
ParameterNode
,
Rete
Constructor Summary | |
ObjectTypeNode(ObjectType objectType)
Construct given a semantic ObjectType . |
Method Summary | |
(package private) void |
addParameterNode(ParameterNode node)
Add a ParameterNode child to this node. |
(package private) void |
assertObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Assert a new fact object into this RuleBase and the
specified WorkingMemory . |
ObjectType |
getObjectType()
Retrieve the semantic ObjectType differentiator. |
(package private) Iterator |
getParameterNodeIterator()
Retreive an Iterator over ParameterNode
children of this node. |
(package private) Set |
getParameterNodes()
Retrieve the Set of ParameterNodes/code>
children of this node. |
(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 ObjectTypeNode(ObjectType objectType)
ObjectType
.
objectType
- The semantic object-type differentiator.Method Detail |
public ObjectType getObjectType()
ObjectType
differentiator.
ObjectType
differentiator.void addParameterNode(ParameterNode node)
ParameterNode
child to this node.
node
- The ParameterNode
child to add.Set getParameterNodes()
Set
of ParameterNodes/code>
children of this node.
- Returns:
- The
Set
of ParameterNode
children.
Iterator getParameterNodeIterator()
Iterator
over ParameterNode
children of this node.
Iterator
over ParameterNode
children of this node.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 assertion.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 assertion.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |