edu.iris.Fissures.seed.builder
Class CssExportBuilder

java.lang.Object
  extended by edu.iris.Fissures.seed.builder.ExportBuilder
      extended by edu.iris.Fissures.seed.builder.BasicExportBuilder
          extended by edu.iris.Fissures.seed.builder.CssExportBuilder

public class CssExportBuilder
extends BasicExportBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.iris.Fissures.seed.builder.BasicExportBuilder
BasicExportBuilder.ChannelInfo, BasicExportBuilder.ComplexNumber, BasicExportBuilder.DataInfo, BasicExportBuilder.EventInfo, BasicExportBuilder.ResponseInfo, BasicExportBuilder.StationInfo
 
Nested classes/interfaces inherited from class edu.iris.Fissures.seed.builder.ExportBuilder
ExportBuilder.LogicalRecord
 
Field Summary
protected static java.lang.String[] magnitudeTypes
           
protected static int ORID
           
protected static int Wfdisc_buf_size
           
protected  int wfid
           
 
Fields inherited from class edu.iris.Fissures.seed.builder.BasicExportBuilder
currentChannel, currentStation, EMPTY_TEXT, eventInfo, padFlag, stationList, TWO_PI, ZERO_NUMBER
 
Fields inherited from class edu.iris.Fissures.seed.builder.ExportBuilder
builderType, endOfGroup, endOfLogical, endOfPhysical, exportMold, exportScript, logicalPerPhysical, logicalRecord, logicalRecordCount, logicalRecordLength, logicalRecords, nestingDepth, nestingScore, outputStream, padEnabledFlag, penDown, physicalRecordLength, recordPadding, scriptCursor, scriptNesting, vaxOrder
 
Constructor Summary
CssExportBuilder()
          Create a CSS export builder.
 
Method Summary
protected static double getEpochTime(Btime btime)
          Gets the epoch time in seconds.
protected  double getMagnitude(java.lang.String magType)
          Gets the magnitude for the specified magnitude type.
protected  java.lang.String getNet(java.lang.String instrument_code)
          Gets the abbreviation for the specified instrument code.
protected  java.lang.String getSrcName(java.lang.String source_lookup_code)
          Gets the source name for the specified source lookup code.
protected  void output_info()
          Output the CSS information.
protected static boolean scanFile(java.io.File textFile, java.lang.String textStr)
          Scan the file for the specified text.
protected  boolean writeData(java.lang.String outfile_name, int[] intData)
          Writes the data.
protected  boolean writeTextFile(java.io.File textFile, java.lang.String text)
          Writes the text file.
 
Methods inherited from class edu.iris.Fissures.seed.builder.BasicExportBuilder
blkGetNumber, blkGetNumber, blkGetNumber, blkGetString, blkGetString, blkGetTime, blkGetTime, checkTrigger, clearDataInfo, convertNumber, find_type_32, find_type_33, find_type_34, findChannelInfo, findStationInfo, getDataInfo, getEndTime, getEndTime, getFloatData, getIntegerData, initExportScript, packToRecord, packToRecord, padLogical, padPhysical, startNewLogical, volumeFinish
 
Methods inherited from class edu.iris.Fissures.seed.builder.ExportBuilder
build, close, finish, getNext, getType, isPaddingEnabled, open, push, setLogicalRecLen, setPaddingEnabled, setPhysicalRecLen, setVaxOrder, startVolume, writeRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Wfdisc_buf_size

protected static int Wfdisc_buf_size

ORID

protected static int ORID

magnitudeTypes

protected static java.lang.String[] magnitudeTypes

wfid

protected int wfid
Constructor Detail

CssExportBuilder

public CssExportBuilder()
Create a CSS export builder.

Method Detail

writeData

protected boolean writeData(java.lang.String outfile_name,
                            int[] intData)
Writes the data.

Parameters:
outfile_name - the output filename.
intData - the integer data values.
Returns:
true if successful, false otherwise.

writeTextFile

protected boolean writeTextFile(java.io.File textFile,
                                java.lang.String text)
Writes the text file.

Parameters:
textFile - the text file.
text - the text.
Returns:
true if successful, false otherwise.

output_info

protected void output_info()
Output the CSS information.

Overrides:
output_info in class BasicExportBuilder

getEpochTime

protected static double getEpochTime(Btime btime)
Gets the epoch time in seconds.

Parameters:
btime - the Btime.
Returns:
the epoch time in seconds.

getMagnitude

protected double getMagnitude(java.lang.String magType)
Gets the magnitude for the specified magnitude type.

Parameters:
magType - the magnitude type.
Returns:
the magnitude or -999 if none.

getNet

protected java.lang.String getNet(java.lang.String instrument_code)
Gets the abbreviation for the specified instrument code.

Parameters:
instrument_code - the instrument code.
Returns:
the abbreviation.

getSrcName

protected java.lang.String getSrcName(java.lang.String source_lookup_code)
Gets the source name for the specified source lookup code.

Parameters:
source_lookup_code - the source lookup code.
Returns:
the source name.

scanFile

protected static boolean scanFile(java.io.File textFile,
                                  java.lang.String textStr)
Scan the file for the specified text.

Parameters:
textFile - the text file.
textStr - the text.
Returns:
true if the file contains the text, false otherwise.