Module graph

Class DoubleTreeAttribute

All Implemented Interfaces:
Described, KeyDescription, Comparable

public abstract class DoubleTreeAttribute extends DoubleAttribute
  • Constructor Details

    • DoubleTreeAttribute

      public DoubleTreeAttribute(Type type, Quantity quantity)
    • DoubleTreeAttribute

      public DoubleTreeAttribute(Quantity quantity)
  • Method Details

    • getParentAttribute

      protected ObjectAttribute getParentAttribute(GraphState gs)
    • getDerived

      protected double getDerived(Object object, boolean asNode, GraphState gs)
      Overrides:
      getDerived in class DoubleAttribute
    • derive

      protected abstract double derive(Object object, boolean asNode, double parentValue, GraphState gs)
    • getInitialValue

      protected abstract double getInitialValue(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<Double>
      Returns:
      true iff this is a derived attribute
    • dependsOn

      public abstract boolean dependsOn(Attribute[] b)
    • getParentValue

      public double getParentValue(Object object, boolean asNode, GraphState gs)