Enum IgsSsrMessageType

    • Method Detail

      • values

        public static IgsSsrMessageType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IgsSsrMessageType c : IgsSsrMessageType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IgsSsrMessageType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getPattern

        public Pattern getPattern()
        Get the message number.
        Returns:
        message number
      • getMessageType

        public static IgsSsrMessageType getMessageType​(String number)
        Get the message type corresponding to a message number.
        Parameters:
        number - message number
        Returns:
        the message type corresponding to the message number
      • messageNumberToSatelliteSystem

        public static SatelliteSystem messageNumberToSatelliteSystem​(int subTypeMessage)
        Find the satellite system corresponding to the sub-type message number.

        See Table 5 of reference

        Parameters:
        subTypeMessage - message umber
        Returns:
        the corresponding satellite system
      • getSatelliteId

        public static int getSatelliteId​(SatelliteSystem system,
                                         int id)
        Transform the satellite ID parsed from the IGS SSR message to the real ID.
        Parameters:
        system - the satellite system of the parsed message
        id - the parsed satellite ID
        Returns:
        the real satellite ID