|
|||||||||||
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.JoinNode
A two-input Rete-OO join node .
TupleSource
,
TupleSink
Constructor Summary | |
JoinNode(TupleSource leftInput,
TupleSource rightInput)
Construct. |
Method Summary | |
(package private) void |
assertLeftTuple(ReteTuple tuple,
WorkingMemoryImpl workingMemory)
Assert a new Tuple from the left input. |
(package private) void |
assertRightTuple(ReteTuple tuple,
WorkingMemoryImpl workingMemory)
Assert a new Tuple from the right input. |
Set |
getCommonDeclarations()
Retrieve the set of common Declarations across the two
input TupleSources . |
Set |
getTupleDeclarations()
Retrieve the Set of Declaration s. |
TupleSink |
getTupleSink()
Retrieve the TupleSink that receives propagated
Tuples . |
(package private) void |
modifyLeftTuples(FactHandle trigger,
TupleSet newTuples,
WorkingMemoryImpl workingMemory)
Modify tuples from the left input. |
(package private) void |
modifyRightTuples(FactHandle trigger,
TupleSet newTuples,
WorkingMemoryImpl workingMemory)
Modify tuples from the right input. |
protected void |
propagateAssertTuple(ReteTuple tuple,
WorkingMemoryImpl workingMemory)
Propagate the assertion of a Tuple to this node's
TupleSink . |
protected void |
propagateModifyTuples(FactHandle trigger,
TupleSet newTuples,
WorkingMemoryImpl workingMemory)
Propagate the modification of Tuple s to this node's
TupleSink . |
protected void |
propagateRetractTuples(TupleKey key,
WorkingMemoryImpl workingMemory)
Propagate the retration of a Tuple to this node's
TupleSink . |
void |
retractTuples(TupleKey key,
WorkingMemoryImpl workingMemory)
Retract tuples. |
protected void |
setTupleSink(TupleSink tupleSink)
Set the TupleSink that receives Tuples
propagated from this TupleSource . |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JoinNode(TupleSource leftInput, TupleSource rightInput)
leftInput
- The left input TupleSource
.rightInput
- The right input TupleSource
.Method Detail |
public String toString()
public Set getCommonDeclarations()
Declarations
across the two
input TupleSources
.
Set
of common Declarations
.void assertLeftTuple(ReteTuple tuple, WorkingMemoryImpl workingMemory) throws AssertionException
Tuple
from the left input.
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.
AssertionException
- If an error occurs while asserting.void assertRightTuple(ReteTuple tuple, WorkingMemoryImpl workingMemory) throws AssertionException
Tuple
from the right input.
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.
AssertionException
- If an error occurs while asserting.public void retractTuples(TupleKey key, WorkingMemoryImpl workingMemory) throws RetractionException
key
- The tuple key.workingMemory
- The working memory seesion.
RetractionException
- If an error occurs while retracting.void modifyLeftTuples(FactHandle trigger, TupleSet newTuples, WorkingMemoryImpl workingMemory) throws FactException
trigger
- The root fact object handle.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
FactException
- If an error occurs while modifying.void modifyRightTuples(FactHandle trigger, TupleSet newTuples, WorkingMemoryImpl workingMemory) throws FactException
trigger
- The root fact object handle.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
FactException
- If an error occurs while modifying.public Set getTupleDeclarations()
Set
of Declaration
s. in the
propagated Tuples
.
getTupleDeclarations
in class TupleSource
Set
of Declarations
in progated
Tuples
.Declaration
protected void setTupleSink(TupleSink tupleSink)
TupleSink
that receives Tuples
propagated from this TupleSource
.
tupleSink
- The TupleSink
to receive propagated
Tuples
.protected void propagateAssertTuple(ReteTuple tuple, WorkingMemoryImpl workingMemory) throws AssertionException
Tuple
to this node's
TupleSink
.
tuple
- The Tuple
to propagate.workingMemory
- the working memory session.
AssertionException
- If an errors occurs while attempting assertion.protected void propagateRetractTuples(TupleKey key, WorkingMemoryImpl workingMemory) throws RetractionException
Tuple
to this node's
TupleSink
.
key
- The tuple key.workingMemory
- The working memory session.
RetractionException
- If an error occurs while attempting retractionprotected void propagateModifyTuples(FactHandle trigger, TupleSet newTuples, WorkingMemoryImpl workingMemory) throws FactException
Tuple
s to this node's
TupleSink
.
trigger
- The modification trigger object handle.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
FactException
- If an error occurs while attempting modification.public TupleSink getTupleSink()
TupleSink
that receives propagated
Tuples
.
TupleSink
that receives propagated
Tuples
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |