Package org.yamcs.xtce
Class DynamicIntegerValue
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
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
getSlope()
long
reverse
(long v) Reverse operation fortransform(long)
void
setIntercept
(long intercept) void
setSlope
(long slope) toString()
long
transform
(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
-