|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Observable
|
+--grs.spice.TimeBean
|
+--grs.spice.ClockConverterBean
Performs conversions of time units using SPICE Java Native Interface. To use: set System properties as described in grs.spice.TimeBean. Set the time using the setTime() method, retrieve converted values by calling the appropriate methods.
| Field Summary | |
static String |
UNIT_CEB
|
static String |
UNIT_ET
|
static String |
UNIT_FINE
|
static String |
UNIT_LSUN
|
static String |
UNIT_SCLK
|
static String |
UNIT_TICKS
|
static String |
UNIT_UTC
|
static String |
UNIT_ZONE
|
| Fields inherited from class grs.spice.TimeBean |
localTime, longTime, scId, threePrec, UTC, utcTime |
| Constructor Summary | |
ClockConverterBean(Connection conn)
Re-establish the connection if necessary. |
|
| Method Summary | |
void |
destroy()
Close database connections |
String |
getCEB()
Get the input as CEB value. |
String |
getCEBFine()
Get the input as CEB SPLIT value. |
String |
getET()
Get the input as Ephemeris Time value. |
String |
getLSun()
Get Mars's longitude of the sun in degrees. |
String |
getSCLK()
Get the input as SCLK value in seconds. |
String |
getTicks()
Get the input as SCLK tick values. |
String |
getUTC()
Get the input as UTC value. |
String |
getZone()
Get the input as local time value. |
void |
setTime(String time,
String value)
Set the time and perform conversions. |
| Methods inherited from class grs.spice.TimeBean |
getCurrentSCLK |
| Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UNIT_ZONE
public static final String UNIT_UTC
public static final String UNIT_ET
public static final String UNIT_TICKS
public static final String UNIT_SCLK
public static final String UNIT_CEB
public static final String UNIT_FINE
public static final String UNIT_LSUN
| Constructor Detail |
public ClockConverterBean(Connection conn)
throws SQLException
SpiceException - if the spice kernels cannot be loaded
SQLException - if cannot connect to the oracle server| Method Detail |
public void setTime(String time,
String value)
throws ParseException,
NumberFormatException,
SQLException,
SpiceException
time - one of the named String constants abovevalue - should be decimal or utc string form like "z yyyy MMM dd HH:mm:ss.SSS"
ParseException
NumberFormatException
SQLException
SpiceExceptionpublic String getUTC()
public String getET()
public String getTicks()
public String getSCLK()
public String getZone()
public String getCEB()
public String getCEBFine()
public String getLSun()
public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||