Package org.orekit.gnss
Enum Class PredefinedTimeSystem
- All Implemented Interfaces:
Serializable,Comparable<PredefinedTimeSystem>,Constable,TimeSystem
Enumerate for the time systems used in navigation files.
- Since:
- 11.0
- Author:
- Thomas Neidhart, Evan Ward, Thomas Paulet
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBeidou.GALILEO.GLONASS.GMT (should only be used in RUN BY / DATE entries).Global Positioning System.NavIC.Quasi-Zenith System.SBAS.International Atomic Time.Unknown (should only be used in RUN BY / DATE entries).Coordinated Universal Time. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the 3 letters key of the time system.Get the one letter code.getTimeScale(TimeScales timeScales) Get the time scale corresponding to time system.Get the two letters code.static PredefinedTimeSystemparseOneLetterCode(String code) Parse a string to get the time system.static PredefinedTimeSystemParse a string to get the time system.static PredefinedTimeSystemparseTwoLettersCode(String code) Parse a string to get the time system.static PredefinedTimeSystemReturns the enum constant of this class with the specified name.static PredefinedTimeSystem[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GPS
Global Positioning System. -
GLONASS
GLONASS. -
GALILEO
GALILEO. -
TAI
International Atomic Time. -
UTC
Coordinated Universal Time. -
QZSS
Quasi-Zenith System. -
BEIDOU
Beidou. -
NAVIC
NavIC. -
SBAS
SBAS.- Since:
- 12.0
-
GMT
GMT (should only be used in RUN BY / DATE entries).- Since:
- 12.0
-
UNKNOWN
Unknown (should only be used in RUN BY / DATE entries).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
Get the 3 letters key of the time system.- Specified by:
getKeyin interfaceTimeSystem- Returns:
- 3 letters key
-
getTwoLettersCode
Get the two letters code.- Specified by:
getTwoLettersCodein interfaceTimeSystem- Returns:
- two letters code (may be null for non-GNSS time systems)
-
getOneLetterCode
Get the one letter code.- Specified by:
getOneLetterCodein interfaceTimeSystem- Returns:
- one letter code (may be null for non-GNSS time systems)
-
getTimeScale
Get the time scale corresponding to time system.- Specified by:
getTimeScalein interfaceTimeSystem- Parameters:
timeScales- the set of time scales to use- Returns:
- the time scale corresponding to time system in the set of time scales
-
parseTimeSystem
Parse a string to get the time system.The string must be the time system.
- Parameters:
s- string to parse- Returns:
- the time system
- Throws:
OrekitIllegalArgumentException- if the string does not correspond to a time system key
-
parseTwoLettersCode
public static PredefinedTimeSystem parseTwoLettersCode(String code) throws OrekitIllegalArgumentException Parse a string to get the time system.The string must be the two letters code of the time system.
- Parameters:
code- string to parse- Returns:
- the time system
- Throws:
OrekitIllegalArgumentException- if the string does not correspond to a time system key
-
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
-