|
|||||||||||
| 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.PositionedEdrRecord
|
+--grs.pds.edr.HendEdrRecord
HEND records ("frames") can be one of three types: nominal (spectra), profile (time series), or status (commands).
| Field Summary | |
byte |
anticoincidence_code
|
long |
bad_code
|
short |
checksum
|
byte[] |
cmd1
|
byte[] |
cmd2
|
byte[] |
cmd3
|
byte[] |
cmd4
|
byte[] |
cmd5
|
byte[] |
cmd6
|
byte |
counter
|
short |
frame_number
|
byte |
frame_type
|
byte |
hv1_lvl
|
byte |
hv2_lvl
|
byte |
hv3_lvl
|
byte |
hv4_lvl
|
byte |
hv5_lvl
|
short |
in_control
|
byte |
in_discriminator
|
byte[] |
in_profile
|
byte[] |
in_spectrum
|
byte |
k1
|
byte |
ld_discriminator
|
byte[] |
ld_spectrum
|
byte |
md_discriminator
|
byte[] |
md_spectrum
|
byte[] |
neutron_spectrum
|
byte |
out_discriminator
|
byte[] |
out_profile
|
byte[] |
out_spectrum
|
short |
out_status
|
byte |
sd_discriminator
|
byte[] |
sd_spectrum
|
int |
t1
|
short |
t1_t4_temp
|
int |
t2
|
short |
t2_t5_temp
|
short |
t3_t6_temp
|
byte[] |
title
|
byte |
trig_logic
|
short |
trigger_cnt
|
byte |
trigger_lvl_c1
|
byte |
trigger_lvl_c2
|
byte |
trigger_perm_c1
|
byte |
trigger_perm_c2
|
| Fields inherited from class grs.pds.edr.PositionedEdrRecord |
ceb_time, day_index, delta_theta, instrboresight_mars, intersecting, latitude, local_hour, local_min, longitude, mars_sol, marspos_instr, marsvel_instr, ody_orbit, orbit, pixel, pointing, sc_ev_time, sc_recv_time, scalt, scpos_inert, scpos_mars, scvel_inert, subsc_mars, utc |
| 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 | |
HendEdrRecord(DataInputStream in)
Create a hend record from a DataInputStream. |
|
HendEdrRecord(ResultSet rs)
Create a hend record from a ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
Create the SQL query used to insert gamma data into the PDS schema. |
static String[] |
createSelectString(String schema)
Create the SQL query used to select hend data. |
static void |
main(String[] args)
Demonstrates use of this class to parse an Hend 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.edr.PositionedEdrRecord |
getSCLK, getUTC, readHeader, readHeader, toStringArray |
| 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 long bad_code
public byte counter
public short checksum
public byte anticoincidence_code
public short frame_number
public byte frame_type
public short in_control
public short out_status
public short t1_t4_temp
public short t2_t5_temp
public short t3_t6_temp
public byte hv1_lvl
public byte hv2_lvl
public byte hv3_lvl
public byte hv4_lvl
public byte hv5_lvl
public byte trig_logic
public short trigger_cnt
public byte trigger_lvl_c1
public byte trigger_lvl_c2
public byte trigger_perm_c1
public byte trigger_perm_c2
public int t1
public int t2
public byte k1
public byte[] title
public byte ld_discriminator
public byte md_discriminator
public byte sd_discriminator
public byte in_discriminator
public byte out_discriminator
public byte[] ld_spectrum
public byte[] md_spectrum
public byte[] sd_spectrum
public byte[] in_spectrum
public byte[] out_spectrum
public byte[] neutron_spectrum
public byte[] in_profile
public byte[] out_profile
public byte[] cmd1
public byte[] cmd2
public byte[] cmd3
public byte[] cmd4
public byte[] cmd5
public byte[] cmd6
| Constructor Detail |
public HendEdrRecord(DataInputStream in)
throws IOException,
ParseException
in - Stream to read from.
IOException - Error reading from stream.
ParseException - UTC date from stream is in an invalid format.
public HendEdrRecord(ResultSet rs)
throws SQLException
rs - ResultSet to read from.
SQLException - Error reading from result set.
IOException - Invalid spectrum.| Method Detail |
public static String[] createSelectString(String schema)
schema - DB Schema to use.
public static String[] createInsertString(String schema)
schema - DB Schema to use.
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class PositionedEdrRecordpstmt - prepared statement
SQLException - Error in binding binding
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class PositionedEdrRecordout - Stream to write to.
IOException - Error writing to stream.public String[] toStringArray()
toStringArray in class BasePdsRecordpublic static final void main(String[] args)
args - Filename
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||