Package PamguardMVC

Class AcousticDataBlock<Tunit extends PamDataUnit>

java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<Tunit>
PamguardMVC.AcousticDataBlock<Tunit>
Type Parameters:
Tunit -
Direct Known Subclasses:
AbstractWhistleDataBlock, ClickDataBlock, ClickGroupDataBlock, ClipDisplayDataBlock, CPODClickDataBlock, DataBlock2D, GPLDetectionBlock, PamRawDataBlock

public abstract class AcousticDataBlock<Tunit extends PamDataUnit> extends PamDataBlock<Tunit>
Class for all PAMGAURD data based on acoustic types of data, i.e. data which have a sample number (so not NMEA data, depth data, visual data, etc, but raw data, FFT data, detections, etc.).

Includes some functions to relate channel numbers to hydrophone numbers (which are messed up in the decimator) and functions to turn amplitudes from raw units into dB re 1 mu Pa.

Author:
Doug Gillespie
  • Constructor Details

    • AcousticDataBlock

      public AcousticDataBlock(Class unitClass, String dataName, PamProcess parentProcess, int channelMap)
  • Method Details

    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Description copied from class: PamDataBlock
      Receive notifications from the main PamController.
      Overrides:
      notifyModelChanged in class PamDataBlock<Tunit extends PamDataUnit>
      Parameters:
      changeType -
    • findParentSource

      protected void findParentSource()
    • prepareAmplitudeCalculations

      protected void prepareAmplitudeCalculations()
    • prepareChannelLists

      protected void prepareChannelLists()
    • getChannelListManager

      public ChannelListManager getChannelListManager()
    • getParentSourceData

      public AcousticDataBlock getParentSourceData()
    • getDataBlockXML

      public Element getDataBlockXML(Document doc)
      Description copied from class: PamDataBlock
      Get a brief summary of datablock to include in XML descriptions. Basic output is very simple. Expect other datablock to extend this by adding additional attributes.
      Overrides:
      getDataBlockXML in class PamDataBlock<Tunit extends PamDataUnit>
      Parameters:
      doc -
      Returns:
      XML element with description of data.