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
FieldsFields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintGte all channels used- these are NOT the actiuve channelsvoidnewData(PamObservable o, PamDataUnit arg1) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidprotected voidCalculate any subsidiary values needed for processing.voidsetParentDataBlock(PamDataBlock newParentDataBlock) Set a parent data block with the default options of rethreading if setvoidsetSampleRate(float sampleRate, boolean notify) New sample ratevoidMethods 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:PamProcessSet a parent data block with the default options of rethreading if set- Overrides:
 setParentDataBlockin 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:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Overrides:
 setSampleRatein classPamProcess- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
setupConnections
public void setupConnections() - 
prepareMyParams
protected void prepareMyParams()Calculate any subsidiary values needed for processing. These get recalculated whenever the sample rate changes (via setSampleRate, which is also called after the params dialog box closes). - 
prepareForRun
public void prepareForRun() - 
newData
- Overrides:
 newDatain classPamProcess
 - 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
getOutputDataBlock
 
 -