KnowledgeBase
Class InferenceNode

java.lang.Object
  |
  +--KnowledgeBase.InferenceNode
All Implemented Interfaces:
java.lang.Comparable

public class InferenceNode
extends java.lang.Object
implements java.lang.Comparable

Defines an inference node in the knowledge base.

See the dissertation document and KnowledgeBaseParser.jj for complete details.

Version:
Created 18 July 2003
Author:
Dan Tappan
See Also:
KnowledgeBase

Field Summary
 java.util.ArrayList dependency_formal_parameters
           
 java.lang.String inference_name
           
 boolean is_attribute_inference_otherwise_relationship
           
 java.util.ArrayList parameters
           
 
Constructor Summary
InferenceNode(java.lang.String inference_name)
          Creates a new InferenceNode for an attribute as specified by the knowledge-base parser.
InferenceNode(java.lang.String inference_name, java.util.ArrayList parameters)
          Creates a new InferenceNode for a relationship as specified by the knowledge-base parser.
 
Method Summary
 int compareTo(java.lang.Object other_inference_node)
          Returns the comparison of two inference nodes based lexicographically on their inference name.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inference_name

public java.lang.String inference_name

is_attribute_inference_otherwise_relationship

public boolean is_attribute_inference_otherwise_relationship

parameters

public java.util.ArrayList parameters

dependency_formal_parameters

public java.util.ArrayList dependency_formal_parameters
Constructor Detail

InferenceNode

public InferenceNode(java.lang.String inference_name)
Creates a new InferenceNode for an attribute as specified by the knowledge-base parser.

See the dissertation document for details on how these parameters are defined and used.


InferenceNode

public InferenceNode(java.lang.String inference_name,
                     java.util.ArrayList parameters)
Creates a new InferenceNode for a relationship as specified by the knowledge-base parser.

See the dissertation document for details on how these parameters are defined and used.

Parameters:
parameters - - the relationship parameters
Method Detail

compareTo

public int compareTo(java.lang.Object other_inference_node)
Returns the comparison of two inference nodes based lexicographically on their inference name.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other_inference_node - - the inference node to compare
Returns:
the comparison result
See Also:
String.compareTo(java.lang.String)

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
the String representation
See Also:
Support.toPrettyString(java.lang.String)