org.drools.reteoo
Class JoinNodeInput

java.lang.Object
  extended by org.drools.reteoo.JoinNodeInput
All Implemented Interfaces:
Serializable, TupleSink

 class JoinNodeInput
extends Object
implements TupleSink

Input TupleSinkImpl for a JoinNodeImpl.

Author:
bob mcwhirter
See Also:
JoinNode

Field Summary
(package private) static int LEFT
          Left-side input.
(package private) static int RIGHT
          Right-side input.
 
Constructor Summary
JoinNodeInput(JoinNode joinNode, int side)
          Construct.
 
Method Summary
 void assertTuple(ReteTuple tuple, WorkingMemoryImpl workingMemory)
          Assert a new Tuple.
(package private)  JoinNode getJoinNode()
          Retrieve the destination join node.
(package private)  int getSide()
          Retrieve the side marker.
 void retractTuples(TupleKey key, WorkingMemoryImpl workingMemory)
          Retract tuples.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEFT

static final int LEFT
Left-side input.

See Also:
Constant Field Values

RIGHT

static final int RIGHT
Right-side input.

See Also:
Constant Field Values
Constructor Detail

JoinNodeInput

JoinNodeInput(JoinNode joinNode,
              int side)
Construct.

Parameters:
joinNode - Join node.
side - Side marker.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSide

int getSide()
Retrieve the side marker.

Returns:
The side marker.

getJoinNode

JoinNode getJoinNode()
Retrieve the destination join node.

Returns:
The join node.

assertTuple

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

Specified by:
assertTuple in interface TupleSink
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.

Specified by:
retractTuples in interface TupleSink
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.