org.drools.reteoo
Interface TupleSink

All Superinterfaces:
Serializable
All Known Implementing Classes:
ConditionNode, JoinNodeInput, TerminalNode

interface TupleSink
extends Serializable

Receiver of propagated ReteTuple s from a TupleSource.

Author:
bob mcwhirter
See Also:
TupleSource

Method Summary
 void assertTuple(ReteTuple tuple, WorkingMemoryImpl workingMemory)
          Assert a new Tuple.
 void modifyTuples(FactHandle trigger, TupleSet newTuples, WorkingMemoryImpl workingMemory)
          Modify tuples.
 void retractTuples(TupleKey key, WorkingMemoryImpl workingMemory)
          Retract tuples.
 

Method Detail

assertTuple

public void assertTuple(ReteTuple tuple,
                        WorkingMemoryImpl 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(TupleKey key,
                          WorkingMemoryImpl 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(FactHandle trigger,
                         TupleSet newTuples,
                         WorkingMemoryImpl workingMemory)
                  throws FactException
Modify tuples.

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


Copyright © 2001-2004 The Codehaus. All Rights Reserved.