|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.TupleSource
org.drools.reteoo.ParameterNode
class ParameterNode
Receives Objects
from an ObjectTypeNode
, and
creates a ReteTuple
, passing the result to the following
node.
The ParameterNode
is the first node that works in terms of
Tuples
. An instance of ParameterNode
exists
for each root fact object parameter of each rule.
ObjectTypeNode
,
TupleSink
Constructor Summary | |
---|---|
ParameterNode(ObjectTypeNode objectTypeNode,
Declaration declaration)
Construct. |
Method Summary | |
---|---|
(package private) void |
assertObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Assert a new fact object into this RuleBase and the
specified WorkingMemory . |
void |
attach()
Attaches this node into the network. |
boolean |
equals(Object object)
|
Declaration |
getDeclaration()
Retrieve the root fact object Declaration . |
Set |
getTupleDeclarations()
Retrieve the Set of Declaration s in the
propagated Tuples . |
int |
hashCode()
|
(package private) void |
retractObject(FactHandle handle,
WorkingMemoryImpl workingMemory)
Retract a fact object from this RuleBase and the specified
WorkingMemory . |
Methods inherited from class org.drools.reteoo.TupleSource |
---|
addTupleSink, getTupleSinks, propagateAssertTuple, propagateRetractTuples |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterNode(ObjectTypeNode objectTypeNode, Declaration declaration)
objectTypeNode
- The ObjectTypeNode
input to this.declaration
- The root fact object Declaration
.Method Detail |
---|
public void attach()
TupleSource
attach
in class TupleSource
void assertObject(FactHandle handle, Object object, WorkingMemoryImpl workingMemory) throws AssertionException
RuleBase
and the
specified WorkingMemory
.
handle
- The fact handle.object
- The object to assert.workingMemory
- The working memory session.
AssertionException
- if an error occurs during assertion.void retractObject(FactHandle handle, WorkingMemoryImpl workingMemory) throws RetractionException
RuleBase
and the specified
WorkingMemory
.
handle
- The handle to the fact to retract.workingMemory
- The working memory session.
RetractionException
- if an error occurs during retraction.public Declaration getDeclaration()
Declaration
.
Declaration
.public Set getTupleDeclarations()
Set
of Declaration
s in the
propagated Tuples
.
getTupleDeclarations
in class TupleSource
Set
of Declarations
in progated
Tuples
.public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |