Package clickDetector.echoDetection
Class SimpleEchoDetectionSystem
java.lang.Object
clickDetector.echoDetection.EchoDetectionSystem
clickDetector.echoDetection.SimpleEchoDetectionSystem
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
Very simple echo detection system which uses a single test of time
between the previous click and this click to determine if it's an echo or not.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEchoDetector
(ClickDetector.ChannelGroupDetector channelGroupDetector, int channelBitmap) Get an echo detection object for a set of channels.Get a dialog panel to be included in a larger or more general dialog.long
boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class clickDetector.echoDetection.EchoDetectionSystem
getClickcontrol
-
Constructor Details
-
SimpleEchoDetectionSystem
-
-
Method Details
-
createEchoDetector
public EchoDetector createEchoDetector(ClickDetector.ChannelGroupDetector channelGroupDetector, int channelBitmap) Description copied from class:EchoDetectionSystem
Get an echo detection object for a set of channels.- Specified by:
createEchoDetector
in classEchoDetectionSystem
- Parameters:
channelBitmap
- channels to be included in this particular echo detector.- Returns:
- an echo detector for a group of channels.
-
getEchoDialogPanel
Description copied from class:EchoDetectionSystem
Get a dialog panel to be included in a larger or more general dialog.- Specified by:
getEchoDialogPanel
in classEchoDetectionSystem
- Returns:
- a dialog panel.
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-