|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Duration
spice.basic.TDBDuration
public class TDBDuration
Class TDBDuration measures time intervals in units of TDB seconds.
Version 1.0.0 28-NOV-2009 (NJB)
Constructor Summary | |
---|---|
TDBDuration()
No-arguments constructor. |
|
TDBDuration(double seconds)
Construct a TDBDuration from a double precision count of seconds past J2000 TDB. |
|
TDBDuration(Duration d,
Time startTime)
Create a TDBDuration from any Duration subclass and a start time. |
|
TDBDuration(TDBDuration d)
Copy constructor. |
Method Summary | |
---|---|
TDBDuration |
add(TDBDuration d)
Add a TDBDuration to this instance. |
double |
getMeasure()
Return the measure of a TDBDuration. |
double |
getTDBSeconds(Time startTime)
Convert this instance to a count of TDB seconds. |
TDBDuration |
negate()
Negate a TDBDuration. |
TDBDuration |
scale(double s)
Scale a TDBDuration. |
TDBDuration |
sub(TDBDuration d)
Subtract a TDBDuration from this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TDBDuration()
public TDBDuration(double seconds)
public TDBDuration(TDBDuration d)
public TDBDuration(Duration d, Time startTime) throws SpiceException
SpiceException
Method Detail |
---|
public double getMeasure() throws SpiceException
getMeasure
in class Duration
SpiceException
public double getTDBSeconds(Time startTime) throws SpiceException
The signature of this method includes an input
Time because this
input is present in the Duration
superclass version of this method. This input argument
is not used in the method's implementation.
getTDBSeconds
in class Duration
SpiceException
public TDBDuration add(TDBDuration d)
public TDBDuration sub(TDBDuration d)
public TDBDuration negate()
negate
in class Duration
public TDBDuration scale(double s)
scale
in class Duration
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |