JNISpice
version 2.0.0

spice.basic
Class TDTDuration

java.lang.Object
  extended by spice.basic.Duration
      extended by spice.basic.TDTDuration

public class TDTDuration
extends Duration

Class TDTDuration measures time intervals in units of TDT seconds.

Version 1.0.0 03-NOV-2009 (NJB)


Constructor Summary
TDTDuration()
          No-arguments constructor.
TDTDuration(double seconds)
          Construct a TDTDuration from a double precision count of seconds past J2000 TDT.
TDTDuration(Duration d, Time startTime)
          Create a TDTDuration from any Duration subclass and a start Time.
TDTDuration(TDTDuration d)
          Copy constructor.
 
Method Summary
 TDTDuration add(TDTDuration d)
          Add a TDTDuration 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.
 TDTDuration negate()
          Negate a TDTDuration.
 TDTDuration scale(double s)
          Scale a TDTDuration.
 TDTDuration sub(TDTDuration d)
          Subtract a TDTDuration from this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TDTDuration

public TDTDuration()
No-arguments constructor.


TDTDuration

public TDTDuration(double seconds)
Construct a TDTDuration from a double precision count of seconds past J2000 TDT.


TDTDuration

public TDTDuration(TDTDuration d)
Copy constructor.


TDTDuration

public TDTDuration(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 TDTDuration add(TDTDuration d)
Add a TDTDuration to this instance.


sub

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


negate

public TDTDuration negate()
Negate a TDTDuration.

Specified by:
negate in class Duration

scale

public TDTDuration scale(double s)
Scale a TDTDuration.

Specified by:
scale in class Duration

JNISpice
version 2.0.0

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