Package likelihoodDetectionModule
Class LikelihoodFFTController
java.lang.Object
PamController.PamControlledUnit
likelihoodDetectionModule.LikelihoodFFTController
- All Implemented Interfaces:
SettingsNameProvider
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 Summary
ConstructorDescriptionLikelihoodFFTController
(String controllerName, PamRawDataBlock block) Instantiates a new likelihood fft controller. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Request the controller to crete a new fft process based on the specified parameters.getProcess
(LikelihoodFFTParameters params) Get an fft process that matches the supplied parameters.void
Mark fft processes unused.void
Removes the all fft processes.void
Removes the unused processes.Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, flushDataBlockBuffers, getBackupInformation, getFrameNumber, getGUI, getGuiFrame, getInstanceIndex, getModuleStatus, getModuleStatusManager, getModuleSummary, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineState, getOfflineTaskGroup, getPamConfiguration, getPamController, getPamModuleInfo, getPamProcess, getPamView, getPlugin, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, notifyModelChanged, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toString
-
Constructor Details
-
LikelihoodFFTController
Instantiates a new likelihood fft controller.- Parameters:
controllerName
- the controller nameblock
- the block of raw audio data that the new fft processes will subscribe to
-
-
Method Details
-
createFFTProcess
Request the controller to crete a new fft process based on the specified parameters.- Parameters:
params
- The required parameters.
-
getProcess
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.
-