java.lang.Object
org.yamcs.mdb.DataTypeProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueconvertEngValueForType(org.yamcs.xtce.DataType type, Value v) Converts a Value to suit the type engineering valuestatic ValuegetValueForType(org.yamcs.xtce.DataType type, Object o) converts a (boxed) java value from the XTCE type to Yamcs Valuestatic final intsignedSizeInBits(long v) static final intunsignedSizeInBits(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
IllegalArgumentExceptionif 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)
-