|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.TupleSource
A source of ReteTuple
s for a TupleSink
.
Nodes that propagate Tuples
extend this class.
TupleSource
,
ReteTuple
Constructor Summary | |
(package private) |
TupleSource()
Construct. |
Method Summary | |
abstract Set |
getTupleDeclarations()
Retrieve the available tuple Declaration s. |
TupleSink |
getTupleSink()
Retrieve the TupleSink that receives propagated
Tuples . |
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 . |
protected void |
setTupleSink(TupleSink tupleSink)
Set the TupleSink that receives Tuples
propagated from this TupleSource . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
TupleSource()
Method Detail |
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
.public abstract Set getTupleDeclarations()
Declaration
s.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |