Serializable
, Comparable<CcsdsTimeScale>
public enum CcsdsTimeScale extends Enum<CcsdsTimeScale>
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.
|
Modifier and Type | Method | Description |
---|---|---|
static boolean |
contains(String timeScale) |
Check if
timeScale is one of the values supported by this enum. |
abstract TimeScale |
getTimeScale(IERSConventions conventions) |
Get the corresponding
TimeScale . |
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.
|
public static final CcsdsTimeScale GMST
public static final CcsdsTimeScale GPS
public static final CcsdsTimeScale MET
public static final CcsdsTimeScale MRT
public static final CcsdsTimeScale SCLK
public static final CcsdsTimeScale TAI
public static final CcsdsTimeScale TCB
public static final CcsdsTimeScale TDB
public static final CcsdsTimeScale TCG
public static final CcsdsTimeScale TT
public static final CcsdsTimeScale UT1
public static final CcsdsTimeScale UTC
public static CcsdsTimeScale[] values()
for (CcsdsTimeScale c : CcsdsTimeScale.values()) System.out.println(c);
public static CcsdsTimeScale valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic AbsoluteDate parseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate) throws OrekitException
date
- a CCSDS date string.conventions
- IERS conventions for UT1
and GMST
.missionReferenceDate
- epoch for MET
and MRT
.date
.OrekitException
- if an AbsoluteDate
cannot be created from
date
in this time scale.public abstract TimeScale getTimeScale(IERSConventions conventions) throws OrekitException
TimeScale
.conventions
- IERS Conventions for the GMST
and UT1
scales.OrekitException
- if the time scale cannot be constructed.public static boolean contains(String timeScale)
timeScale
is one of the values supported by this enum.timeScale
- specifier.true
if valueOf(String)
will not throw an exception with
the same string.Copyright © 2002-2018 CS Systèmes d'information. All rights reserved.