org.drools.reteoo.impl
Interface TupleSinkImpl

All Superinterfaces:
TupleSink
All Known Implementing Classes:
ConditionNodeImpl, ExtractionNodeImpl, TerminalNodeImpl

public interface TupleSinkImpl
extends TupleSink

Receiver of propagated ReteTuples from a TupleSource.

Author:
bob mcwhirter
See Also:
TupleSink, TupleSourceImpl, ReteTuple

Method Summary
 void assertTuple(ReteTuple tuple, WorkingMemory workingMemory)
          Assert a new Tuple.
 void modifyTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, WorkingMemory workingMemory)
          Modify tuples.
 void retractTuples(org.drools.reteoo.impl.TupleKey key, WorkingMemory workingMemory)
          Retract tuples.
 

Method Detail

assertTuple

public void assertTuple(ReteTuple tuple,
                        WorkingMemory workingMemory)
                 throws AssertionException
Assert a new Tuple.

Parameters:
tuple - The Tuple being asserted.
workingMemory - The working memory seesion.
Throws:
AssertionException - If an error occurs while asserting.

retractTuples

public void retractTuples(org.drools.reteoo.impl.TupleKey key,
                          WorkingMemory workingMemory)
                   throws RetractionException
Retract tuples.

Parameters:
key - The tuple key.
workingMemory - The working memory seesion.
Throws:
RetractionException - If an error occurs while retracting.

modifyTuples

public void modifyTuples(java.lang.Object trigger,
                         org.drools.reteoo.impl.TupleSet newTuples,
                         WorkingMemory workingMemory)
                  throws FactException
Modify tuples.

Parameters:
trigger - The root fact object.
newTuples - Modification replacement tuples.
workingMemory - The working memory session.
Throws:
FactException - If an error occurs while modifying.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.