java.lang.Object
org.yamcs.mdb.DataEncodingUtils
Utility methods for DataEncodings:
- create raw values according to the data encoding used
- return the type of the raw value according to the data encoding used
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValuegetRawFloatValue(org.yamcs.xtce.FloatDataEncoding fde, double value) static ValuegetRawFloatValue(org.yamcs.xtce.FloatDataEncoding fde, Object value) static ValuegetRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, long longValue) converts longValue to a raw Value suitable for data encoding.static ValuegetRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, Object value) static ValuegetRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, Value value) static ValuerawRawStringValue(Value engValue) static org.yamcs.protobuf.Yamcs.Value.TyperawValueType(org.yamcs.xtce.DataEncoding de)
-
Constructor Details
-
DataEncodingUtils
public DataEncodingUtils()
-
-
Method Details
-
getRawIntegerValue
converts longValue to a raw Value suitable for data encoding. It truncates (remove the most significants bits) the value to fit. -
getRawIntegerValue
-
getRawIntegerValue
-
getRawFloatValue
-
getRawFloatValue
-
rawRawStringValue
-
rawValueType
public static org.yamcs.protobuf.Yamcs.Value.Type rawValueType(org.yamcs.xtce.DataEncoding de)
-