Package org.yamcs.xtce
Class DynamicIntegerValue
- java.lang.Object
-
- org.yamcs.xtce.IntegerValue
-
- org.yamcs.xtce.DynamicIntegerValue
-
- All Implemented Interfaces:
Serializable
public class DynamicIntegerValue extends IntegerValue
Uses a parameter instance to obtain the value.Note that this explicitly supports only integer values (whereas XTCE supports also doubles)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicIntegerValue(ParameterOrArgumentRef ir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterOrArgumentRefgetDynamicInstanceRef()longgetIntercept()ParameterInstanceRefgetParameterInstanceRef()longgetSlope()longreverse(long v)Reverse operation fortransform(long)voidsetIntercept(long intercept)voidsetSlope(long slope)StringtoString()longtransform(long v)Transform the value with the intercept and slope.
-
-
-
Constructor Detail
-
DynamicIntegerValue
public DynamicIntegerValue(ParameterOrArgumentRef ir)
-
-
Method Detail
-
getParameterInstanceRef
public ParameterInstanceRef getParameterInstanceRef()
-
getDynamicInstanceRef
public ParameterOrArgumentRef 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
-
-