Class DataTypeProcessor


  • public class DataTypeProcessor
    extends Object
    • Constructor Detail

      • DataTypeProcessor

        public DataTypeProcessor()
    • 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 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)