KnowledgeBase
Class FieldNode

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

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

Defines a field 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.lang.String definition
           
 java.lang.String field_name
           
 Region region
           
 
Constructor Summary
FieldNode(java.lang.String field_name, java.lang.String definition)
          Creates a new FieldtNode as specified by the knowledge-base parser.
 
Method Summary
 int compareTo(java.lang.Object other_field_node)
          Returns the comparison of two field nodes based lexicographically on their field 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

field_name

public java.lang.String field_name

definition

public java.lang.String definition

region

public Region region
Constructor Detail

FieldNode

public FieldNode(java.lang.String field_name,
                 java.lang.String definition)
          throws java.lang.Exception
Creates a new FieldtNode as specified by the knowledge-base parser.

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

Parameters:
field_name - - the field name
definition - - the field definition
Throws:
java.lang.Exception - - if the region cannot be created
Method Detail

compareTo

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

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