Module graph

Class FloatAttribute

java.lang.Object
de.grogra.graph.Attribute<Float>
de.grogra.graph.FloatAttribute
All Implemented Interfaces:
Described, KeyDescription, Comparable
Direct Known Subclasses:
FloatTreeAttribute

public class FloatAttribute extends Attribute<Float>
  • Constructor Details

    • FloatAttribute

      public FloatAttribute(Type type, Quantity quantity)
    • FloatAttribute

      public FloatAttribute(Quantity quantity)
  • Method Details

    • get

      public final Float 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<Float>
      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 Float 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<Float>
      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 float getDerived(Object object, boolean asNode, GraphState gs)
    • setFloat

      public float setFloat(Object object, boolean asNode, float value, GraphState gs)
    • setDerived

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

      public float getMinValue()
    • getMaxValue

      public float getMaxValue()