public class Timesys
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Timesys(double timeorigin,
java.lang.String timescale,
java.lang.String refposition)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
decodeTimeorigin(java.lang.String txt)
Turns the value string found in the TIMESYS/@timeorigin attribute
into a numeric value giving JD offset in days.
|
java.lang.String |
getRefposition()
Returns the reference position identifier.
|
double |
getTimeorigin()
Returns the numeric value of time origin.
|
java.lang.String |
getTimescale()
Returns the timescale identifier.
|
static Timesys |
getTimesys(ValueInfo info)
Extracts a Timesys instance from a ValueInfo.
|
java.lang.String |
toString() |
protected Timesys(double timeorigin,
java.lang.String timescale,
java.lang.String refposition)
timeorigin - numeric value of time origin (JD offset);
if the timeys doesn't have one, use NaNtimescale - timescale valuerefposition - refposition valuepublic double getTimeorigin()
public java.lang.String getTimescale()
public java.lang.String getRefposition()
public java.lang.String toString()
toString in class java.lang.Objectpublic static double decodeTimeorigin(java.lang.String txt)
throws java.lang.NumberFormatException
txt - timeorigin attribute valuejava.lang.NumberFormatException - if the value is not one of the
magic strings and is not a valid numerical representation