KnowledgeBase
Class AttributeIntervalNode

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

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

Defines an attribute-interval 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
static double DEFAULT_ADJUSTMENT
           
 java.util.ArrayList dimension_properties
           
 double lower_bound_adjustment
           
 java.lang.String lower_bound_attribute_name
           
 double upper_bound_adjustment
           
 java.lang.String upper_bound_attribute_name
           
 
Constructor Summary
AttributeIntervalNode(java.lang.String lower_bound_attribute_name, double lower_bound_adjustment, java.lang.String upper_bound_attribute_name, double upper_bound_adjustment, java.util.ArrayList dimension_properties)
          Creates a new AttributeIntervalNode as specified by the knowledge-base parser.
AttributeIntervalNode(java.lang.String lower_bound_attribute_name, java.lang.String upper_bound_attribute_name, java.util.ArrayList dimension_properties)
          Creates a new AttributeIntervalNode as specified by the knowledge-base parser.
 
Method Summary
 int compareTo(java.lang.Object other_attribute_interval_node)
          Returns the comparison of two attribute-interval nodes based lexicographically on their lower-bound attribute.
 int getAttributeBoundCode(java.lang.String attribute_name)
          Returns whether an attribute name refers to the lower or upper bound of this interval.
 AttributeIntervalNode 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

lower_bound_attribute_name

public java.lang.String lower_bound_attribute_name

upper_bound_attribute_name

public java.lang.String upper_bound_attribute_name

DEFAULT_ADJUSTMENT

public static double DEFAULT_ADJUSTMENT

lower_bound_adjustment

public double lower_bound_adjustment

upper_bound_adjustment

public double upper_bound_adjustment

dimension_properties

public java.util.ArrayList dimension_properties
Constructor Detail

AttributeIntervalNode

public AttributeIntervalNode(java.lang.String lower_bound_attribute_name,
                             java.lang.String upper_bound_attribute_name,
                             java.util.ArrayList dimension_properties)
Creates a new AttributeIntervalNode as specified by the knowledge-base parser.

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

Parameters:
lower_bound_attribute_name - - the lower-bound attribute name
upper_bound_attribute_name - - the upper-bound attribute name
dimension_properties - - the properties associated with this range

AttributeIntervalNode

public AttributeIntervalNode(java.lang.String lower_bound_attribute_name,
                             double lower_bound_adjustment,
                             java.lang.String upper_bound_attribute_name,
                             double upper_bound_adjustment,
                             java.util.ArrayList dimension_properties)
Creates a new AttributeIntervalNode as specified by the knowledge-base parser.

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

Parameters:
lower_bound_attribute_name - - the lower-bound attribute name
lower_bound_adjustment - - the adjustment of the lower bound
upper_bound_attribute_name - - the upper-bound attribute name
upper_bound_adjustment - - the adjustment of the upper bound
dimension_properties - - the properties associated with this range
Method Detail

compareTo

public int compareTo(java.lang.Object other_attribute_interval_node)
Returns the comparison of two attribute-interval nodes based lexicographically on their lower-bound attribute.

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

getAttributeBoundCode

public int getAttributeBoundCode(java.lang.String attribute_name)
Returns whether an attribute name refers to the lower or upper bound of this interval.

Parameters:
attribute_name - - the attribute name
Returns:
CODE_LOWER_BOUND_SUGGESTED for suggested lower bound, CODE_UPPER_BOUND_SUGGESTED for suggested upper bound, or CODE_NONE if the attribute is not part of the interval
See Also:
PlausibilityInterval.getBoundFixedValue(int), PlausibilityInterval.CODE_LOWER_BOUND_SUGGESTED, PlausibilityInterval.CODE_UPPER_BOUND_SUGGESTED

getClone

public AttributeIntervalNode 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.toPrettyString(java.lang.String)