java.lang.Object
org.yamcs.xtce.IntegerValue
org.yamcs.xtce.DynamicIntegerValue
- All Implemented Interfaces:
Serializable
Uses a parameter instance to obtain the value.
Note that this explicitly supports only integer values (whereas XTCE supports also doubles)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonggetSlope()longreverse(long v) Reverse operation fortransform(long)voidsetIntercept(long intercept) voidsetSlope(long slope) toString()longtransform(long v) Transform the value with the intercept and slope.
-
Constructor Details
-
DynamicIntegerValue
-
-
Method Details
-
getParameterInstanceRef
-
getDynamicInstanceRef
-
getIntercept
public long getIntercept() -
setIntercept
public void setIntercept(long intercept) -
getSlope
public long getSlope() -
setSlope
public void setSlope(long slope) -
transform
public long transform(long v) Transform the value with the intercept and slope.- Throws:
ArithmeticException- if the result overflows a long
-
reverse
public long reverse(long v) Reverse operation fortransform(long)- Throws:
ArithmeticException- if the result overflows a long
-
toString
-