Package ca.spatial.tracks.builder
Class AttributeDef
java.lang.Object
ca.spatial.tracks.builder.AttributeDef
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCurve(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.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.toString()
-
Field Details
-
FROM
public static final int FROMThe default value for the 'from' parameter (0)- See Also:
- Constant Field Values
-
TO
public static final int TOThe default value for the 'to' parameter (300)- See Also:
- Constant Field Values
-
BY
public static final int BYThe 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
-
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.
-