- java.lang.Object
-
- spice.basic.Duration
-
- spice.basic.JEDDuration
-
public class JEDDuration extends Duration
Class JEDDuration measures time intervals in units of Julian ephemeris days; the time system used for this measurement is TDB.Version 1.0.0 28-NOV-2009 (NJB)
-
-
Field Summary
Fields Modifier and Type Field Description private double
measure
-
Constructor Summary
Constructors Constructor Description JEDDuration()
No-arguments constructor.JEDDuration(double days)
Construct a JEDDuration from a double precision count of Julian ephemeris days.JEDDuration(Duration d, Time startTime)
Create a TDTDuration from any Duration subclass and a start Time.JEDDuration(JEDDuration d)
Copy constructor.
-
Method Summary
Modifier and Type Method Description JEDDuration
add(JEDDuration d)
Add a JEDDuration to this instance.double
getMeasure()
Return the measure of a TDTDuration.Units are TDT seconds.double
getTDBSeconds(Time startTime)
Convert this instance to a count of of TDB seconds, measured relative to a given count of TDB seconds past J2000 TDB.JEDDuration
negate()
Negate a JEDDuration.JEDDuration
scale(double s)
Scale a JEDDuration.JEDDuration
sub(JEDDuration d)
Subtract a JEDDuration from this instance.
-
-
-
Constructor Detail
-
JEDDuration
public JEDDuration()
No-arguments constructor.
-
JEDDuration
public JEDDuration(double days)
Construct a JEDDuration from a double precision count of Julian ephemeris days.- Parameters:
days
- double
-
JEDDuration
public JEDDuration(JEDDuration d)
Copy constructor.- Parameters:
d
- JEDDuration
-
JEDDuration
public JEDDuration(Duration d, Time startTime) throws SpiceException
Create a TDTDuration from any Duration subclass and a start Time.- Parameters:
d
- DurationstartTime
- Time- Throws:
SpiceException
- exception
-
-
Method Detail
-
getMeasure
public double getMeasure() throws SpiceException
Return the measure of a TDTDuration.Units are TDT seconds.- Specified by:
getMeasure
in classDuration
- Returns:
- double
- Throws:
SpiceException
- exception
-
getTDBSeconds
public double getTDBSeconds(Time startTime) throws SpiceException
Convert this instance to a count of of TDB seconds, measured relative to a given count of TDB seconds past J2000 TDB.- Specified by:
getTDBSeconds
in classDuration
- Parameters:
startTime
- Time- Returns:
- double
- Throws:
SpiceException
- exception
-
add
public JEDDuration add(JEDDuration d)
Add a JEDDuration to this instance.- Parameters:
d
- JEDDuration- Returns:
- JEDDuration
-
sub
public JEDDuration sub(JEDDuration d)
Subtract a JEDDuration from this instance.- Parameters:
d
- JEDDuration- Returns:
- JEDDuration
-
negate
public JEDDuration negate()
Negate a JEDDuration.
-
scale
public JEDDuration scale(double s)
Scale a JEDDuration.
-
-