org.drools.reteoo.impl
Class JoinNodeImpl

java.lang.Object
  |
  +--org.drools.reteoo.impl.TupleSourceImpl
        |
        +--org.drools.reteoo.impl.JoinNodeImpl
All Implemented Interfaces:
JoinNode, TupleSource

public class JoinNodeImpl
extends TupleSourceImpl
implements JoinNode

A two-input Rete-OO join node.

Author:
bob mcwhirter
See Also:
TupleSource, TupleSink

Constructor Summary
JoinNodeImpl(TupleSourceImpl leftInput, TupleSourceImpl rightInput)
          Construct.
 
Method Summary
 java.util.Set getCommonDeclarations()
          Retrieve the set of common Declarations across the two input TupleSources.
 TupleSource getLeftInput()
          Retrieve the left input TupleSource.
 TupleSource getRightInput()
          Retrieve the right input TupleSource.
 java.util.Set getTupleDeclarations()
          Retrieve the Set of Declarations.
 void retractTuples(org.drools.reteoo.impl.TupleKey key, WorkingMemory workingMemory)
          Retract tuples.
 
Methods inherited from class org.drools.reteoo.impl.TupleSourceImpl
getTupleSink, propagateAssertTuple, propagateModifyTuples, propagateRetractTuples, setTupleSink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.reteoo.TupleSource
getTupleSink
 

Constructor Detail

JoinNodeImpl

public JoinNodeImpl(TupleSourceImpl leftInput,
                    TupleSourceImpl rightInput)
Construct.
Parameters:
leftInput - The left input TupleSource.
rightInput - The right input TupleSource.
Method Detail

getCommonDeclarations

public java.util.Set getCommonDeclarations()
Retrieve the set of common Declarations across the two input TupleSources.
Specified by:
getCommonDeclarations in interface JoinNode
Returns:
The Set of common Declarations.

getLeftInput

public TupleSource getLeftInput()
Retrieve the left input TupleSource.
Specified by:
getLeftInput in interface JoinNode
Returns:
The left input TupleSource.

getRightInput

public TupleSource getRightInput()
Retrieve the right input TupleSource.
Specified by:
getRightInput in interface JoinNode
Returns:
The right input TupleSource.

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.

getTupleDeclarations

public java.util.Set getTupleDeclarations()
Retrieve the Set of Declarations. in the propagated Tuples.
Specified by:
getTupleDeclarations in interface TupleSource
Returns:
The Set of Declarations in progated Tuples.
See Also:
Declaration


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