|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.TupleSource
abstract class TupleSource
A source of ReteTuple
s for a TupleSink
.
Nodes that propagate Tuples
extend this class.
TupleSource
,
ReteTuple
Constructor Summary | |
---|---|
TupleSource()
Construct. |
Method Summary | |
---|---|
protected void |
addTupleSink(TupleSink tupleSink)
Adds the TupleSink so that it may receive Tuples
propagated from this TupleSource . |
abstract void |
attach()
Attaches this node into the network. |
abstract Set |
getTupleDeclarations()
Retrieve the available tuple Declaration s. |
List |
getTupleSinks()
Retrieve the TupleSinks that receive propagated
Tuples . |
protected void |
propagateAssertTuple(ReteTuple tuple,
WorkingMemoryImpl workingMemory)
Propagate the assertion of a Tuple to this node's
TupleSink . |
protected void |
propagateRetractTuples(TupleKey key,
WorkingMemoryImpl workingMemory)
Propagate the retration of a Tuple to this node's
TupleSink . |
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 addTupleSink(TupleSink tupleSink)
TupleSink
so that it may receive 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 retractionpublic List getTupleSinks()
TupleSinks
that receive propagated
Tuples
.
TupleSinks
that receive propagated
Tuples
.public abstract Set getTupleDeclarations()
Declaration
s.
public abstract void attach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |