public abstract class AlarmDecibelCounter extends AlarmCounter
Constructor and Description |
---|
AlarmDecibelCounter(AlarmControl alarmControl) |
Modifier and Type | Method and Description |
---|---|
double |
addCount(double currentValue,
double countToAdd,
int countType)
Add a count to the total.
|
double |
subtractCount(double currentValue,
double countToSubtract,
int countType)
Subtract a count from the total.
|
getAlarmControl, getExtraFieldData, getExtraFieldNames, getValue, hasOptions, resetCounter, showOptions
public AlarmDecibelCounter(AlarmControl alarmControl)
public double addCount(double currentValue, double countToAdd, int countType)
AlarmCounter
addCount
in class AlarmCounter
currentValue
- current valuecountToAdd
- amount to addcountType
- type of countingpublic double subtractCount(double currentValue, double countToSubtract, int countType)
AlarmCounter
subtractCount
in class AlarmCounter
currentValue
- current valuecountToSubtract
- amount to subtract offcountType
- type of counting