org.drools.reteoo.impl
Class ParameterNodeImpl

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

public class ParameterNodeImpl
extends TupleSourceImpl
implements ParameterNode

Receives Objects from an ObjectTypeNode, and creates a ReteTuple, passing the result to the following node.

The ParameterNode is the first node that works in terms of Tuples. An instance of ParameterNode exists for each root fact object parameter of each rule.

Author:
bob mcwhirter
See Also:
ObjectTypeNodeImpl, TupleSink

Constructor Summary
ParameterNodeImpl(ObjectTypeNodeImpl inputNode, Declaration declaration)
          Construct.
 
Method Summary
 Declaration getDeclaration()
          Retrieve the root fact object Declaration.
 java.util.Set getTupleDeclarations()
          Retrieve the Set of Declarations in the propagated Tuples.
 java.lang.String toString()
          Produce a debug string.
 
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, wait, wait, wait
 
Methods inherited from interface org.drools.reteoo.TupleSource
getTupleSink
 

Constructor Detail

ParameterNodeImpl

public ParameterNodeImpl(ObjectTypeNodeImpl inputNode,
                         Declaration declaration)
Construct.
Parameters:
inputNode - The ObjectTypeNode input to this.
declaration - The root fact object Declaration.
Method Detail

getDeclaration

public Declaration getDeclaration()
Retrieve the root fact object Declaration.
Specified by:
getDeclaration in interface ParameterNode
Returns:
The Declaration.

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.

toString

public java.lang.String toString()
Produce a debug string.
Overrides:
toString in class java.lang.Object
Returns:
The debug string.


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