Package org.yamcs.mdb

Class DataTypeProcessor

java.lang.Object
org.yamcs.mdb.DataTypeProcessor

public class DataTypeProcessor extends Object
  • Constructor Details

    • DataTypeProcessor

      public DataTypeProcessor()
  • Method Details

    • 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 value

      Throws IllegalArgumentException if cannot convert.

      Parameters:
      type - - target type
      v - - value to be converted
      Returns:
    • unsignedSizeInBits

      public static final int unsignedSizeInBits(long v)
    • signedSizeInBits

      public static final int signedSizeInBits(long v)