|
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.Time
spice.basic.SCLKTime
public class SCLKTime
Class SCLKTime represents times measured by spacecraft clocks.
This class supports conversion between SCLK strings
and encoded SCLK; it also supports conversion between
encoded SCLK and other Time
classes.
Version 1.0.0 15-DEC-2009 (NJB)
Constructor Summary | |
---|---|
SCLKTime(SCLK clock,
double ticks)
Construct an SCLKTime from double precision ticks. |
|
SCLKTime(SCLK clock,
java.lang.String sclkch)
Construct an SCLKTime from an SCLK string. |
|
SCLKTime(SCLKTime t)
Create an SCLK time from another SCLK time. |
|
SCLKTime(SCLK clock,
Time time)
Construct an SCLKTime from a Time. |
Method Summary | |
---|---|
SCLKTime |
add(Duration d)
Add a Duration to an SCLKTime instance, producing another SCLKTime. |
double |
getContinuousTicks()
Get continuous ticks as a double precision number. |
double |
getDiscreteTicks()
Get discrete ticks as a double precision number. |
SCLK |
getSCLK()
Get SCLK associated with an SCLKTime. |
java.lang.String |
getString()
Convert an SCLKTime to an SCLK string. |
double |
getTDBSeconds()
Convert an SCLKTime to TDB seconds past J2000 TDB. |
SCLKTime |
sub(Duration d)
Subtract a Duration from an SCLKTime instance, producing another SCLKTime. |
SCLKDuration |
sub(Time t)
Subtract a Time instance from a SCLKTime, producing an SCLKDuration. |
java.lang.String |
toString()
Convert an SCLKTime to an SCLK string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SCLKTime(SCLKTime t)
public SCLKTime(SCLK clock, java.lang.String sclkch) throws SpiceException
SpiceException
public SCLKTime(SCLK clock, Time time) throws SpiceException
SpiceException
public SCLKTime(SCLK clock, double ticks) throws SpiceException
SpiceException
Method Detail |
---|
public SCLK getSCLK() throws SpiceException
SpiceException
public double getTDBSeconds() throws SpiceException
getTDBSeconds
in class Time
SpiceException
public java.lang.String getString() throws SpiceException
SpiceException
public java.lang.String toString()
toString
in class java.lang.Object
public double getContinuousTicks()
public double getDiscreteTicks()
public SCLKDuration sub(Time t) throws SpiceException
sub
in class Time
SpiceException
public SCLKTime add(Duration d) throws SpiceException
add
in class Time
SpiceException
public SCLKTime sub(Duration d) throws SpiceException
sub
in class Time
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |