KnowledgeBase
Class RelationNode

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

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

Defines a relation 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 constraints
           
 DOFAdjustmentNode dof_adjustment_node
           
 java.util.ArrayList early_dependencies
           
 java.util.ArrayList inferences
           
 java.lang.String model_name
           
 java.lang.String relation_name
           
 
Constructor Summary
RelationNode(java.lang.String relation_name, java.lang.String model_name, java.util.ArrayList constraints, java.util.ArrayList early_dependencies, java.util.ArrayList inferences, DOFAdjustmentNode dof_adjustment_node)
          Creates a new RelationNode as specified by the knowledge-base parser.
 
Method Summary
 int compareTo(java.lang.Object other_relation_node)
          Returns the comparison of two relation nodes based lexicographically on their relation 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

relation_name

public java.lang.String relation_name

model_name

public java.lang.String model_name

constraints

public java.util.ArrayList constraints

early_dependencies

public java.util.ArrayList early_dependencies

inferences

public java.util.ArrayList inferences

dof_adjustment_node

public DOFAdjustmentNode dof_adjustment_node
Constructor Detail

RelationNode

public RelationNode(java.lang.String relation_name,
                    java.lang.String model_name,
                    java.util.ArrayList constraints,
                    java.util.ArrayList early_dependencies,
                    java.util.ArrayList inferences,
                    DOFAdjustmentNode dof_adjustment_node)
Creates a new RelationNode as specified by the knowledge-base parser.

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

Parameters:
relation_name - - the relation name
model_name - - the model name, or null for none
constraints - - the constraints associated with this relation
early_dependencies - - the early dependencies associated with this relation
inferences - - the inferences associated with this relation
dof_adjustment_node - - any degree-of-freedom adjustment
Method Detail

compareTo

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

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other_relation_node - - the relation 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)