Package org.orekit.files.ccsds
Enum CcsdsTimeScale
- java.lang.Object
-
- java.lang.Enum<CcsdsTimeScale>
-
- org.orekit.files.ccsds.CcsdsTimeScale
-
- All Implemented Interfaces:
Serializable
,Comparable<CcsdsTimeScale>
public enum CcsdsTimeScale extends Enum<CcsdsTimeScale>
The set of time scales defined in Annex A of the ODM CCSDS standard 502.0-B-2.- 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 static boolean
contains(String timeScale)
Check iftimeScale
is one of the values supported by this enum.abstract TimeScale
getTimeScale(IERSConventions conventions)
Get the correspondingTimeScale
.AbsoluteDate
parseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate)
Parse a date in this time scale.static CcsdsTimeScale
valueOf(String name)
Returns the enum constant of this type with the specified name.static CcsdsTimeScale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GMST
public static final CcsdsTimeScale GMST
Greenwich Mean Sidereal Time.
-
GPS
public static final CcsdsTimeScale GPS
Global Positioning System.
-
MET
public static final CcsdsTimeScale MET
Mission Elapsed Time.
-
MRT
public static final CcsdsTimeScale MRT
Mission Relative Time.
-
SCLK
public static final CcsdsTimeScale SCLK
Spacecraft Clock. Not currently Implemented.
-
TAI
public static final CcsdsTimeScale TAI
International Atomic Time.
-
TCB
public static final CcsdsTimeScale TCB
Barycentric Coordinate Time.
-
TDB
public static final CcsdsTimeScale TDB
Barycentric Dynamical Time.
-
TCG
public static final CcsdsTimeScale TCG
Geocentric Coordinate Time.
-
TT
public static final CcsdsTimeScale TT
Terrestrial Time.
-
UT1
public static final CcsdsTimeScale UT1
Universal Time.
-
UTC
public static final CcsdsTimeScale UTC
Universal Coordinated Time.
-
-
Method Detail
-
values
public static CcsdsTimeScale[] 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 (CcsdsTimeScale c : CcsdsTimeScale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CcsdsTimeScale 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
-
parseDate
public AbsoluteDate parseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate)
Parse a date in this time scale.
-
getTimeScale
public abstract TimeScale getTimeScale(IERSConventions conventions)
Get the correspondingTimeScale
.
-
contains
public static boolean contains(String timeScale)
Check iftimeScale
is one of the values supported by this enum.- Parameters:
timeScale
- specifier.- Returns:
true
ifvalueOf(String)
will not throw an exception with the same string.
-
-