org.drools.reteoo.impl
Class ReteTuple

java.lang.Object
  |
  +--org.drools.reteoo.impl.ReteTuple
All Implemented Interfaces:
Tuple

public class ReteTuple
extends java.lang.Object
implements Tuple

Base Rete-OO Tuple implementation.

Author:
bob mcwhirter
See Also:
Tuple

Constructor Summary
ReteTuple()
          Construct.
 
Method Summary
 java.lang.Object get(Declaration declaration)
          Retrieve the value of a particular declaration column.
 java.util.Set getDeclarations()
          Retrieve all declarations participating in this tuple.
 void putAll(ReteTuple that)
          Add all columns from another tuple.
 void putKeyColumn(Declaration declaration, java.lang.Object value)
          Set a key column's value.
 void putOtherColumn(Declaration declaration, java.lang.Object value)
          Set an other column's value.
 java.lang.String toString()
          Produce a debug string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReteTuple

public ReteTuple()
Construct.

Method Detail

putKeyColumn

public void putKeyColumn(Declaration declaration,
                         java.lang.Object value)
Set a key column's value.

Parameters:
declaration - The column declaration.
value - The value.

putAll

public void putAll(ReteTuple that)
Add all columns from another tuple.

Parameters:
that - The column source tuple.

putOtherColumn

public void putOtherColumn(Declaration declaration,
                           java.lang.Object value)
Set an other column's value.

Parameters:
declaration - The column declaration.
value - The value.

get

public java.lang.Object get(Declaration declaration)
Retrieve the value of a particular declaration column.

Specified by:
get in interface Tuple
Parameters:
declaration - The declaration.
Returns:
The value.

getDeclarations

public java.util.Set getDeclarations()
Retrieve all declarations participating in this tuple.

Specified by:
getDeclarations in interface Tuple
Returns:
Set of all declarations.

toString

public java.lang.String toString()
Produce a debug string.

Overrides:
toString in class java.lang.Object
Returns:
The debug string.


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