Class LikelihoodFFTController

java.lang.Object
PamController.PamControlledUnit
likelihoodDetectionModule.LikelihoodFFTController
All Implemented Interfaces:
SettingsNameProvider

public class LikelihoodFFTController extends PamControlledUnit
The class LikelihoodFFTController manages the automatic creation of any FFT processes that are required to support the target configurations. It will search out in the PamGuard system for existing FFT processes that have parameters that match what is required, but if it doesn't find any it will create one of its own FFT processes to manage one or more processing streams. In order for the object to be able to add new processes to the PamGuard system, it has to inherit the PamControlledUnit interface.
  • Constructor Details

    • LikelihoodFFTController

      public LikelihoodFFTController(String controllerName, PamRawDataBlock block)
      Instantiates a new likelihood fft controller.
      Parameters:
      controllerName - the controller name
      block - the block of raw audio data that the new fft processes will subscribe to
  • Method Details

    • createFFTProcess

      public void createFFTProcess(LikelihoodFFTParameters params)
      Request the controller to crete a new fft process based on the specified parameters.
      Parameters:
      params - The required parameters.
    • getProcess

      public LikelihoodFFTProcess getProcess(LikelihoodFFTParameters params)
      Get an fft process that matches the supplied parameters.
      Parameters:
      params - The parameters for which an fft process is requested.
      Returns:
      The matching fft process, or null if a match is not found.
    • removeAllFFTProcesses

      public void removeAllFFTProcesses()
      Removes the all fft processes.
    • markFFTProcessesUnused

      public void markFFTProcessesUnused()
      Mark fft processes unused.
    • removeUnusedProcesses

      public void removeUnusedProcesses()
      Removes the unused processes.