Package alarm
Class SimpleAlarmCounter
java.lang.Object
alarm.AlarmCounter
alarm.SimpleAlarmCounter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getValue
(int countType, PamDataUnit dataUnit) Get a count value from a source of alarm trigger databoolean
void
boolean
showOptions
(Window parent) Show module specific optionsMethods inherited from class alarm.AlarmCounter
addCount, getAlarmControl, getExtraFieldData, getExtraFieldNames, subtractCount
-
Constructor Details
-
SimpleAlarmCounter
-
-
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)
-