Package noiseOneBand.alarm
Class OneBandAlarmCounter
java.lang.Object
alarm.AlarmCounter
alarm.AlarmDecibelCounter
noiseOneBand.alarm.OneBandAlarmCounter
- All Implemented Interfaces:
PamSettings,SettingsNameProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOneBandAlarmCounter(AlarmControl alarmControl, OneBandControl oneBandControl) -
Method Summary
Modifier and TypeMethodDescriptionlongdoublegetValue(int countType, PamDataUnit dataUnit) Get a count value from a source of alarm trigger databooleanvoidbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) booleanshowOptions(Window parent) Show module specific optionsMethods inherited from class alarm.AlarmDecibelCounter
addCount, subtractCountMethods inherited from class alarm.AlarmCounter
getAlarmControl, getExtraFieldData, getExtraFieldNames
-
Field Details
-
oneBandAlarmParameters
-
-
Constructor Details
-
OneBandAlarmCounter
-
-
Method Details
-
getValue
Description copied from class:AlarmCounterGet 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:
getValuein classAlarmCounter- Parameters:
countType- type of countingdataUnit- dataunit to consider- Returns:
- value to add to trigger count.
-
resetCounter
public void resetCounter()- Specified by:
resetCounterin classAlarmCounter
-
hasOptions
public boolean hasOptions()- Overrides:
hasOptionsin classAlarmCounter- Returns:
- true if the counter has module specific options.
-
showOptions
Description copied from class:AlarmCounterShow module specific options- Overrides:
showOptionsin classAlarmCounter- Parameters:
parent- parent frame for dialog- Returns:
- true if options were changed (false if cancel button pressed on dialog)
-
getUnitName
- Specified by:
getUnitNamein interfaceSettingsNameProvider- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitTypein interfacePamSettings- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReferencein interfacePamSettings- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersionin interfacePamSettings- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettingsin interfacePamSettings- Parameters:
pamControlledUnitSettings-- 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
-