public class AlarmStatistics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AlarmStatistics.AlarmStatField
The holder for each category
|
| Constructor and Description |
|---|
AlarmStatistics()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getStatValue(AlarmStatistics.AlarmStatField field)
Return the accumulated statistic value for the passed field
|
void |
update(Alarm alarm)
Update the statistics with the passed alarm
|
void |
updateField(AlarmStatistics.AlarmStatField field,
boolean active)
Update the passed field depending on the activation
|
public void updateField(AlarmStatistics.AlarmStatField field, boolean active)
field - The field to updateactive - true if the alarm is activepublic void update(Alarm alarm)
alarm - The alarm receivedpublic java.lang.Integer getStatValue(AlarmStatistics.AlarmStatField field)
field - The field to get the statisticnull if no statistics is available for the passed field