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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.yajre.reteoo.TupleSource
      extended byorg.yajre.reteoo.ParameterNode

public final class ParameterNode
extends TupleSource

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.


Field Summary
private  org.yajre.spi.Declaration declaration
           
 
Fields inherited from class org.yajre.reteoo.TupleSource
 
Constructor Summary
ParameterNode(ObjectTypeNode inputNode, org.yajre.spi.Declaration declaration)
           
 
Method Summary
protected  void assert(java.lang.Object obj, org.yajre.WorkingMemory mem)
           
 org.yajre.spi.Declaration getDeclaration()
          The fact object Declaration.
 java.util.Set getTupleDeclarations()
          Retrieve the Set of org.yajre.spi.Declarations in the propagated Tuples.
protected  void modify(java.lang.Object obj, org.yajre.WorkingMemory mem)
           
protected  void retract(org.yajre.WorkingMemory mem)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.yajre.reteoo.TupleSource
getTupleSink, propagateAssertion, propagateRetraction, setTupleSink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

declaration

private org.yajre.spi.Declaration declaration
Constructor Detail

ParameterNode

public ParameterNode(ObjectTypeNode inputNode,
                     org.yajre.spi.Declaration declaration)
Method Detail

getDeclaration

public final org.yajre.spi.Declaration getDeclaration()
The fact object Declaration.


getTupleDeclarations

public final java.util.Set getTupleDeclarations()
Description copied from class: TupleSource
Retrieve the Set of org.yajre.spi.Declarations in the propagated Tuples.

Specified by:
getTupleDeclarations in class TupleSource

assert

protected final void assert(java.lang.Object obj,
                            org.yajre.WorkingMemory mem)
                     throws org.yajre.AssertionException

retract

protected final void retract(org.yajre.WorkingMemory mem)
                      throws org.yajre.RetractionException

modify

protected final void modify(java.lang.Object obj,
                            org.yajre.WorkingMemory mem)
                     throws org.yajre.ModificationException

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()).