de.grogra.graph
Class IntTreeAttribute

java.lang.Object
  extended by de.grogra.graph.Attribute<java.lang.Integer>
      extended by de.grogra.graph.IntAttribute
          extended by de.grogra.graph.IntTreeAttribute
All Implemented Interfaces:
Described, KeyDescription, java.lang.Comparable

public abstract class IntTreeAttribute
extends IntAttribute


Field Summary
 
Fields inherited from class de.grogra.graph.Attribute
ATTRIBUTE_0, attrType, quantity
 
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
 
Constructor Summary
IntTreeAttribute()
           
IntTreeAttribute(Type type)
           
 
Method Summary
abstract  boolean dependsOn(Attribute[] b)
           
protected abstract  int derive(java.lang.Object object, boolean asNode, int parentValue, GraphState gs)
           
protected  int getDerived(java.lang.Object object, boolean asNode, GraphState gs)
           
protected abstract  int getInitialValue(GraphState gs)
           
protected  ObjectAttribute getParentAttribute(GraphState gs)
           
 int getParentValue(java.lang.Object object, boolean asNode, GraphState gs)
           
 boolean isDerived()
          Determines whether this is a derived attribute or not.
 
Methods inherited from class de.grogra.graph.IntAttribute
get, getMaxValue, getMinValue, set, setDerived, setInt
 
Methods inherited from class de.grogra.graph.Attribute
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isWritable, setAttributeState, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntTreeAttribute

public IntTreeAttribute()

IntTreeAttribute

public IntTreeAttribute(Type type)
Method Detail

dependsOn

public abstract boolean dependsOn(Attribute[] b)

derive

protected abstract int derive(java.lang.Object object,
                              boolean asNode,
                              int parentValue,
                              GraphState gs)

getDerived

protected int getDerived(java.lang.Object object,
                         boolean asNode,
                         GraphState gs)
Overrides:
getDerived in class IntAttribute

getInitialValue

protected abstract int getInitialValue(GraphState gs)

getParentAttribute

protected ObjectAttribute getParentAttribute(GraphState gs)

getParentValue

public int getParentValue(java.lang.Object object,
                          boolean asNode,
                          GraphState gs)

isDerived

public boolean isDerived()
Description copied from class: Attribute
Determines whether this is a derived attribute or not.

Overrides:
isDerived in class Attribute<java.lang.Integer>
Returns:
true iff this is a derived attribute