Module graph

Class DoubleAttribute

java.lang.Object
de.grogra.graph.Attribute<Double>
de.grogra.graph.DoubleAttribute
All Implemented Interfaces:
Described, KeyDescription, Comparable
Direct Known Subclasses:
DoubleTreeAttribute

public class DoubleAttribute extends Attribute<Double>
  • Constructor Details

    • DoubleAttribute

      public DoubleAttribute(Type type, Quantity quantity)
    • DoubleAttribute

      public DoubleAttribute(Quantity quantity)
  • Method Details

    • get

      public final Double get(Object o, boolean asNode, GraphState gs)
      Description copied from class: Attribute
      Returns the value of this attribute for the given object in the given graph state. If necessary, the value is wrapped in one of the standard wrapper classes.
      Specified by:
      get in class Attribute<Double>
      Parameters:
      o - the object
      asNode - true if object is a node, false if object is an edge
      gs - the graph state context
      Returns:
      the value of this attribute for the given object
    • set

      public final Double set(Object o, boolean asNode, Object value, GraphState gs)
      Description copied from class: Attribute
      Sets the value of this attribute for the given object to the given value
      Specified by:
      set in class Attribute<Double>
      Parameters:
      o - the object
      asNode - true if object is a node, false if object is an edge
      value - the new value of the attribute for the object
      gs - the graph state context
    • getDerived

      protected double getDerived(Object object, boolean asNode, GraphState gs)
    • setDouble

      public double setDouble(Object object, boolean asNode, double value, GraphState gs)
    • setDerived

      protected double setDerived(Object object, boolean asNode, double value, GraphState gs)
    • getMinValue

      public double getMinValue()
    • getMaxValue

      public double getMaxValue()