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 GMSTGreenwich Mean Sidereal Time.GPSGlobal Positioning System.METMission Elapsed Time.MRTMission Relative Time.SCLKSpacecraft Clock.TAIInternational Atomic Time.TCBBarycentric Coordinate Time.TCGGeocentric Coordinate Time.TDBBarycentric Dynamical Time.TTTerrestrial Time.UT1Universal Time.UTCUniversal Coordinated Time.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static booleancontains(String timeScale)Check iftimeScaleis one of the values supported by this enum.abstract TimeScalegetTimeScale(IERSConventions conventions)Get the correspondingTimeScale.AbsoluteDateparseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate)Parse a date in this time scale.static CcsdsTimeScalevalueOf(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 iftimeScaleis one of the values supported by this enum.- Parameters:
timeScale- specifier.- Returns:
trueifvalueOf(String)will not throw an exception with the same string.
-
-