public class MostFrequantAlarmsContainer.AlarmActNumber extends java.lang.Object implements java.lang.Comparable<MostFrequantAlarmsContainer.AlarmActNumber>
The Comparable define the ordering depending on the
number of activations.
| Constructor and Description |
|---|
AlarmActNumber(java.lang.String id,
boolean active,
java.sql.Timestamp time)
Canstructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MostFrequantAlarmsContainer.AlarmActNumber o) |
java.lang.String |
getAlarmID()
Getter
|
java.sql.Timestamp |
getLastActivationTime()
Getter
|
java.sql.Timestamp |
getLastTerminationTime()
Getter
|
long |
getNumActivation()
Getter
|
long |
getNumTermination()
Getter
|
void |
update(boolean active,
java.sql.Timestamp time)
Update the numbers of activation/deactivation of this alarm
|
public AlarmActNumber(java.lang.String id,
boolean active,
java.sql.Timestamp time)
id - The ID of the alarmactive - The status of the alarmtime - The time of the last recevied alarmpublic void update(boolean active,
java.sql.Timestamp time)
active - If true the alarm was activetime - The time of the last recevied alarmpublic long getNumActivation()
public java.sql.Timestamp getLastActivationTime()
public long getNumTermination()
public java.sql.Timestamp getLastTerminationTime()
public java.lang.String getAlarmID()
public int compareTo(MostFrequantAlarmsContainer.AlarmActNumber o)
compareTo in interface java.lang.Comparable<MostFrequantAlarmsContainer.AlarmActNumber>