Package noiseMonitor.alarm
Class NoiseAlarmCounter
java.lang.Object
alarm.AlarmCounter
alarm.AlarmDecibelCounter
noiseMonitor.alarm.NoiseAlarmCounter
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
double
getValue
(int countType, PamDataUnit dataUnit) Get a count value from a source of alarm trigger databoolean
void
boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) boolean
showOptions
(Window parent) Show module specific optionsMethods inherited from class alarm.AlarmDecibelCounter
addCount, subtractCount
Methods inherited from class alarm.AlarmCounter
getAlarmControl, getExtraFieldData, getExtraFieldNames
-
Constructor Details
-
NoiseAlarmCounter
-
-
Method Details
-
getValue
Description copied from class:AlarmCounter
Get a count value from a source of alarm trigger dataTwo types of counting are available. COUNT_SIMPLE in which case each data unit scores either 0 or 1 and COUNT_SCORES in which case each unit is assigned a value (could still be 0 or 1 !)
- Specified by:
getValue
in classAlarmCounter
- Parameters:
countType
- type of countingdataUnit
- dataunit to consider- Returns:
- value to add to trigger count.
-
resetCounter
public void resetCounter()- Specified by:
resetCounter
in classAlarmCounter
-
hasOptions
public boolean hasOptions()- Overrides:
hasOptions
in classAlarmCounter
- Returns:
- true if the counter has module specific options.
-
showOptions
Description copied from class:AlarmCounter
Show module specific options- Overrides:
showOptions
in classAlarmCounter
- Parameters:
parent
- parent frame for dialog- Returns:
- true if options were changed (false if cancel button pressed on dialog)
-
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
-
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
-
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
-