|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpl.mipl.uplink.tour.VimsDb
The VimsDb class contains methods used to interact with the MIPL catalog/database. In particular, it enables VIMS objects to be written to the cassini database.
VimsParameterSet
,
VimsInterfaceFile
,
VimsIoiHeader
Constructor Summary | |
VimsDb()
|
Method Summary | |
void |
addVimsParamHeaderTour(VimsIoiHeader header)
Adds an VimsIoiHeader object to the database. |
void |
addVimsParamTour(VimsParameterSet param_set,
VimsIoiHeader header)
Add an VimsParameterSet object to the database. |
void |
addVimsPredTour(VimsPredict predict)
This method adds an Vims Predict to the catalog. |
void |
clearDbErrors()
Clears the dbError variables. |
void |
get_db_connection_info(jqi db)
Get the database connection information from a jqi object to store into the mipDb jqi object of the VimsDb class. |
String |
getDatabase()
Return the database string. |
boolean |
getDbError()
Returns true if any database errors were thrown. |
int |
getDbErrorCount()
Returns the number of dbErrors encountered. |
String |
getServerName()
Return the serverName string. |
void |
getShutterPredicts(int triggerNumber)
|
String |
getUserName()
Return the UserName string. |
VimsIoiHeader |
getVimsParamHeaderTour(int trigger_number,
String trigger_time)
Returns a VimsIoiHeader object from the database. |
VimsParameterSetList |
getVimsParamTour(int trigger_number,
String trigger_scet_time)
Returns an VimsParameterTourList object from the database. |
VimsPredictList |
getVimsPredict(VimsTrigger trigger)
Returns an VimsPredictList object from the database. |
void |
init()
This constructor registers the JDBC driver and creates a database connection. |
void |
lineError(String msg)
Print out the error message |
void |
nextLineError(String msg)
Print out the error message |
void |
queryProps()
The queryProps method is called if there are no user supplied arguments. |
void |
setProps(String[] args)
Set the properties of the miplDb jqi object using a command line string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VimsDb()
Method Detail |
public void lineError(String msg)
public void nextLineError(String msg)
public void setProps(String[] args)
args
- An argument string containing the
jqi parameters of "-catalog", "-password",
"-database", "-server", -"dbmstype" followed by
the value of the parameter. Example: -catalog cassini_d -user joe. Order doesn't matter.
public void queryProps()
public void get_db_connection_info(jqi db)
public boolean getDbError()
public int getDbErrorCount()
public void clearDbErrors()
public void init()
public String getDatabase()
public String getServerName()
public String getUserName()
public void addVimsParamTour(VimsParameterSet param_set, VimsIoiHeader header)
addVimsParamTour
stored procedure
in the Sybase database and adds the VimsParameterSet object
to the vimsParamTour table.
param_set
- The VimsParameterSet object to be added.public VimsParameterSetList getVimsParamTour(int trigger_number, String trigger_scet_time)
trigger_number
- The trigger number of interest.public void addVimsParamHeaderTour(VimsIoiHeader header)
addVimsParamHeaderTour
stored procedure
in the Sybase database and adds the VimsIoiHeader object
to the vimsParamHeaderTour table.
header
- The VimsIoiHeader object to be added.public VimsIoiHeader getVimsParamHeaderTour(int trigger_number, String trigger_time)
trigger_number
- The trigger number of interest.trigger_time
- The scet time of the trigger (from the pef).public void getShutterPredicts(int triggerNumber)
public void addVimsPredTour(VimsPredict predict)
predict
- A VimsPredict object.public VimsPredictList getVimsPredict(VimsTrigger trigger)
trigger
- A Vims Trigger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |