Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.yajre.reteoo
Class TupleSource  view TupleSource download TupleSource.java

java.lang.Object
  extended byorg.yajre.reteoo.TupleSource
Direct Known Subclasses:
AssignmentNode, FilterNode, JoinNode, ParameterNode

public abstract class TupleSource
extends java.lang.Object

A source of ReteTuples for a TupleSink.

Chain nodes propagate Tuples and extend this class.


Field Summary
private  TupleSink tupleSink
          The next link in the chain.
 
Constructor Summary
protected TupleSource()
           
 
Method Summary
protected abstract  java.util.Set getTupleDeclarations()
          Retrieve the Set of org.yajre.spi.Declarations in the propagated Tuples.
protected  TupleSink getTupleSink()
          Retrieve the TupleSink that receives propagated Tuples.
protected  void propagateAssertion(ReteTuple tuple, org.yajre.WorkingMemory mem)
          Propagate the assertion of a Tuple to the next TupleSink node in the chain.
protected  void propagateRetraction(org.yajre.spi.Declaration decl, org.yajre.WorkingMemory mem)
          Propagate the retraction of a Tuple to the next TupleSink node in the chain.
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
 

Field Detail

tupleSink

private TupleSink tupleSink
The next link in the chain.

Constructor Detail

TupleSource

protected TupleSource()
Method Detail

getTupleDeclarations

protected abstract java.util.Set getTupleDeclarations()
Retrieve the Set of org.yajre.spi.Declarations in the propagated Tuples.


setTupleSink

protected final void setTupleSink(TupleSink tupleSink)
Set the TupleSink that receives Tuples propagated from this TupleSource.


getTupleSink

protected final TupleSink getTupleSink()
Retrieve the TupleSink that receives propagated Tuples.


propagateAssertion

protected final void propagateAssertion(ReteTuple tuple,
                                        org.yajre.WorkingMemory mem)
                                 throws org.yajre.AssertionException
Propagate the assertion of a Tuple to the next TupleSink node in the chain.


propagateRetraction

protected final void propagateRetraction(org.yajre.spi.Declaration decl,
                                         org.yajre.WorkingMemory mem)
                                  throws org.yajre.RetractionException
Propagate the retraction of a Tuple to the next TupleSink node in the chain.