com.isti.jplotresp
Class CallbackProcPlot

java.lang.Object
  extended by com.isti.jevalresp.CallbackProcWrite
      extended by com.isti.jplotresp.CallbackProcPlot
All Implemented Interfaces:
RespCallback

public class CallbackProcPlot
extends CallbackProcWrite

Class CallbackProcPlot implements a callback method that processes and writes the output of a response.


Field Summary
protected  boolean generateCompletedFlag
           
protected  boolean generateResultFlag
           
protected  PlotDisplayOptionPanel globalPlotDisplayOptionPanelObj
           
protected  javax.swing.JTabbedPane tabbedPaneObj
           
 
Fields inherited from class com.isti.jevalresp.CallbackProcWrite
b62XValue, freqArr, listInterpInFlag, listInterpOutFlag, listInterpTension, logSpacingFlag, outStm, outUnitsConvIdx, prevFileName, respProcObj, respTypeIndex, showInputFlag, startStageNum, stdioFlag, stopStageNum, totalSensitFlag, unwrapPhaseFlag, useDelayFlag, verboseFlag
 
Constructor Summary
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, int outUnitsConvIdx, double[] freqArr, boolean logSpacingFlag, boolean verboseFlag, int startStageNum, int stopStageNum, boolean useDelayFlag, boolean showInputFlag, int respTypeIndex, boolean stdioFlag, java.io.PrintStream outStm, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj, 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, PlotDisplayOptionPanel plotDisplayOptionPanelObj)
          Constructs a response processing callback object.
 
Method Summary
protected  boolean doGenerateOutput(OutputGenerator outGenObj, edu.iris.Fissures.IfNetwork.ChannelId channelIdObj, java.util.Date respEndDateObj, java.lang.String channelIdFName)
          Generates the output.
protected  boolean generateOutput(OutputGenerator outGenObj, edu.iris.Fissures.IfNetwork.ChannelId channelIdObj, java.util.Date respEndDateObj, java.lang.String channelIdFName)
          Generates the output.
 
Methods inherited from class com.isti.jevalresp.CallbackProcWrite
outStmPrintln, responseInfo, setRespProcObj, showInfoMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tabbedPaneObj

protected final javax.swing.JTabbedPane tabbedPaneObj

globalPlotDisplayOptionPanelObj

protected final PlotDisplayOptionPanel globalPlotDisplayOptionPanelObj

generateCompletedFlag

protected boolean generateCompletedFlag

generateResultFlag

protected boolean generateResultFlag
Constructor Detail

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object. After using this constructor, the 'setRespProcObj()' must be called to setup the 'RespProcessor' object before this object is used.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object. After using this constructor, the 'setRespProcObj()' must be called to setup the 'RespProcessor' object before this object is used.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        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,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object. After using this constructor, the 'setRespProcObj()' must be called to setup the 'RespProcessor' object before this object is used.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.

CallbackProcPlot

public CallbackProcPlot(javax.swing.JTabbedPane tabbedPaneObj,
                        int outUnitsConvIdx,
                        double[] freqArr,
                        boolean logSpacingFlag,
                        boolean verboseFlag,
                        int startStageNum,
                        int stopStageNum,
                        boolean useDelayFlag,
                        boolean showInputFlag,
                        int respTypeIndex,
                        boolean stdioFlag,
                        java.io.PrintStream outStm,
                        PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Constructs a response processing callback object. After using this constructor, the 'setRespProcObj()' must be called to setup the 'RespProcessor' object before this object is used.

Parameters:
tabbedPaneObj - the tabbed pane host object.
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 for log frequency 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 console).
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.
plotDisplayOptionPanelObj - plot display option panel.
Method Detail

generateOutput

protected boolean generateOutput(OutputGenerator outGenObj,
                                 edu.iris.Fissures.IfNetwork.ChannelId channelIdObj,
                                 java.util.Date respEndDateObj,
                                 java.lang.String channelIdFName)
Generates the output.

Overrides:
generateOutput in class CallbackProcWrite
Parameters:
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.
Returns:
true if successful, false if error.

doGenerateOutput

protected boolean doGenerateOutput(OutputGenerator outGenObj,
                                   edu.iris.Fissures.IfNetwork.ChannelId channelIdObj,
                                   java.util.Date respEndDateObj,
                                   java.lang.String channelIdFName)
Generates the output.

Parameters:
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.
Returns:
true if successful, false if error.