|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--grs.pds.BasePdsRecord
|
+--grs.pds.TimeSeriesRecord
|
+--grs.pds.edr.CmdEdrRecord
Records commands that have been sent to the spacecraft, or executed onboard the CEB.
| Field Summary | |
int |
cmd_id
command id, references commanding spreadsheets |
byte |
delay_flag
non-zero if command is delayed |
int |
exec_code
return code |
byte |
fis_cmd_type
zero if noninteractive, one if interactive |
Date |
fis_send_time
time command was sent to flight computer, or value of sc_sent_time if from sequence |
long |
grs_exec_time
CEB time command was executed |
short |
opcode
command opcode, references GRS command dictionary |
int |
parm1
parameters passed to the command, see the command dictionary |
int |
parm2
parameters passed to the command, see the command dictionary |
int |
parm3
parameters passed to the command, see the command dictionary |
Date |
sc_sent_time
time of command (UTC) |
long |
time_orbit
time or orbit:pixel when command is to be executed, zero if immediate |
byte |
time_orbit_flag
zero if to be executed by time, one if by orbit and pixel |
| Fields inherited from class grs.pds.BasePdsRecord |
PdsTimeFormat |
| Fields inherited from interface grs.pds.PdsRecord |
GAMMA_CHANNELS, int10, int12, int2, int3, logger, MESSAGE_LENGTH, NS_MAX_EVENTS, PEF_COMMANDS, prec10, prec12, prec13, prec14, prec15, prec16, prec17, prec5, prec6, prec7, PROFILE_LENGTH, PROFILE_SIZE, PULSER_CHANNELS, QUERY_DATE_FMT, SC_ID |
| Constructor Summary | |
CmdEdrRecord(DataInputStream in)
Read record in from a DataInputStream. |
|
CmdEdrRecord(ResultSet rs)
Read record in from a ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
Create the SQL query used to insert command data into the PDS schema. |
static String[] |
createSelectString(String schema)
Query the command_sent_tab and command_exec_tab by doing a join where grs_exec_time matches. |
long |
getSCLK()
Get the Date (time) of record. |
Date |
getUTC()
Get the UTC time that this record was observed on. |
static void |
main(String[] args)
Demonstrates use of this class to parse an Cmd EDR record. |
int |
prepareInsert(PreparedStatement pstmt)
Bind values to the PreparedStatement |
String[] |
toStringArray()
Display the values in this record. |
void |
writeTo(DataOutputStream out)
Write this record to a DataOutputStream. |
| Methods inherited from class grs.pds.BasePdsRecord |
endianSwapShort |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int cmd_id
public short opcode
public byte fis_cmd_type
public Date fis_send_time
public Date sc_sent_time
public long grs_exec_time
public long time_orbit
public byte time_orbit_flag
public byte delay_flag
public int parm1
public int parm2
public int parm3
public int exec_code
| Constructor Detail |
public CmdEdrRecord(ResultSet rs)
throws SQLException
rs - ResultSet to read from.
SQLException - Error reading from resultset.
public CmdEdrRecord(DataInputStream in)
throws ParseException,
IOException
in - Stream to read from.
IOException - error reading from stream.
ParseException - UTC date in stream data is invalid.| Method Detail |
public static String[] createSelectString(String schema)
schema - Database schema to use, e.g. "map1".
public static String[] createInsertString(String schema)
schema - DB Schema to use.
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class BasePdsRecordpstmt - prepared statement
SQLException - Error in binding binding
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class BasePdsRecordout - Stream to write to.
IOException - Error writing to stream.public String[] toStringArray()
toStringArray in class BasePdsRecordpublic long getSCLK()
getSCLK in class TimeSeriesRecordpublic Date getUTC()
TimeSeriesRecord
getUTC in class TimeSeriesRecordpublic static final void main(String[] args)
args - path to command data file, e.g. command_list_20020723.dat
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||