Enum TimeSystem
- java.lang.Object
-
- java.lang.Enum<TimeSystem>
-
- org.orekit.files.ccsds.definitions.TimeSystem
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeSystem>
public enum TimeSystem extends Enum<TimeSystem>
The set of time systems defined in CCSDS standards (ADM, ODM, NDM).- Author:
- Evan Ward
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GMST
Greenwich Mean Sidereal Time.GPS
Global Positioning System.MET
Mission Elapsed Time.MRT
Mission Relative Time.SCLK
Spacecraft Clock.TAI
International Atomic Time.TCB
Barycentric Coordinate Time.TCG
Geocentric Coordinate Time.TDB
Barycentric Dynamical Time.TT
Terrestrial Time.UT1
Universal Time.UTC
Universal Coordinated Time.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TimeConverter
getConverter(ContextBinding context)
Get associatedTimeConverter
.static TimeSystem
parse(String value)
Parse a value from a key=value entry.static TimeSystem
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeSystem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GMST
public static final TimeSystem GMST
Greenwich Mean Sidereal Time.
-
GPS
public static final TimeSystem GPS
Global Positioning System.
-
MET
public static final TimeSystem MET
Mission Elapsed Time.
-
MRT
public static final TimeSystem MRT
Mission Relative Time.
-
SCLK
public static final TimeSystem SCLK
Spacecraft Clock.
-
TAI
public static final TimeSystem TAI
International Atomic Time.
-
TCB
public static final TimeSystem TCB
Barycentric Coordinate Time.
-
TDB
public static final TimeSystem TDB
Barycentric Dynamical Time.
-
TCG
public static final TimeSystem TCG
Geocentric Coordinate Time.
-
TT
public static final TimeSystem TT
Terrestrial Time.
-
UT1
public static final TimeSystem UT1
Universal Time.
-
UTC
public static final TimeSystem UTC
Universal Coordinated Time.
-
-
Method Detail
-
values
public static TimeSystem[] 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 (TimeSystem c : TimeSystem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeSystem 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 nameNullPointerException
- if the argument is null
-
getConverter
public abstract TimeConverter getConverter(ContextBinding context)
Get associatedTimeConverter
.- Parameters:
context
- context binding- Returns:
- time system for reading/writing date
- Since:
- 11.0
-
parse
public static TimeSystem parse(String value)
Parse a value from a key=value entry.- Parameters:
value
- value to parse- Returns:
- CCSDS time system corresponding to the value
-
-