JNISpice
version 2.0.0

spice.basic
Class JEDDuration

java.lang.Object
  extended by spice.basic.Duration
      extended by 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)


Constructor Summary
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
 JEDDuration add(JEDDuration d)
          Add a JEDDuration to this instance.
 double getMeasure()
          Return the measure of a TDTDuration.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


JEDDuration

public JEDDuration(JEDDuration d)
Copy constructor.


JEDDuration

public JEDDuration(Duration d,
                   Time startTime)
            throws SpiceException
Create a TDTDuration from any Duration subclass and a start Time.

Throws:
SpiceException
Method Detail

getMeasure

public double getMeasure()
                  throws SpiceException
Return the measure of a TDTDuration. Units are TDT seconds.

Specified by:
getMeasure in class Duration
Throws:
SpiceException

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 class Duration
Throws:
SpiceException

add

public JEDDuration add(JEDDuration d)
Add a JEDDuration to this instance.


sub

public JEDDuration sub(JEDDuration d)
Subtract a JEDDuration from this instance.


negate

public JEDDuration negate()
Negate a JEDDuration.

Specified by:
negate in class Duration

scale

public JEDDuration scale(double s)
Scale a JEDDuration.

Specified by:
scale in class Duration

JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)