KnowledgeBase
Class PropertyNode

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

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

Defines a property 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 property_name
           
 PlausibilityInterval range
           
 java.lang.String slot_value
           
 int type
           
 int TYPE_RANGE
           
 int TYPE_SLOT
           
 java.lang.String UNDEFINED
           
 
Constructor Summary
PropertyNode(java.lang.String property_name, PlausibilityInterval plausibility_interval)
          Creates a new PropertyNode for a plausibility interval as specified by the knowledge-base parser.
PropertyNode(java.lang.String property_name, java.lang.String slot_value)
          Creates a new PropertyNode for a single slot as specified by the knowledge-base parser.
 
Method Summary
 int compareTo(java.lang.Object other_property_node)
          Returns the comparison of two property nodes based lexicographically on their property name.
 PropertyNode getClone()
          Returns a clone of this object.
 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

TYPE_SLOT

public final int TYPE_SLOT
See Also:
Constant Field Values

TYPE_RANGE

public final int TYPE_RANGE
See Also:
Constant Field Values

type

public int type

property_name

public java.lang.String property_name

UNDEFINED

public final java.lang.String UNDEFINED
See Also:
Constant Field Values

range

public PlausibilityInterval range

slot_value

public java.lang.String slot_value
Constructor Detail

PropertyNode

public PropertyNode(java.lang.String property_name,
                    java.lang.String slot_value)
Creates a new PropertyNode for a single slot as specified by the knowledge-base parser.

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

Parameters:
property_name - - the optionally prefixed property name
slot_value - - the simple property value

PropertyNode

public PropertyNode(java.lang.String property_name,
                    PlausibilityInterval plausibility_interval)
Creates a new PropertyNode for a plausibility interval as specified by the knowledge-base parser.

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

Parameters:
property_name - - the property name
plausibility_interval - - the plausibility interval
Method Detail

compareTo

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

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

getClone

public PropertyNode getClone()
Returns a clone of this object.

Returns:
the clone

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