public enum CcsdsTimeScale extends Enum<CcsdsTimeScale>
Enum Constant and 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 and Description |
---|---|
static boolean |
contains(String timeScale)
Check if
timeScale is one of the values supported by this enum. |
TimeScale |
getTimeScale(IERSConventions conventions)
Get the corresponding
TimeScale . |
abstract TimeScale |
getTimeScale(IERSConventions conventions,
TimeScales timeScales)
Get the corresponding
TimeScale . |
AbsoluteDate |
parseDate(String date,
IERSConventions conventions,
AbsoluteDate missionReferenceDate)
Parse a date in this time scale.
|
AbsoluteDate |
parseDate(String date,
IERSConventions conventions,
AbsoluteDate missionReferenceDate,
TimeScales timeScales)
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 null@DefaultDataContext public AbsoluteDate parseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate)
This method uses the default data context
.
date
- a CCSDS date string.conventions
- IERS conventions for UT1
and GMST
.missionReferenceDate
- epoch for MET
and MRT
.date
.parseDate(String, IERSConventions, AbsoluteDate, TimeScales)
public AbsoluteDate parseDate(String date, IERSConventions conventions, AbsoluteDate missionReferenceDate, TimeScales timeScales)
@DefaultDataContext public TimeScale getTimeScale(IERSConventions conventions)
TimeScale
.
This method uses the default data context
.
public abstract TimeScale getTimeScale(IERSConventions conventions, TimeScales timeScales)
TimeScale
.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-2020 CS GROUP. All rights reserved.