Package IshmaelDetector
Class MatchFiltProcess2
java.lang.Object
PamguardMVC.PamProcess
IshmaelDetector.IshDetFnProcess
IshmaelDetector.MatchFiltProcess2
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Constructor Summary
ConstructorDescriptionMatchFiltProcess2
(MatchFiltControl matchFiltControl, PamDataBlock parentDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
void
newData
(PamObservable o, PamDataUnit arg) void
pamStart()
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).void
pamStop()
Stops the process.void
Get a new IshDetDataUnit suitable for holding output data.boolean
New version of prepareProcess which get's called from PAMController prior to PAMGuard starting up.Methods inherited from class IshmaelDetector.IshDetFnProcess
getChannelMap, getInputDataBlock, getOutputDataBlock, getOutputDataUnit, setSampleRate, setupConnections
Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData
-
Constructor Details
-
MatchFiltProcess2
-
-
Method Details
-
prepareProcess
public void prepareProcess()Description copied from class:IshDetFnProcess
Get a new IshDetDataUnit suitable for holding output data. This code was copied from PamFFTProcess.newData() and modified.- Overrides:
prepareProcess
in classIshDetFnProcess
-
prepareProcessOK
public boolean prepareProcessOK()Description copied from class:PamProcess
New version of prepareProcess which get's called from PAMController prior to PAMGuard starting up. If a single process returns false from this function, startup will be aborted.For backwards compatibility (to save the need to modify every process) there is a default function which simply calls the older prepareProcess() function, then return true, but processes which might fail can override this and return false instead if they so wish.
Initial motivation for this function was to stop millions of empty files being created when the watchdog is running but the DAQ can't start.
- Overrides:
prepareProcessOK
in classPamProcess
- Returns:
- true if it's looking highly likely that the process is going to start OK.
-
newData
- Overrides:
newData
in classPamProcess
-
getLongName
- Specified by:
getLongName
in classIshDetFnProcess
-
getNumberName
-
inputDataClass
- Specified by:
inputDataClass
in classIshDetFnProcess
-
getDetSampleRate
public float getDetSampleRate()- Specified by:
getDetSampleRate
in classIshDetFnProcess
-
getHiFreq
public float getHiFreq()- Specified by:
getHiFreq
in classIshDetFnProcess
- Returns:
- the highest frequency of the detection - e.g. sampleRate/2 or the upper bound of the detection kernel
-
getLoFreq
public float getLoFreq()- Specified by:
getLoFreq
in classIshDetFnProcess
- Returns:
- the lowest frequency of the detection - e.g. 0 or the lower bound of the detection kernel
-
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).- Overrides:
pamStart
in classIshDetFnProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Overrides:
pamStop
in classIshDetFnProcess
-