Class SatInSystem


  • public class SatInSystem
    extends Object
    Container for satellite system and PRN.
    Since:
    12.0
    Author:
    Luc Maisonobe
    • Field Detail

      • ANY_PRN

        public static final int ANY_PRN
        Value representing all PRNs in the system.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SatInSystem

        public SatInSystem​(SatelliteSystem system,
                           int prn)
        Simple constructor.
        Parameters:
        system - satellite system
        prn - Pseudo Random Number or ANY_PRN to represent any satellite in the system
      • SatInSystem

        public SatInSystem​(String rinexCode)
        Simple constructor.

        The RINEX 3 characters code starts with a letter representing the satellite system key followed by a 2 digits integer which represents either

        if only the letter is present, then prn is set to ANY_PRN

        Parameters:
        rinexCode - RINEX 3 characters code
        Since:
        13.0
    • Method Detail

      • getSystem

        public SatelliteSystem getSystem()
        Get the system this satellite belongs to.
        Returns:
        system this satellite belongs to
      • getPRN

        public int getPRN()
        Get the Pseudo Random Number of the satellite.
        Returns:
        Pseudo Random Number of the satellite, or ANY_PRN to represent any PRN in the system
      • getTwoDigitsRinexPRN

        public int getTwoDigitsRinexPRN()
        Get a 2-digits Pseudo Random Number for RINEX files.
        Returns:
        2-digits Pseudo Random Number for RINEX files
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object