Class IntegerDataType

All Implemented Interfaces:
Serializable, DataType
Direct Known Subclasses:
IntegerArgumentType, IntegerParameterType

public abstract class IntegerDataType extends NumericDataType
Contains an integral value.
See Also:
  • Field Details

    • signed

      protected boolean signed
  • Constructor Details

  • Method Details

    • isSigned

      public boolean isSigned()
    • getSizeInBits

      public int getSizeInBits()
    • setInitialValue

      protected void setInitialValue(Object initialValue)
      Specified by:
      setInitialValue in class BaseDataType
    • 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:
    • getNumberFormat

      public NumberFormatType getNumberFormat()
    • convertType

      public Long convertType(Object value)
      In case the provided value is a String, it is parsed to a Long Base 10 (decimal) form 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
      Parameters:
      value - value to be converted, use boxed primitive values.
      Returns:
      The preferred java object representation
    • 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: