|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.isti.jevalresp.CallbackProcWrite
public class CallbackProcWrite
Class CallbackProcWrite implements a callback method that processes and writes the output of a response.
Field Summary | |
---|---|
protected double |
b62XValue
|
protected double[] |
freqArr
|
protected boolean |
listInterpInFlag
|
protected boolean |
listInterpOutFlag
|
protected double |
listInterpTension
|
protected boolean |
logSpacingFlag
|
protected java.io.PrintStream |
outStm
|
protected int |
outUnitsConvIdx
|
protected java.lang.String |
prevFileName
|
protected RespProcessor |
respProcObj
|
protected int |
respTypeIndex
|
protected boolean |
showInputFlag
|
protected int |
startStageNum
|
protected boolean |
stdioFlag
|
protected int |
stopStageNum
|
protected boolean |
totalSensitFlag
|
protected boolean |
unwrapPhaseFlag
|
protected boolean |
useDelayFlag
|
protected boolean |
verboseFlag
|
Constructor Summary | |
---|---|
CallbackProcWrite(int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
boolean unwrapPhaseFlag,
boolean totalSensitFlag,
double b62XValue,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
boolean unwrapPhaseFlag,
boolean totalSensitFlag,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(RespProcessor respProcObj,
int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
boolean unwrapPhaseFlag,
boolean totalSensitFlag,
double b62XValue,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(RespProcessor respProcObj,
int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
boolean unwrapPhaseFlag,
boolean totalSensitFlag,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(RespProcessor respProcObj,
int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
boolean listInterpOutFlag,
boolean listInterpInFlag,
double listInterpTension,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(RespProcessor respProcObj,
int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
boolean useDelayFlag,
boolean showInputFlag,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
|
CallbackProcWrite(RespProcessor respProcObj,
int outUnitsConvIdx,
double[] freqArr,
boolean logSpacingFlag,
boolean verboseFlag,
int startStageNum,
int stopStageNum,
int respTypeIndex,
boolean stdioFlag,
java.io.PrintStream outStm)
Constructs a response processing callback object. |
Method Summary | |
---|---|
protected boolean |
generateOutput(OutputGenerator outGenObj,
edu.iris.Fissures.IfNetwork.ChannelId channelIdObj,
java.util.Date respEndDateObj,
java.lang.String channelIdFName)
Generates the output. |
protected void |
outStmPrintln(java.lang.String str)
Sends string to 'outStm'. |
boolean |
responseInfo(java.lang.String fileName,
edu.iris.Fissures.IfNetwork.ChannelId channelIdObj,
java.util.Date respEndDateObj,
java.lang.String channelIdFName,
edu.iris.Fissures.IfNetwork.Response respObj,
java.lang.String errMsgStr)
Processes and writes the output of the given response. |
void |
setRespProcObj(RespProcessor respProcObj)
Sets the 'RespProcessor' object to be used. |
void |
showInfoMessage(java.lang.String msgStr)
Shows the given informational message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RespProcessor respProcObj
protected final int outUnitsConvIdx
protected final double[] freqArr
protected final boolean logSpacingFlag
protected final boolean verboseFlag
protected final int startStageNum
protected final int stopStageNum
protected final boolean useDelayFlag
protected final boolean showInputFlag
protected final boolean listInterpOutFlag
protected final boolean listInterpInFlag
protected final double listInterpTension
protected boolean unwrapPhaseFlag
protected final boolean totalSensitFlag
protected final double b62XValue
protected final int respTypeIndex
protected final boolean stdioFlag
protected final java.io.PrintStream outStm
protected java.lang.String prevFileName
Constructor Detail |
---|
public CallbackProcWrite(RespProcessor respProcObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, boolean unwrapPhaseFlag, boolean totalSensitFlag, double b62XValue, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
respProcObj
- the "RespProcessor' object being used.outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.unwrapPhaseFlag
- true to unwrap phase output values.totalSensitFlag
- true to use stage 0 (total) sensitivity;
false to use computed sensitivity.b62XValue
- sample value for polynomial blockette (62).respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(RespProcessor respProcObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, boolean unwrapPhaseFlag, boolean totalSensitFlag, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
respProcObj
- the "RespProcessor' object being used.outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.unwrapPhaseFlag
- true to unwrap phase output values.totalSensitFlag
- true to use stage 0 (total) sensitivity;
false to use computed sensitivity.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(RespProcessor respProcObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
respProcObj
- the "RespProcessor' object being used.outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(RespProcessor respProcObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
respProcObj
- the "RespProcessor' object being used.outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, boolean unwrapPhaseFlag, boolean totalSensitFlag, double b62XValue, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.unwrapPhaseFlag
- true to unwrap phase output values.totalSensitFlag
- true to use stage 0 (total) sensitivity;
false to use computed sensitivity.b62XValue
- sample value for polynomial blockette (62).respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, boolean listInterpOutFlag, boolean listInterpInFlag, double listInterpTension, boolean unwrapPhaseFlag, boolean totalSensitFlag, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).listInterpOutFlag
- true to interpolate amp/phase output
from responses containing List blockettes.listInterpInFlag
- true to interpolate amp/phase input from
List blockettes in responses (before output is calculated).listInterpTension
- tension value for List-blockette
interpolation algorithm.unwrapPhaseFlag
- true to unwrap phase output values.totalSensitFlag
- true to use stage 0 (total) sensitivity;
false to use computed sensitivity.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.useDelayFlag
- true to use estimated delay in phase calculation.showInputFlag
- true to show RESP input text (sent to stdout).respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(RespProcessor respProcObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
respProcObj
- the "RespProcessor' object being used.outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.public CallbackProcWrite(int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm)
outUnitsConvIdx
- output units conversion index for the
requested output units type; one of the '..._UNIT_CONV' values.freqArr
- an array of frequency values to use.logSpacingFlag
- true to indicate that the frequency spacing
is logarithmic; false to indicate linear spacing.verboseFlag
- true for verbose output messages.startStageNum
- if greater than zero then the start of the
range of stage sequence numbers to use, otherwise all stages
are used.stopStageNum
- if greater than zero then the end of the
range of stage sequence numbers to use, otherwise only the single
stage specified by 'startStageNum' is used.respTypeIndex
- index value indicating type of output (separate
amp/phase file, complex-spectra file or single amp/phase file).stdioFlag
- true for output to 'stdout', false for output
to file(s).outStm
- output stream for messages to be sent to (usually
'System.err'), or null for no messages.Method Detail |
---|
public void setRespProcObj(RespProcessor respProcObj)
setRespProcObj
in interface RespCallback
respProcObj
- the "RespProcessor' object being used.public boolean responseInfo(java.lang.String fileName, edu.iris.Fissures.IfNetwork.ChannelId channelIdObj, java.util.Date respEndDateObj, java.lang.String channelIdFName, edu.iris.Fissures.IfNetwork.Response respObj, java.lang.String errMsgStr)
responseInfo
in interface RespCallback
fileName
- the name of source file for the response.channelIdObj
- the channel ID associated with the response, or
null if a channel ID was not found.respEndDateObj
- end date for channel ID, or null if a channel ID
was not found.channelIdFName
- a string version of the channel ID associated
with the response, or null if a channel ID was not found.respObj
- the response information, or null if a channel ID
was not found (error message in 'errMsgStr').errMsgStr
- if 'channelIdObj' or 'respObj' is null then
'errMsgStr' contains an error message string; otherwise null.
protected boolean generateOutput(OutputGenerator outGenObj, edu.iris.Fissures.IfNetwork.ChannelId channelIdObj, java.util.Date respEndDateObj, java.lang.String channelIdFName)
outGenObj
- the 'OutputGenerator' object to use.channelIdObj
- the channel ID object to use.respEndDateObj
- end date object to use.channelIdFName
- the output filename to use.
public void showInfoMessage(java.lang.String msgStr)
showInfoMessage
in interface RespCallback
msgStr
- message stringprotected void outStmPrintln(java.lang.String str)
str
- string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |