|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.app.JseedrTest
public class JseedrTest
JseedrTest Class used for testing JavaSeed via Jseedr. Can be set to print waveform data or to alter and write out data. A good test harness for running diagnostics.
Field Summary | |
---|---|
static int |
B1000_DATA_RECORD_LENGTH_FIELD
|
static int |
B1000_ENCODING_FORMAT_FIELD
|
static int |
B1000_NEXT_BLOCKETTE_BYTE_NUMBER
Blockette 1000 Fixed Section Data Header fields. |
static int |
B1000_RESERVED_FIELD
|
static int |
B1000_WORD_ORDER_FIELD
|
static int |
B999_BEGINNING_OF_DATA
|
static int |
B999_CHANNEL_IDENTIFIER_FIELD
|
static int |
B999_LOCATION_IDENTIFIER_FIELD
|
static int |
B999_RECORD_START_TIME_FIELD
|
static int |
B999_SAMPLE_COUNT_FIELD
|
static int |
B999_SAMPLE_RATE_FACTOR_FIELD
|
static int |
B999_SAMPLE_RATE_MULTIPLIER_FIELD
|
static int |
B999_STATION_IDENTIFIER_FIELD
Blockette 999 Fixed Section Data Header fields. |
static int |
PREFERRED_DATA_RECORD_LENGTH
The preferred data record length in bytes. |
static int |
PREFERRED_DATA_RECORD_LENGTH_EXP
The preferred data record length expressed as an exponent as a power of 2 (2^12=4096.) |
protected boolean |
replaceDataFlag
Replace data flag: true to replace the data with re-encoded data or false to leave the data as is. |
static java.lang.String |
SEED_TYPE
SEED type. |
static byte |
STEIM1_ENCODING_FORMAT
Steim1 encoding format (used in B1000.) |
static java.lang.String |
STEIM1_ENCODING_METHOD
Steim1 encoding. |
protected boolean |
verboseMode
set to true to turn Jseedr verbose mode ON |
protected boolean |
verboseModeWhenExport
set to true to turn Jseedr verbose mode ON when exporting |
Constructor Summary | |
---|---|
JseedrTest()
|
Method Summary | |
---|---|
int |
getDataRecordLength(int dataRecordLengthExp)
Gets the data record length. |
static int |
getInteger(Blockette blk,
int fieldNum)
Get the integer from the blockette field. |
static java.lang.Number |
getNumber(Blockette blk,
int fieldNum)
Get the number from the blockette field. |
static void |
main(java.lang.String[] args)
|
int |
modifyBlock1000(Blockette dataBlk)
Modifies the blockette 1000 based upon the waveform. |
void |
printData(java.io.File seedVolume)
|
void |
processData(java.io.File seedVolume)
|
static void |
setFieldVal(Blockette blk,
int fieldNum,
byte value)
|
static void |
setFieldVal(Blockette blk,
int fieldNum,
int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEED_TYPE
public static final java.lang.String STEIM1_ENCODING_METHOD
Waveform
,
Constant Field Valuespublic static final byte STEIM1_ENCODING_FORMAT
public static final int PREFERRED_DATA_RECORD_LENGTH_EXP
public static final int PREFERRED_DATA_RECORD_LENGTH
public static final int B999_STATION_IDENTIFIER_FIELD
public static final int B999_LOCATION_IDENTIFIER_FIELD
public static final int B999_CHANNEL_IDENTIFIER_FIELD
public static final int B999_RECORD_START_TIME_FIELD
public static final int B999_SAMPLE_COUNT_FIELD
public static final int B999_SAMPLE_RATE_FACTOR_FIELD
public static final int B999_SAMPLE_RATE_MULTIPLIER_FIELD
public static final int B999_BEGINNING_OF_DATA
public static final int B1000_NEXT_BLOCKETTE_BYTE_NUMBER
public static final int B1000_ENCODING_FORMAT_FIELD
public static final int B1000_WORD_ORDER_FIELD
public static final int B1000_DATA_RECORD_LENGTH_FIELD
public static final int B1000_RESERVED_FIELD
protected boolean verboseMode
protected boolean verboseModeWhenExport
protected boolean replaceDataFlag
Constructor Detail |
---|
public JseedrTest()
Method Detail |
---|
public void printData(java.io.File seedVolume) throws java.lang.Exception
java.lang.Exception
public void processData(java.io.File seedVolume) throws java.lang.Exception
java.lang.Exception
public int getDataRecordLength(int dataRecordLengthExp)
dataRecordLengthExp
- the dataRecordLength exponent.
public static int getInteger(Blockette blk, int fieldNum)
blk
- the blockette.fieldNum
- the field number.
public static java.lang.Number getNumber(Blockette blk, int fieldNum)
blk
- the blockette.fieldNum
- the field number.
public int modifyBlock1000(Blockette dataBlk) throws SeedException
dataBlk
- the data blockette.
SeedException
- if error.public static void setFieldVal(Blockette blk, int fieldNum, byte value) throws SeedException
SeedException
public static void setFieldVal(Blockette blk, int fieldNum, int value) throws SeedException
SeedException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |