Class Node

java.lang.Object
  |
  +--Node
Direct Known Subclasses:
Conjunction, ObjectiveCell, Task

public abstract class Node
extends java.lang.Object

Node.java Created: Tue Jun 6 11:24:27 2000


Field Summary
(package private)  AttributeCell ac
           
(package private) static java.lang.String em
           
(package private) static java.lang.String loc
           
(package private)  PEComponentData peData
           
 
Constructor Summary
Node()
           
 
Method Summary
 boolean checkAttributes(AttributeCell standard)
          Compare this node's AttributeCell to a standard provided; if min and max of this node's cell are within the bounds specified by the standard, return true.
 void convertAttributes()
           
 AttributeCell getAttributeCell()
           
 java.lang.String getAttributeFeatureAverage(java.lang.String attName)
           
 java.util.Set getAttributeFeatureNames(java.lang.String attName)
           
 java.util.Set getAttributeNames()
           
 java.lang.String getCost(java.lang.String outcomeName)
           
 java.lang.String getDuration(java.lang.String outcomeName)
           
 java.util.Enumeration getNodeChildren()
           
 java.lang.String getQuality(java.lang.String outcomeName)
           
private  Attribute makeAttribute(java.lang.String name, java.lang.String[] featureValuePairs)
          Creates a new Attribute AND stores it in Node's AttributeCell.
abstract  void propagateAttributes()
          When adding a Node to a Plan, use this function to propagate the Node's attributes upward, modifying attribute features for successive parents until the root is updated.
 void setCost(java.lang.String outcomeName, java.lang.String cost)
           
 void setDuration(java.lang.String outcomeName, java.lang.String duration)
           
 void setQuality(java.lang.String outcomeName, java.lang.String quality)
           
 void updateAttributeFeature(java.lang.String name, java.lang.String fname, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ac

AttributeCell ac

em

static java.lang.String em

loc

static java.lang.String loc

peData

PEComponentData peData
Constructor Detail

Node

public Node()
Method Detail

checkAttributes

public boolean checkAttributes(AttributeCell standard)
Compare this node's AttributeCell to a standard provided; if min and max of this node's cell are within the bounds specified by the standard, return true. Else return false.

propagateAttributes

public abstract void propagateAttributes()
When adding a Node to a Plan, use this function to propagate the Node's attributes upward, modifying attribute features for successive parents until the root is updated. See definition in Task, Action, Conjunction.

makeAttribute

private Attribute makeAttribute(java.lang.String name,
                                java.lang.String[] featureValuePairs)
Creates a new Attribute AND stores it in Node's AttributeCell.

updateAttributeFeature

public void updateAttributeFeature(java.lang.String name,
                                   java.lang.String fname,
                                   java.lang.String value)

getAttributeNames

public java.util.Set getAttributeNames()

getAttributeFeatureNames

public java.util.Set getAttributeFeatureNames(java.lang.String attName)

getAttributeCell

public AttributeCell getAttributeCell()

getNodeChildren

public java.util.Enumeration getNodeChildren()

getAttributeFeatureAverage

public java.lang.String getAttributeFeatureAverage(java.lang.String attName)

convertAttributes

public void convertAttributes()

getCost

public java.lang.String getCost(java.lang.String outcomeName)

setCost

public void setCost(java.lang.String outcomeName,
                    java.lang.String cost)

getQuality

public java.lang.String getQuality(java.lang.String outcomeName)

setQuality

public void setQuality(java.lang.String outcomeName,
                       java.lang.String quality)

getDuration

public java.lang.String getDuration(java.lang.String outcomeName)

setDuration

public void setDuration(java.lang.String outcomeName,
                        java.lang.String duration)