grs.pds.edr
Class NsEdrTestRecord

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--grs.pds.PdsTestRecord
                    |
                    +--grs.pds.edr.PositionedEdrTestRecord
                          |
                          +--grs.pds.edr.NsEdrTestRecord
All Implemented Interfaces:
Cloneable, Map, PdsRecord, Serializable

public class NsEdrTestRecord
extends PositionedEdrTestRecord

Unit test wrapper for the NsEdrRecord class. Subclasses Hashtable (through PositionedEdrTestRecord). Hash keys will be field (column) names. Two methods of creating an instance are provided: from a ResultSet (the "real" instance), and from a NsEdrRecord (the "test" instance).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class grs.pds.PdsTestRecord
PdsTimeFormat, UNAVAILABLE_STRING
 
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
NsEdrTestRecord(DataInputStream in)
          Create a test record from the Query Tool's Neutron Spatial output type.
NsEdrTestRecord(NsEdrRecord rec)
          Create a test record from a ns record.
NsEdrTestRecord(ResultSet rs, boolean pds)
          Create a test record from a result set.
 
Methods inherited from class grs.pds.edr.PositionedEdrTestRecord
readSpatialHeader
 
Methods inherited from class grs.pds.PdsTestRecord
equals, md5sum, readCommonHeader
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NsEdrTestRecord

public NsEdrTestRecord(NsEdrRecord rec)
Create a test record from a ns record.

Parameters:
rec - ns record.

NsEdrTestRecord

public NsEdrTestRecord(ResultSet rs,
                       boolean pds)
                throws SQLException
Create a test record from a result set.

Parameters:
rs - JDBC ResultSet
Throws:
SQLException - Error reading from result set.
See Also:
NsEdrRecord.createSelectString(java.lang.String)

NsEdrTestRecord

public NsEdrTestRecord(DataInputStream in)
                throws IOException
Create a test record from the Query Tool's Neutron Spatial output type.

Parameters:
in - Stream from query tool output file.
Throws:
IOException - Error reading from stream.
SpiceException - Error in time conversion.


2001 Mars Odyssey Gamma Ray Spectrometer Team