Package gpl

Class GPLProcess

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class GPLProcess extends PamBlockProcess
  • Field Details Link icon

    • blockModes Link icon

      public static BlockMode[] blockModes
    • binLo Link icon

      public int binLo
    • binHi Link icon

      public int binHi
    • sum_binLo Link icon

      public int sum_binLo
    • sum_binHi Link icon

      public int sum_binHi
  • Constructor Details Link icon

  • Method Details Link icon

    • getBlockParams Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

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

      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 Link icon

      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 Link icon

      public GPLControlledUnit getGplControlledUnit()
      Returns:
      the gplControlledUnit
    • getWhitenedSpectrogram Link icon

      public FFTDataBlock getWhitenedSpectrogram()
      Returns:
      the whitenedSpectrogram
    • getFrequencyRange Link icon

      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 Link icon

      public GPLStateDataBlock getStateDataBlock()
      Returns:
      the stateDataBlock
    • getSourceFFTData Link icon

      public FFTDataBlock getSourceFFTData()
      Returns:
      the sourceFFTData
    • getSourceFFTLength Link icon

      public int getSourceFFTLength()