Class AttributeDef

java.lang.Object
ca.spatial.tracks.builder.AttributeDef

public class AttributeDef extends Object
This class provides a labeled container for defining an attribute curve. An attribute curve can be specified by either a series of points, or an expression. This class only holds the definition. The AttributeVal class holds the calculated values for attribute curves.
  • Field Details

    • FROM

      public static final int FROM
      The default value for the 'from' parameter (0)
      See Also:
      Constant Field Values
    • TO

      public static final int TO
      The default value for the 'to' parameter (300)
      See Also:
      Constant Field Values
    • BY

      public static final int BY
      The default value for the 'by' parameter (5)
      See Also:
      Constant Field Values
  • Method Details

    • isOperable

      public boolean isOperable(AttributeResolver attributes, HashMap<String,​AttributeDef> attributeRefs, CurveMatchCache curveRefs, Track track, double future, String ftag, String mtag)
      This method is called from the parser getAttribute function. Indicates if this attribute contains an 'operable()' expression that can only be correctly evaluated after responses have been figured out.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCurve

      public Curve getCurve(AttributeResolver attributes, HashMap<String,​AttributeDef> attributeRefs, CurveMatchCache curveRefs, Track track, double future, String ftag, String mtag)
      Get the curve for this attribute If this is an expression based attribute then do the conversion into a curve based attribute. If it is a curve based attribute then it is fine just the way it is.