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 retractTuples(TupleKey key, WorkingMemoryImpl workingMemory)
          Retract tuples.
 

Method Detail

assertTuple

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

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.


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