Package org.yamcs.mdb

Class DataEncodingUtils

java.lang.Object
org.yamcs.mdb.DataEncodingUtils

public class DataEncodingUtils extends Object
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 Details

    • DataEncodingUtils

      public DataEncodingUtils()
  • Method Details

    • getRawIntegerValue

      public static Value getRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, long longValue)
      converts longValue to a raw Value suitable for data encoding. It truncates (remove the most significants bits) the value to fit.
    • getRawIntegerValue

      public static Value getRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, Object value)
    • getRawIntegerValue

      public static Value getRawIntegerValue(org.yamcs.xtce.IntegerDataEncoding ide, Value value)
    • getRawFloatValue

      public static Value getRawFloatValue(org.yamcs.xtce.FloatDataEncoding fde, double value)
    • getRawFloatValue

      public static Value getRawFloatValue(org.yamcs.xtce.FloatDataEncoding fde, Object value)
    • rawRawStringValue

      public static Value rawRawStringValue(Value engValue)
    • rawValueType

      public static org.yamcs.protobuf.Yamcs.Value.Type rawValueType(org.yamcs.xtce.DataEncoding de)