|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamController.PamControlledUnit
likelihoodDetectionModule.LikelihoodDetectionUnit
public class LikelihoodDetectionUnit
The class LikelihoodDetectionUnit implements that standard PamControlledUnit functionality required by PamGuard for a plug-in module.
| Nested Class Summary | |
|---|---|
class |
LikelihoodDetectionUnit.ProcessGroup
The ProcessGroup objects is used by the controlling unit to keep track of one or more set of detection processes for a target configuration. |
(package private) class |
LikelihoodDetectionUnit.SettingsAction
The SettingsAction class is the action listener that is attached to the module's menu entry, and is invoked by PamGuard to allow the user to configure the module's parameters. |
| Field Summary | |
|---|---|
private static LikelihoodFFTController |
fftController
The fft controller for the module. |
private boolean |
firstNotification
A flag indicating whether the controller has received its first notification from the PamGuard system. |
private boolean |
isConfiguring
A flag indicating whether the controller is in the middle of configuring itself. |
private boolean |
isInitialized
A flag indicating whether the controller has been initialized. |
private LikelihoodDetectionParameters |
likelihoodDetectionParameters
The likelihood detection parameters for the module. |
private java.lang.String |
name
The name assigned to the controller. |
private java.util.HashMap<java.lang.String,LikelihoodDetectionUnit.ProcessGroup> |
processes
A map of processes groups, organized by the name of the target configuration that they are for. |
private boolean |
selfNotification
A flag indicating whether the controller has received its first notification from itself via the PamGuard system. |
| Fields inherited from class PamController.PamControlledUnit |
|---|
isViewer |
| Constructor Summary | |
|---|---|
LikelihoodDetectionUnit(java.lang.String name)
Instantiates a new likelihood detection unit. |
|
| Method Summary | |
|---|---|
private void |
addProcessingGroup(java.lang.String configName,
LikelihoodDetectionUnit.ProcessGroup processes)
Adds a processing group to the list of active processing streams. |
private void |
configure()
Configure the controlling unit (module). |
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses |
LikelihoodDetectionParameters |
getParameters()
Returns the configured LikelihoodDetectionParameters for the module. |
java.io.Serializable |
getSettingsReference()
|
long |
getSettingsVersion()
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes. |
private void |
removeAllProcessingGroups()
Removes the all processing groups. |
boolean |
restoreSettings(PamControlledUnitSettings settings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface PamController.PamSettings |
|---|
getUnitName, getUnitType |
| Field Detail |
|---|
private LikelihoodDetectionParameters likelihoodDetectionParameters
private static LikelihoodFFTController fftController
private boolean isConfiguring
private boolean isInitialized
private boolean firstNotification
private boolean selfNotification
private java.lang.String name
private java.util.HashMap<java.lang.String,LikelihoodDetectionUnit.ProcessGroup> processes
| Constructor Detail |
|---|
public LikelihoodDetectionUnit(java.lang.String name)
name - The assigned name of the detection module.| Method Detail |
|---|
private void configure()
public LikelihoodDetectionParameters getParameters()
LikelihoodDetectionParameterspublic java.io.Serializable getSettingsReference()
getSettingsReference in interface PamSettingspublic long getSettingsVersion()
getSettingsVersion in interface PamSettingspublic boolean restoreSettings(PamControlledUnitSettings settings)
restoreSettings in interface PamSettingspublic javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu in class PamControlledUnitparentFrame - The owner frame of the menu
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged in class PamControlledUnitchangeType - type of change
private void addProcessingGroup(java.lang.String configName,
LikelihoodDetectionUnit.ProcessGroup processes)
configName - the config nameprocesses - the processesprivate void removeAllProcessingGroups()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||