Enum PredefinedTimeSystem

    • Method Detail

      • values

        public static PredefinedTimeSystem[] 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 (PredefinedTimeSystem c : PredefinedTimeSystem.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PredefinedTimeSystem 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
      • getKey

        public String getKey()
        Get the 3 letters key of the time system.
        Specified by:
        getKey in interface TimeSystem
        Returns:
        3 letters key
      • getTwoLettersCode

        public String getTwoLettersCode()
        Get the two letters code.
        Specified by:
        getTwoLettersCode in interface TimeSystem
        Returns:
        two letters code (may be null for non-GNSS time systems)
      • getOneLetterCode

        public String getOneLetterCode()
        Get the one letter code.
        Specified by:
        getOneLetterCode in interface TimeSystem
        Returns:
        one letter code (may be null for non-GNSS time systems)
      • getTimeScale

        public TimeScale getTimeScale​(TimeScales timeScales)
        Get the time scale corresponding to time system.
        Specified by:
        getTimeScale in interface TimeSystem
        Parameters:
        timeScales - the set of time scales to use
        Returns:
        the time scale corresponding to time system in the set of time scales
      • parseOneLetterCode

        public static PredefinedTimeSystem parseOneLetterCode​(String code)
                                                       throws OrekitIllegalArgumentException
        Parse a string to get the time system.

        The string must be the one letters code of the time system. The one letter code is the RINEX GNSS system flag.

        Parameters:
        code - string to parse
        Returns:
        the time system
        Throws:
        OrekitIllegalArgumentException - if the string does not correspond to a time system key