seismicVeto
Class VetoProcess
java.lang.Object
PamguardMVC.PamProcess
seismicVeto.VetoProcess
- All Implemented Interfaces:
- Annotator, PamObserver
public class VetoProcess
- extends PamProcess
|
Nested Class Summary |
(package private) class |
VetoProcess.ChannelDetector
Since the detector may be running on several channels, make a sub class for the actual detector
code so that multiple instances may be created. |
| Methods inherited from class PamguardMVC.PamProcess |
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, fillXMLParameters, getAncestorDataBlock, getAnnotation, getBackendProcess, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, notifyModelChanged, relMillisecondsToSamples, relSamplesToMilliseconds, removeObservable, removeOutputDatablock, saveViewerData, setBackendProcess, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setSampleRate, setupProcess, toString, update, updateData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
vetoController
VetoController vetoController
rawOutputData
PamRawDataBlock rawOutputData
rawInputData
PamRawDataBlock rawInputData
fftOutputData
FFTDataBlock fftOutputData
fftInputData
FFTDataBlock fftInputData
vetoOutputData
PamDataBlock<VetoDataUnit> vetoOutputData
backgroundDataBlock
PamDataBlock<VetoBackgroundDataUnit> backgroundDataBlock
channelDetectors
VetoProcess.ChannelDetector[] channelDetectors
bin1
private int bin1
bin2
private int bin2
thresholdRatio
private double thresholdRatio
backgroundUpdateConstant1
private double backgroundUpdateConstant1
backgroundUpdateConstant
private double backgroundUpdateConstant
daqProcess
AcquisitionProcess daqProcess
vetoStartTime
private long[] vetoStartTime
vetoEndTime
private long[] vetoEndTime
vetoPreSamples
private long vetoPreSamples
vetoPostSamples
private long vetoPostSamples
fastFFT
private FastFFT fastFFT
NRANDOMSAMPLES
private static final int NRANDOMSAMPLES
- See Also:
- Constant Field Values
r
java.util.Random r
outputCount
int outputCount
VetoProcess
public VetoProcess(VetoController vetoController)
pamStart
public void pamStart()
- Description copied from class:
PamProcess
- Called for each process to tell it to start (may not be necessary for
processes which are listening for data anyway.
- Specified by:
pamStart in class PamProcess
pamStop
public void pamStop()
- Description copied from class:
PamProcess
- Stops the process.
- Specified by:
pamStop in class PamProcess
prepareProcess
public void prepareProcess()
- Description copied from class:
PamProcess
- Called for each process before any of them receive the PamStart command
- Overrides:
prepareProcess in class PamProcess
noteNewSettings
public void noteNewSettings()
- Specified by:
noteNewSettings in interface PamObserver- Overrides:
noteNewSettings in class PamProcess
useNewParams
public void useNewParams()
clearVetos
private void clearVetos()
clearVeto
private void clearVeto(int channel,
long sampleTime)
clearVeto
private void clearVeto(long sampleTime)
isVetoed
private boolean isVetoed(int channel,
long sampleNumber)
clearVeto
private void clearVeto(int channel)
setVetoTimes
private void setVetoTimes(int channel,
long signalTime)
getRequiredDataHistory
public long getRequiredDataHistory(PamObservable o,
java.lang.Object arg)
- Specified by:
getRequiredDataHistory in interface PamObserver- Overrides:
getRequiredDataHistory in class PamProcess
- Parameters:
o - PamObservable class requiring the dataarg - optional argument from PamObservable
- Returns:
- time in milliseconds requried by data held in PamObservable
newData
public void newData(PamObservable o,
PamDataUnit arg)
- Overrides:
newData in class PamProcess
newRawData
private void newRawData(PamObservable o,
PamDataUnit arg)
newFFTData
private void newFFTData(PamObservable o,
PamDataUnit arg)
getFftHop
public int getFftHop()
getFftLength
public int getFftLength()
getFftInputData
public FFTDataBlock getFftInputData()
getFftOutputData
public FFTDataBlock getFftOutputData()
getRawInputData
public PamRawDataBlock getRawInputData()
getRawOutputData
public PamRawDataBlock getRawOutputData()