Package gpl

Class GPLProcess

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class GPLProcess extends PamBlockProcess
  • Field Details

    • blockModes

      public static BlockMode[] blockModes
    • binLo

      public int binLo
    • binHi

      public int binHi
    • sum_binLo

      public int sum_binLo
    • sum_binHi

      public int sum_binHi
  • Constructor Details

  • Method Details

    • getBlockParams

      public PamBlockParams getBlockParams()
      Specified by:
      getBlockParams in class PamBlockProcess
    • setBlockState

      public void setBlockState(BlockState state)
      Description copied from class: PamBlockProcess
      Set the block state - tell it what to expect next so that it can clean up at the start middle and end of a block of data.
      Specified by:
      setBlockState in class PamBlockProcess
    • addBlockData

      public void addBlockData(PamBlockDataList blockDataList)
      Description copied from class: PamBlockProcess
      Called in sequence for data in a block so it can make background measurements
      Specified by:
      addBlockData in class PamBlockProcess
      Parameters:
      blockDataList - blocked list of data units (possibly interleaved by channel)
    • addSingleData

      public void addSingleData(PamObservable o, PamDataUnit dataUnit)
      Description copied from class: PamBlockProcess
      Called in sequence for data in a block so it can run detectors
      Specified by:
      addSingleData in class PamBlockProcess
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Overrides:
      notifyModelChanged in class PamProcess
    • prepareProcess

      public void prepareProcess()
      Description copied from class: PamProcess
      Called for each process before any of them receive the PamStart command
      Overrides:
      prepareProcess in class PamProcess
    • 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:
      notify - Notify other PamObservers and PamObservables in the chain.
    • getGplControlledUnit

      public GPLControlledUnit getGplControlledUnit()
      Returns:
      the gplControlledUnit
    • getWhitenedSpectrogram

      public FFTDataBlock getWhitenedSpectrogram()
      Returns:
      the whitenedSpectrogram
    • getFrequencyRange

      public double[] getFrequencyRange()
      Description copied from class: PamProcess
      Get the range of frequencies over which the data in this process are likely to be present. Note that this is pretty crude and may not reflect the true range, for example, the click detector will return the limits of it's trigger filter, and there are plenty of sounds outside of that range which may have most of their energy well outside of the trigger range of the detector.
      Overrides:
      getFrequencyRange in class PamProcess
      Returns:
      Nominal frequency range for data in this block.
    • getStateDataBlock

      public GPLStateDataBlock getStateDataBlock()
      Returns:
      the stateDataBlock
    • getSourceFFTData

      public FFTDataBlock getSourceFFTData()
      Returns:
      the sourceFFTData
    • getSourceFFTLength

      public int getSourceFFTLength()