|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.isti.jevalresp.Run
public class Run
Class Run is the entry point and managing module for 'JEvalResp'.
Field Summary | |
---|---|
protected double |
b62XValue
|
protected CfgPropItem |
b62XValueProp
Sample value for polynomial blockette (62). |
protected java.util.Calendar |
beginCalObj
|
protected java.lang.String[] |
chaNamesArray
|
protected boolean |
debugFlag
|
protected CfgPropItem |
debugFlagProp
Flag set true to send debug messages to 'stderr'. |
protected java.util.Calendar |
endCalObj
|
protected CfgPropItem |
endDayProp
Julian day value for end of time range to be matched. |
protected CfgPropItem |
endTimeProp
Time-of-day value for end of time range to be matched. |
protected CfgPropItem |
endYearProp
Year value for end of time range to be matched. |
protected java.lang.String |
errorMessage
|
protected int |
exitStatusValue
|
protected CfgPropItem |
fileNameProp
RESP file name to be used. |
protected java.lang.String |
fileNameString
|
protected double[] |
frequenciesArray
|
static java.lang.String |
HDR_CMT_STR
String containing leading comment chars for output file headers. |
protected boolean |
headerFlag
|
protected CfgPropItem |
headerFlagProp
Flag set true to enable header info in output file(s). |
static double |
INTERP_TENSION_DEFVAL
Default value for List-blockette interpolation. |
protected CfgPropItem |
interpInputFlagProp
Flag set true to interpolate List blockette input. |
protected CfgPropItem |
interpListFlagProp
Flag set true to interpolate List blockette output. |
protected CfgPropItem |
interpTensionProp
Tension value for List-blockette interpolation. |
protected boolean |
listInterpInFlag
|
protected boolean |
listInterpOutFlag
|
protected double |
listInterpTension
|
protected CfgPropItem |
locationIdProp
Requested location ID string. |
protected boolean |
logSpacingFlag
|
protected double |
maxFreqValue
|
protected double |
minFreqValue
|
protected boolean |
minimumFrequencyFlag
|
protected boolean |
multiOutFlag
|
protected CfgPropItem |
multiOutFlagProp
Flag set true to enable multiple response outputs with the same 'net.sta.loc.cha' code. |
protected boolean |
multiSvrFlag
|
protected CfgPropItem |
multiSvrFlagProp
True to fetch from all specified web-services servers. |
protected java.lang.String[] |
netNamesArray
|
protected CfgPropItem |
networkIdProp
Requested network ID string. |
protected int |
numberFreqs
|
protected java.io.File |
outputDirectory
|
protected CfgPropItem |
outputDirectoryProp
Output directory value. |
protected int |
outUnitsConvIdx
|
protected CfgPropItem |
outUnitsConvProp
Output units conversion, one of: vel, acc, dis, def. |
protected CfgProperties |
paramProps
Properties object for parameter processing. |
static java.lang.String |
PROGRAM_NAME
Displayed name of program. |
protected CfgPropItem |
propsFileProp
Properties file for FISSURES or web-services server. |
protected java.lang.String |
propsFileString
|
static int |
RESP_AP_TYPEIDX
Index value (0) for "ap" response type (separate amp/phase files). |
static int |
RESP_AP2_TYPEIDX
Index value (2) for "ap2" response type (single amp/phase file). |
static int |
RESP_CS_TYPEIDX
Index value (1) for "cs" response type (complex-spectra file). |
static int |
RESP_FAP_TYPEIDX
Index value (3) for "fap" response type (single, unwrapped file). |
static java.lang.String[] |
RESP_TYPE_LONGSTRS
Longer versions of strings for 'responseType' (-r) parameter. |
static java.lang.String[] |
RESP_TYPE_STRS
Strings for 'responseType' (-r) parameter. |
protected CfgPropItem |
responseTypeProp
Type of response output, AP (amp/phase) or CS (complex-spectra). |
protected int |
respTypeIndex
|
static java.lang.String |
REVISION_STR
Displayed program revision string (name + version #). |
protected boolean |
showInputFlag
|
protected CfgPropItem |
showInputFlagProp
Flag set true to show RESP input text (sent to stdout). |
protected java.lang.String[] |
siteNamesArray
|
protected CfgPropItem |
stageNumbersProp
Start and stop stage numbers to be processed (this parameter contains two integer values). |
protected java.lang.String[] |
staNamesArray
|
protected int |
startStageNum
|
protected boolean |
stdioFlag
|
protected CfgPropItem |
stdioFlagProp
Flag set true to use 'stdio' for input and output (pipe). |
protected int |
stopStageNum
|
protected static java.text.DateFormat |
timeFmtObj
|
protected CfgPropItem |
timeOfDayProp
Requested time of day of response to search for (HH:MM:SS). |
protected boolean |
totalSensitFlag
|
protected CfgPropItem |
totalSensitFlagProp
Flag set true to use stage 0 sensitivity instead of computed. |
static java.lang.String[] |
TYPE_SPACE_LONGSTRS
Longer versions of strings for 'typeOfSpacing' (-s) parameter. |
static java.lang.String[] |
TYPE_SPACE_STRS
Strings for 'typeOfSpacing' (-s) parameter. |
protected CfgPropItem |
typeOfSpacingProp
Type of frequency spacing, LOG or LIN. |
static int |
UNIT_CONV_DEFIDX
Default index value for 'outUnitsConv' (-u) parameter. |
static java.lang.String[] |
UNIT_CONV_LONGSTRS
Longer versions of strings for the 'outUnitsConv' (-u) parameter. |
static java.lang.String[] |
UNIT_CONV_STRS
Strings for the 'outUnitsConv' (-u) parameter. |
protected boolean |
unwrapPhaseFlag
|
protected CfgPropItem |
unwrapPhaseFlagProp
Flag set true to unwrap phase output values. |
protected boolean |
useDelayFlag
|
protected CfgPropItem |
useDelayFlagProp
Flag set true to use estimated delay in phase calculation. |
protected static java.lang.String |
VER1_STR
|
protected static java.lang.String |
VER2_STR
|
protected boolean |
verboseFlag
|
protected CfgPropItem |
verboseFlagProp
Flag set true to send verbose messages to 'stderr'. |
static java.lang.String |
VERSION_NUM_STR
Displayed program version # (+"(file)" if files-only version). |
Constructor Summary | |
---|---|
Run()
Constructs a 'Run' object that may be used to process parameters and generate output. |
|
Run(java.lang.String[] args)
Constructs a 'Run' object that processes parameters, performs requested operations and generates output. |
Method Summary | |
---|---|
static boolean |
addTimeToCalendar(java.util.Calendar calObj,
java.lang.String timeStr)
Enters the interpreted value of the given 'time' string into the given Calendar object. |
protected boolean |
checkWebServicesServer()
Checks if the 'propsFileString' variable or the file it references specifies the URL of a web-services server. |
void |
clearErrorMessage()
Clears the error message string. |
protected void |
enterStartStopStageNums(java.lang.Integer startIntObj,
java.lang.Integer stopIntObj)
Enters the given start/stop stage numbers. |
protected boolean |
generateNetResponses(RespCallback respCallBackObj)
Generates responses via CORBA connection to a FISSURES server. |
protected boolean |
generateResponses(RespCallback respCallBackObj)
Generates responses from input files. |
protected boolean |
generateWebResponses(RespCallback respCallBackObj)
Generates responses via a web-services server. |
java.io.PrintStream |
getConsoleOut()
Get the console output. |
boolean |
getErrorFlag()
|
java.lang.String |
getErrorMessage()
|
int |
getExitStatusValue()
|
static java.lang.String[] |
listToStringArray(java.lang.String str)
Converts the given comma-separated String of items to an array of Strings with each element containing one item. |
static void |
main(java.lang.String[] args)
Program entry point; creates a 'Run' object, performs operations and exits with a status code (non-zero means error). |
static java.lang.String |
optionsArrToString(java.lang.String[] strArr)
Converts the given array of options strings to a displayable string. |
protected java.util.Vector |
preprocessParameters(java.lang.String[] args)
Loads and preprocesses the command-line parameters. |
boolean |
processAndOutput(java.lang.String[] args)
Processes parameters, performs requested operations and generates the output. |
protected boolean |
processNonSwitchParams(java.util.Vector paramsVec)
Processes the non-switch parameters that were given on the command line. |
protected boolean |
processSwitchParams()
Processes the switch parameters defined by the properties object. |
protected void |
setErr(int statusVal,
java.lang.String errMsgStr)
Sets the exit status code and message for an error exit from the program. |
protected void |
setErrorMessage(java.lang.String str)
Enters error message (if none previously entered). |
protected static java.lang.String |
unitInfoStr(edu.iris.Fissures.Unit unitObj)
|
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 PROGRAM_NAME
public static final java.lang.String VERSION_NUM_STR
public static final java.lang.String REVISION_STR
public static final java.lang.String[] UNIT_CONV_STRS
public static final int UNIT_CONV_DEFIDX
public static final java.lang.String[] UNIT_CONV_LONGSTRS
public static final java.lang.String[] TYPE_SPACE_STRS
public static final java.lang.String[] TYPE_SPACE_LONGSTRS
public static final java.lang.String[] RESP_TYPE_STRS
public static final java.lang.String[] RESP_TYPE_LONGSTRS
public static final int RESP_AP_TYPEIDX
public static final int RESP_CS_TYPEIDX
public static final int RESP_AP2_TYPEIDX
public static final int RESP_FAP_TYPEIDX
public static final double INTERP_TENSION_DEFVAL
public static final java.lang.String HDR_CMT_STR
protected static final java.lang.String VER1_STR
protected static final java.lang.String VER2_STR
protected static final java.text.DateFormat timeFmtObj
protected java.lang.String[] staNamesArray
protected java.lang.String[] chaNamesArray
protected java.lang.String[] netNamesArray
protected java.lang.String[] siteNamesArray
protected java.util.Calendar beginCalObj
protected java.util.Calendar endCalObj
protected boolean minimumFrequencyFlag
protected double minFreqValue
protected double maxFreqValue
protected int numberFreqs
protected boolean stdioFlag
protected int outUnitsConvIdx
protected double[] frequenciesArray
protected boolean multiOutFlag
protected boolean multiSvrFlag
protected boolean headerFlag
protected boolean verboseFlag
protected boolean debugFlag
protected int startStageNum
protected int stopStageNum
protected boolean logSpacingFlag
protected boolean useDelayFlag
protected boolean showInputFlag
protected boolean listInterpOutFlag
protected boolean listInterpInFlag
protected double listInterpTension
protected boolean unwrapPhaseFlag
protected boolean totalSensitFlag
protected double b62XValue
protected int respTypeIndex
protected java.lang.String fileNameString
protected java.lang.String propsFileString
protected java.io.File outputDirectory
protected int exitStatusValue
protected java.lang.String errorMessage
protected final CfgProperties paramProps
protected final CfgPropItem fileNameProp
protected final CfgPropItem propsFileProp
protected final CfgPropItem outUnitsConvProp
protected final CfgPropItem timeOfDayProp
protected final CfgPropItem typeOfSpacingProp
protected final CfgPropItem networkIdProp
protected final CfgPropItem locationIdProp
protected final CfgPropItem responseTypeProp
protected final CfgPropItem stageNumbersProp
protected final CfgPropItem stdioFlagProp
protected final CfgPropItem multiOutFlagProp
protected final CfgPropItem multiSvrFlagProp
protected final CfgPropItem endYearProp
protected final CfgPropItem endDayProp
protected final CfgPropItem endTimeProp
protected final CfgPropItem headerFlagProp
protected final CfgPropItem verboseFlagProp
protected final CfgPropItem outputDirectoryProp
protected final CfgPropItem useDelayFlagProp
protected final CfgPropItem showInputFlagProp
protected final CfgPropItem interpListFlagProp
protected final CfgPropItem interpInputFlagProp
protected final CfgPropItem interpTensionProp
protected final CfgPropItem unwrapPhaseFlagProp
protected final CfgPropItem totalSensitFlagProp
protected final CfgPropItem b62XValueProp
protected final CfgPropItem debugFlagProp
Constructor Detail |
---|
public Run(java.lang.String[] args)
args
- an array of command-line parameters.public Run()
Method Detail |
---|
public java.io.PrintStream getConsoleOut()
public boolean processAndOutput(java.lang.String[] args)
args
- an array of command-line parameters.
protected boolean checkWebServicesServer()
protected java.util.Vector preprocessParameters(java.lang.String[] args)
args
- an array of command-line parameters.
protected boolean processNonSwitchParams(java.util.Vector paramsVec)
paramsVec
- a Vector of Strings, 1 for each non-switch
parameter.
protected boolean processSwitchParams()
protected boolean generateResponses(RespCallback respCallBackObj)
respCallBackObj
- a 'RespCallback' object whose 'responseInfo()'
method will be called to report on each response found.
protected boolean generateNetResponses(RespCallback respCallBackObj)
respCallBackObj
- a 'RespCallback' object whose 'responseInfo()'
method will be called to report on each response found.
protected boolean generateWebResponses(RespCallback respCallBackObj)
respCallBackObj
- a 'RespCallback' object whose 'responseInfo()'
method will be called to report on each response found.
protected void enterStartStopStageNums(java.lang.Integer startIntObj, java.lang.Integer stopIntObj)
startIntObj
- Integer object holding the start-stage value, or
null or -1 for none.stopIntObj
- Integer object holding the stop-stage value, or
null or -1 for none.protected void setErrorMessage(java.lang.String str)
str
- error message stringpublic boolean getErrorFlag()
public java.lang.String getErrorMessage()
public void clearErrorMessage()
protected void setErr(int statusVal, java.lang.String errMsgStr)
statusVal
- exit status value to be returned by program.errMsgStr
- if specified then the error message to be sent
to 'stderr'.public int getExitStatusValue()
public static java.lang.String[] listToStringArray(java.lang.String str)
str
- string
public static java.lang.String optionsArrToString(java.lang.String[] strArr)
strArr
- array of strings
public static boolean addTimeToCalendar(java.util.Calendar calObj, java.lang.String timeStr)
timeStr
- a time string value in "HH:MM:SS", "HH:MM" or
"HH" format.calObj
- a Calendar object to be modified.
protected static java.lang.String unitInfoStr(edu.iris.Fissures.Unit unitObj)
unitObj
- unit object
public static void main(java.lang.String[] args)
args
- program arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |