Package org.yamcs.xtceproc
Class DataTypeProcessor
- java.lang.Object
-
- org.yamcs.xtceproc.DataTypeProcessor
-
public class DataTypeProcessor extends Object
-
-
Constructor Summary
Constructors Constructor Description DataTypeProcessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueconvertEngValueForType(DataType type, Value v)Converts a Value to suit the type engineering valuestatic ValuegetValueForType(DataType type, Object o)converts a (boxed) java value from the XTCE type to Yamcs Valuestatic intsignedSizeInBits(long v)static intunsignedSizeInBits(long v)
-
-
-
Method Detail
-
getValueForType
public static Value getValueForType(DataType type, Object o)
converts a (boxed) java value from the XTCE type to Yamcs Value- Parameters:
type-- Returns:
-
convertEngValueForType
public static Value convertEngValueForType(DataType type, Value v)
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)
-
-