Interface PamPluginInterface
- All Superinterfaces:
CommonPluginInterface
- All Known Implementing Classes:
angleMeasurementPlugin
,ArrayAccelPlugin
,AzigramPlugin
,IMUPlugin
,offlineProcessingPlugin
,quickAnnotationPlugin
,RawDeepLearningPlugin
- Author:
- MO
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Used in conjunction withallowedModes()
method to specify the plugin can be used in any PAMGUARD mode (Normal, Mixed and Viewer)static final int
Used in conjunction withallowedModes()
method to specify the plugin can be used in PAMGUARD Normal and Mixed modes, but not Viewer modestatic final int
Used in conjunction withallowedModes()
method to specify the plugin can only be used in PAMGUARD Viewer mode -
Method Summary
Modifier and TypeMethodDescriptionint
Specifies the type of PAMGuard mode that the plugin is allowed to run in.The class name of the plugin.Your module may be dependent on data from some other PAMGUARD module.A short description of the plug in module.int
Maximum number of instances of this plugin.Due to the large number of PAMGUARD modules now in existence, you may want to have your module listed in one of the sub menus of the File/Add Modules menu.int
Minimum number of instances of this plugin.int
The number of instances to instantiate when this module is loadedString containing the tool tip that will be displayed when hovering over the menu item.boolean
Whether or not this plugin should be hidden in the menu.Methods inherited from interface PamModel.CommonPluginInterface
getAboutText, getContactEmail, getDefaultName, getDeveloperName, getHelpSetName, getJarFile, getPamVerDevelopedOn, getPamVerTestedOn, getVersion, setJarFile
-
Field Details
-
ALLMODES
static final int ALLMODESUsed in conjunction withallowedModes()
method to specify the plugin can be used in any PAMGUARD mode (Normal, Mixed and Viewer)- See Also:
-
VIEWERONLY
static final int VIEWERONLYUsed in conjunction withallowedModes()
method to specify the plugin can only be used in PAMGUARD Viewer mode- See Also:
-
NOTINVIEWER
static final int NOTINVIEWERUsed in conjunction withallowedModes()
method to specify the plugin can be used in PAMGUARD Normal and Mixed modes, but not Viewer mode- See Also:
-
-
Method Details
-
getClassName
String getClassName()The class name of the plugin. This should be the class that extends PamControlledUnit. The correct format is PackageName.ClassName, with no extension on the class name. Thus if the package name is MyFirstPlugin and the class name is MyPluginControl.java, the return should be:return "MyFirstPlugin.MyPluginControl";
This field cannot be null.
- Returns:
- the class name as a String
-
getDescription
String getDescription()A short description of the plug in module. This text is used in various informational windows displayed to the user. The value returned here is typically the same as the text returned from thegetDefaultName()
method (e.g. Click Detector or FFT (Spectrogram) Engine).
This is the text used in the main 'Add Modules' menus and is used as the second argument to PamModuleInfo.registerControlledUnitThis field cannot be null.
- Returns:
- String describing the plugin. Cannot be null.
-
getMenuGroup
String getMenuGroup()Due to the large number of PAMGUARD modules now in existence, you may want to have your module listed in one of the sub menus of the File/Add Modules menu. You can add your module to one of the existing groups or you can create a new group of your own. The return string of this method specifies the name of the menu group the plug-in should belong to. Current PAMGuard menus include:- Maps and Mapping
- Sound Processing
- Detectors
- Classifiers
- Localisers
- Displays
- Utilities
- Visual Methods
- Sensors
- Seiche Modules
- Sound Measurements
This field cannot be null.
- Returns:
- the name of the menu group to include the plugin in. Cannot be null.
-
getToolTip
String getToolTip()String containing the tool tip that will be displayed when hovering over the menu item.This field cannot be null.
- Returns:
- ToolTip, as a String. Cannot be null.
-
getDependency
PamDependency getDependency()Your module may be dependent on data from some other PAMGUARD module. For example, the click detector requires raw data from an acquisition module, the whistle detector required raw data from a FFT module and the GPS module requires data from an NMEA data source.If the plug-in requires a different module to function, specify that dependent module here (seePamDependency
for the constructors).For example, a dependency on the FFT Engine would be defined as:
return new PamDependency(FFTDataUnit.class, "fftManager.PamFFTControl");
which tells Pamguard that the plug-in is dependent on some source of FFTDataUnit, and that a possible source of this type of data is the fftManager.PamFFTControl module.
If the plug-in has no dependencies, this field should be null.
- Returns:
- See Also:
-
getMinNumber
int getMinNumber()Minimum number of instances of this plugin. If the minimum number is greater than 0, then PAMGuard will automatically create that number of modules at start-up.This field must be an integer >= 0
- Returns:
-
getMaxNumber
int getMaxNumber()Maximum number of instances of this plugin. PAMGuard will prevent the user from creating more modules than the number specified here. Returning 0 indicates that there is no maximum number of instances.This field can be an integer >= 1 and > the minimum number (to specify a specific number), or 0 (to indicate no limits on the number).
- Returns:
-
getNInstances
int getNInstances()The number of instances to instantiate when this module is loadedThis field must be an integer >= the minimum number
- Returns:
-
isItHidden
boolean isItHidden()Whether or not this plugin should be hidden in the menu. True=hidden, False=visible. Except for rare circumstances, this method should return false.This field cannot be null.
- Returns:
- Hide status. True=hidden, False=visible. Cannot be null.
-
allowedModes
int allowedModes()Specifies the type of PAMGuard mode that the plugin is allowed to run in. Options are:- Returns:
- allowable run modes. Cannot be null
-