Class IshPeakProcess

java.lang.Object
PamguardMVC.PamProcess
IshmaelDetector.IshPeakProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class IshPeakProcess extends PamProcess
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 Details

    • defaultSymbol

      public static final SymbolData defaultSymbol
  • Constructor Details

  • Method Details

    • 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()
      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 interface PamObserver
      Overrides:
      setSampleRate in class PamProcess
      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

      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
    • getOutputDataBlock

      public PamDataBlock getOutputDataBlock()