Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.yajre.reteoo
Class ParameterTuple  view ParameterTuple download ParameterTuple.java

java.lang.Object
  extended byorg.yajre.reteoo.ReteTuple
      extended byorg.yajre.reteoo.ParameterTuple
All Implemented Interfaces:
org.yajre.spi.Tuple

public final class ParameterTuple
extends ReteTuple

Implementation of ReteTuple with a single column, based upon a root fact object parameter of a rule.


Field Summary
private  org.yajre.spi.Declaration declaration
          The parameter Declaration.
private  java.lang.Object object
          The object bound to the parameter.
 
Fields inherited from class org.yajre.reteoo.ReteTuple
 
Constructor Summary
ParameterTuple(org.yajre.spi.Declaration declaration, java.lang.Object object)
           
 
Method Summary
 java.lang.Object get(org.yajre.spi.Declaration decl)
          Retrieve the value bound to a particular Declaration.
 java.util.Set getDeclarations()
          Retrieve the Collection of all Declarations active in this tuple.
 org.yajre.spi.Declaration getParameterDeclaration()
           
 java.lang.Object getParameterObject()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.yajre.reteoo.ReteTuple
addAllRootFactObjects, addRootFactObject, contains, containsRootFactObject, equals, getRootFactObjects, hashCode, put, putAll
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

declaration

private org.yajre.spi.Declaration declaration
The parameter Declaration.


object

private java.lang.Object object
The object bound to the parameter.

Constructor Detail

ParameterTuple

public ParameterTuple(org.yajre.spi.Declaration declaration,
                      java.lang.Object object)
Method Detail

getParameterObject

public java.lang.Object getParameterObject()

getParameterDeclaration

public org.yajre.spi.Declaration getParameterDeclaration()

get

public java.lang.Object get(org.yajre.spi.Declaration decl)
Description copied from interface: org.yajre.spi.Tuple
Retrieve the value bound to a particular Declaration.

Specified by:
get in interface org.yajre.spi.Tuple
Overrides:
get in class ReteTuple

getDeclarations

public java.util.Set getDeclarations()
Description copied from interface: org.yajre.spi.Tuple
Retrieve the Collection of all Declarations active in this tuple.

Specified by:
getDeclarations in interface org.yajre.spi.Tuple
Overrides:
getDeclarations in class ReteTuple

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class ReteTuple