public class SimpleAlarmCounter extends AlarmCounter
Constructor and Description |
---|
SimpleAlarmCounter(AlarmControl alarmControl) |
Modifier and Type | Method and Description |
---|---|
double |
getValue(int countType,
PamDataUnit dataUnit)
Get a count value from a source of alarm trigger data
|
void |
resetCounter() |
addCount, getAlarmControl, getExtraFieldData, getExtraFieldNames, hasOptions, showOptions, subtractCount
public SimpleAlarmCounter(AlarmControl alarmControl)
public double getValue(int countType, PamDataUnit dataUnit)
AlarmCounter
Two 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 !)
getValue
in class AlarmCounter
countType
- type of countingdataUnit
- dataunit to considerpublic void resetCounter()
resetCounter
in class AlarmCounter