IshmaelDetector
Class IshPeakProcess

java.lang.Object
  extended by PamguardMVC.PamProcess
      extended by IshmaelDetector.IshPeakProcess
All Implemented Interfaces:
Annotator, PamObserver

public class IshPeakProcess
extends PamProcess


Nested Class Summary
private  class IshPeakProcess.PerChannelInfo
           
 
Field Summary
(package private)  IshDetControl ishDetControl
           
(package private)  long minTimeN
           
(package private)  double[] outData
           
(package private)  PamDataBlock<IshDetection> outputDataBlock
           
(package private)  IshPeakProcess.PerChannelInfo[] perChannelInfo
           
(package private)  long refractoryTimeN
           
(package private)  int savedFftLength
           
 
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, processName, sampleRate
 
Constructor Summary
IshPeakProcess(IshDetControl ishDetControl, PamDataBlock parentDataBlock)
           
 
Method Summary
 int getChannelMap()
           
 void 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 prepareForRun()
           
protected  void prepareMyParams()
          Calculate any subsidiary values needed for processing.
 void setParentDataBlock(PamDataBlock newParentDataBlock)
          Set a parent data block with the default options of rethreading if set
 void setSampleRate(float sampleRate, boolean notify)
          New sample rate
 void setupConnections()
           
 
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, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcess, relMillisecondsToSamples, relSamplesToMilliseconds, removeObservable, removeOutputDatablock, saveViewerData, setBackendProcess, setCanMultiThread, setParentDataBlock, setProcessName, setupProcess, toString, update, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ishDetControl

IshDetControl ishDetControl

outputDataBlock

PamDataBlock<IshDetection> outputDataBlock

savedFftLength

int savedFftLength

outData

double[] outData

minTimeN

long minTimeN

refractoryTimeN

long refractoryTimeN

perChannelInfo

IshPeakProcess.PerChannelInfo[] perChannelInfo
Constructor Detail

IshPeakProcess

public IshPeakProcess(IshDetControl ishDetControl,
                      PamDataBlock parentDataBlock)
Method Detail

setParentDataBlock

public void setParentDataBlock(PamDataBlock newParentDataBlock)
Description copied from class: PamProcess
Set a parent data block with the default options of rethreading if set

Overrides:
setParentDataBlock in class PamProcess
Parameters:
newParentDataBlock - source data block.

getChannelMap

public int getChannelMap()

setSampleRate

public void setSampleRate(float sampleRate,
                          boolean notify)
Description copied from interface: PamObserver
New sample rate

Specified by:
setSampleRate in interface PamObserver
Overrides:
setSampleRate in class PamProcess
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

public void newData(PamObservable o,
                    PamDataUnit arg1)
Overrides:
newData in class PamProcess

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