Class IntegerDataType

    • Field Detail

      • signed

        protected boolean signed
    • Method Detail

      • isSigned

        public boolean isSigned()
      • getSizeInBits

        public int getSizeInBits()
      • getValidRange

        public IntegerValidRange getValidRange()
        returns the range for the values of this type to be valid or null if there is no range set (meaning that all values are valid)
        Returns:
      • setInitialValue

        public void setInitialValue​(Long initialValue)
      • getInitialValue

        public Long getInitialValue()
        Description copied from interface: DataType
        Get the initial value if any
        Returns:
      • parseString

        public Long parseString​(String stringValue)
        Parses the string into a Long Base 10 (decimal) form is assumed unless:
        • if preceded by a 0b or 0B, value is in base two (binary form)
        • if preceded by a 0o or 0O, values is in base 8 (octal) form
        • if preceded by a 0x or 0X, value is in base 16 (hex) form.
        Underscores (_) are allowed in the string and ignored. Throws a NumberFormatException if the value cannot be parsed or does not fit within the specified number of bits
        Specified by:
        parseString in interface DataType
        Specified by:
        parseString in class BaseDataType
        Returns:
      • getValueType

        public Yamcs.Value.Type getValueType()
        Description copied from interface: DataType
        Return the expected Value type of an engineering value conforming to this XTCE data type
        Returns:
      • getTypeAsString

        public String getTypeAsString()
        Description copied from interface: DataType
        String which represents the type. This string will be presented to the users of the system.
        Returns: