Package IshmaelDetector
Class IshPeakProcess
java.lang.Object
PamguardMVC.PamProcess
IshmaelDetector.IshPeakProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
Generic process which picks a peak from any of the Ishmael detectors, e.g.
energy sum, spectral template etc.
Note: Variables named xxN are time in units of number of FFT bins. Variables xxSam are variables in units of raw samples.
- Author:
- Dave Mellinger and Hisham Qayum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gte all channels used- these are NOT the actiuve channelsvoid
newData
(PamObservable o, PamDataUnit arg1) 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
void
setParentDataBlock
(PamDataBlock newParentDataBlock) Set a parent data block with the default options of rethreading if setvoid
setSampleRate
(float sampleRate, boolean notify) New sample ratevoid
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, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData
-
Field Details
-
defaultSymbol
-
-
Constructor Details
-
IshPeakProcess
-
-
Method Details
-
setParentDataBlock
Description copied from class:PamProcess
Set a parent data block with the default options of rethreading if set- Overrides:
setParentDataBlock
in classPamProcess
- Parameters:
newParentDataBlock
- source data block.
-
getChannelMap
public int getChannelMap()Gte all channels used- these are NOT the actiuve channels- Returns:
- the active channels.
-
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserver
New sample rate- Specified by:
setSampleRate
in interfacePamObserver
- Overrides:
setSampleRate
in classPamProcess
- Parameters:
notify
- Notify other PamObservers and PamObservables in the chain.
-
setupConnections
public void setupConnections() -
prepareForRun
public void prepareForRun() -
newData
- Overrides:
newData
in classPamProcess
-
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 classPamProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
getOutputDataBlock
-