|
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.SCLKDuration
public class SCLKDuration
Class SCLKDuration measures time intervals in units of SCLK ticks, where the ticks are associated with a specified clock.
Version 1.0.0 27-DEC-2009 (NJB)
Constructor Summary | |
---|---|
SCLKDuration(SCLK clock,
double ticks)
Construct a SCLKDuration from a clock ID and a tick count. |
|
SCLKDuration(SCLKDuration d)
Copy constructor. |
|
SCLKDuration(SCLK clock,
Duration d,
Time startTime)
Create a SCLKDuration from an SCLK ID, any Duration subclass and a start time. |
|
SCLKDuration(SCLK clock,
java.lang.String clkstr)
Construct a SCLKDuration from a clock ID and an SCLK duration string. |
Method Summary | |
---|---|
SCLKDuration |
add(SCLKDuration d)
Add a SCLKDuration to this instance. |
static java.lang.String |
format(SCLKDuration d)
Convert a non-negative SCLKDuration to a string. |
double |
getMeasure()
Return the measure of a SCLKDuration. |
SCLK |
getSCLK()
Return the SCLK ID of a SCLKDuration. |
double |
getTDBSeconds(Time startTime)
Convert this instance to a count of TDB seconds, given a start time. |
SCLKDuration |
negate()
Negate a SCLKDuration. |
SCLKDuration |
scale(double s)
Scale a SCLKDuration. |
SCLKDuration |
sub(SCLKDuration d)
Subtract a SCLKDuration from this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCLKDuration(SCLK clock, double ticks)
public SCLKDuration(SCLK clock, java.lang.String clkstr) throws SpiceException
SpiceException
public SCLKDuration(SCLKDuration d)
public SCLKDuration(SCLK clock, Duration d, Time startTime) throws SpiceException
SpiceException
Method Detail |
---|
public SCLK getSCLK() throws SpiceException
SpiceException
public double getMeasure() throws SpiceException
getMeasure
in class Duration
SpiceException
public double getTDBSeconds(Time startTime) throws SpiceException
getTDBSeconds
in class Duration
SpiceException
public SCLKDuration add(SCLKDuration d) throws SpiceException
SpiceException
public SCLKDuration sub(SCLKDuration d) throws SpiceException
SpiceException
public SCLKDuration negate()
negate
in class Duration
public SCLKDuration scale(double s)
scale
in class Duration
public static java.lang.String format(SCLKDuration d) throws SpiceException
Design topic: it would be convenient and expected for this functionality to be provided via an instance rather than a class method. But for that to be feasible, the method would need to work with negative durations.
So, should signed SCLK duration strings be supported?
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |