Class SimpleClickDataBlock

java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<SimpleClick>
clickTrainDetector.clickTrainAlgorithms.mht.test.SimpleClickDataBlock

public class SimpleClickDataBlock extends PamDataBlock<SimpleClick>
Simple data block for clicks
Author:
Jamie Macaulay
  • Field Details

    • defaultSR

      public static float defaultSR
      The default samplerate.
    • sR

      public float sR
      The sample rate to use.
  • Constructor Details

    • SimpleClickDataBlock

      public SimpleClickDataBlock()
  • Method Details

    • addPamData

      public void addPamData(ArrayList<SimpleClick> simpleClicks)
      Add a list of simple clicks to the data block.
      Parameters:
      simpleClicks - - simple clicks to add.
    • getSampleRate

      public float getSampleRate()
      Overrides:
      getSampleRate in class PamDataBlock<SimpleClick>
      Returns:
      The sample rate of the data contained in the block
    • setSampleRate

      public void setSampleRate(float sR, boolean notify)
      Description copied from class: PamDataBlock
      Sets the sample rate for the block (e.g. call this after opening a sound file and reading the sample rate from the file header or after altering sound card settings). All observers of this block (PamProcesses and some views) are notified, they in turn should tell their own output PamDataBlocks about the change.
      Overrides:
      setSampleRate in class PamDataBlock<SimpleClick>
      Parameters:
      sR - The new sample rate in Hz.
      notify - set true if Observers should be notified