Package org.yamcs.mdb
Class DataTypeProcessor
java.lang.Object
org.yamcs.mdb.DataTypeProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Value
convertEngValueForType
(DataType type, Value v) Converts a Value to suit the type engineering valuestatic Value
getValueForType
(DataType type, Object o) converts a (boxed) java value from the XTCE type to Yamcs Valuestatic final int
signedSizeInBits
(long v) static final int
unsignedSizeInBits
(long v)
-
Constructor Details
-
DataTypeProcessor
public DataTypeProcessor()
-
-
Method Details
-
getValueForType
converts a (boxed) java value from the XTCE type to Yamcs Value- Parameters:
type
-- Returns:
-
convertEngValueForType
Converts a Value to suit the type engineering valueThrows
IllegalArgumentException
if cannot convert.- Parameters:
type
- - target typev
- - value to be converted- Returns:
-
unsignedSizeInBits
public static final int unsignedSizeInBits(long v) -
signedSizeInBits
public static final int signedSizeInBits(long v)
-