FunctionData value.
Alarm, FunctionData
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FIELD_SEVERITY
Represents the severity field name. |
| public static final String | FIELD_TYPE
Represents the type field name. |
| private final int | |
| public static final int | SEVERITY_CRITICAL
The severity rating indicates that there a critical alarm. |
| public static final int | SEVERITY_MAJOR
The severity rating indicates that there is a major alarm. |
| public static final int | SEVERITY_MINOR
The severity rating indicates that there is a minor alarm. |
| public static final int | SEVERITY_UNDEFINED
The severity constant indicates that there is no severity rating for this alarm. |
| private final int | |
| public static final int | TYPE_ACCESS_CONTROL
The alarm type indicates that there is access control issue. |
| public static final int | TYPE_BURGLAR
The alarm type indicates that there is a burglar notification. |
| public static final int | TYPE_COLD
The alarm type indicates that temperature is too low. |
| public static final int | TYPE_GAS_CO
The alarm type indicates that carbon monoxide (CO) is detected. |
| public static final int | TYPE_GAS_CO2
The alarm type indicates that carbon dioxide (CO2) is detected. |
| public static final int | TYPE_HARDWARE_FAIL
The alarm type indicates that there is hardware failure. |
| public static final int | TYPE_HEAT
The alarm type indicates that temperature is too high. |
| public static final int | TYPE_POWER_FAIL
The alarm type indicates a power cut. |
| public static final int | TYPE_SMOKE
The alarm type indicates that smoke is detected. |
| public static final int | TYPE_SOFTWARE_FAIL
The alarm type indicates that there is software failure. |
| public static final int | TYPE_TAMPER
The alarm type for a tamper indication. |
| public static final int | TYPE_UNDEFINED
The alarm type indicates that the type is not specified. |
| public static final int | TYPE_WATER
The alarm type indicates that a water leak is detected. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: -1, 0 or 1 depending on the comparison
rules.AlarmData to be compared.Overrides org. Implements java. Compares this |
| public boolean | Returns: true if this object is equivalent to the specified one.The object to compare this data. o)Overrides org. Two |
| public int | |
| private String | |
| public int | |
| public int | Returns: The hash code of thisAlarmData object.Overrides org. Returns the hash code for this |
| public String | Returns: The string representation of this alarm data.Overrides java. Returns the string representation of this alarm data. |
| private void |
| FIELD_SEVERITY | back to summary |
|---|---|
| public static final String FIELD_SEVERITY Represents the severity field name. The field value is available with
| |
| FIELD_TYPE | back to summary |
|---|---|
| public static final String FIELD_TYPE Represents the type field name. The field value is available with
| |
| severity | back to summary |
|---|---|
| private final int severity | |
| SEVERITY_CRITICAL | back to summary |
|---|---|
| public static final int SEVERITY_CRITICAL The severity rating indicates that there a critical alarm. The severity
priority is higher than | |
| SEVERITY_MAJOR | back to summary |
|---|---|
| public static final int SEVERITY_MAJOR The severity rating indicates that there is a major alarm. The severity
priority is higher than | |
| SEVERITY_MINOR | back to summary |
|---|---|
| public static final int SEVERITY_MINOR The severity rating indicates that there is a minor alarm. The severity
priority is lower than | |
| SEVERITY_UNDEFINED | back to summary |
|---|---|
| public static final int SEVERITY_UNDEFINED The severity constant indicates that there is no severity rating for this alarm. | |
| type | back to summary |
|---|---|
| private final int type | |
| TYPE_ACCESS_CONTROL | back to summary |
|---|---|
| public static final int TYPE_ACCESS_CONTROL The alarm type indicates that there is access control issue. For example, the alarm can indicate that the door is unlocked. | |
| TYPE_BURGLAR | back to summary |
|---|---|
| public static final int TYPE_BURGLAR The alarm type indicates that there is a burglar notification. For example, the alarm can indicate that the glass is broken. | |
| TYPE_COLD | back to summary |
|---|---|
| public static final int TYPE_COLD The alarm type indicates that temperature is too low. | |
| TYPE_GAS_CO | back to summary |
|---|---|
| public static final int TYPE_GAS_CO The alarm type indicates that carbon monoxide (CO) is detected. | |
| TYPE_GAS_CO2 | back to summary |
|---|---|
| public static final int TYPE_GAS_CO2 The alarm type indicates that carbon dioxide (CO2) is detected. | |
| TYPE_HARDWARE_FAIL | back to summary |
|---|---|
| public static final int TYPE_HARDWARE_FAIL The alarm type indicates that there is hardware failure. | |
| TYPE_HEAT | back to summary |
|---|---|
| public static final int TYPE_HEAT The alarm type indicates that temperature is too high. | |
| TYPE_POWER_FAIL | back to summary |
|---|---|
| public static final int TYPE_POWER_FAIL The alarm type indicates a power cut. | |
| TYPE_SMOKE | back to summary |
|---|---|
| public static final int TYPE_SMOKE The alarm type indicates that smoke is detected. | |
| TYPE_SOFTWARE_FAIL | back to summary |
|---|---|
| public static final int TYPE_SOFTWARE_FAIL The alarm type indicates that there is software failure. | |
| TYPE_TAMPER | back to summary |
|---|---|
| public static final int TYPE_TAMPER The alarm type for a tamper indication. | |
| TYPE_UNDEFINED | back to summary |
|---|---|
| public static final int TYPE_UNDEFINED The alarm type indicates that the type is not specified. | |
| TYPE_WATER | back to summary |
|---|---|
| public static final int TYPE_WATER The alarm type indicates that a water leak is detected. | |
| AlarmData | back to summary |
|---|---|
| public AlarmData(Map<String, ?> fields) Constructs new
| |
| AlarmData | back to summary |
|---|---|
| public AlarmData(long timestamp, Map<String, ?> metadata, int severity, int type) Constructs new
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Overrides org. Implements java. Compares this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Two
| |
| getSeverity | back to summary |
|---|---|
| public int getSeverity() Returns the alarm severity. The severity can be one of:
| |
| getSeverityAsString | back to summary |
|---|---|
| private String getSeverityAsString() | |
| getType | back to summary |
|---|---|
| public int getType() Returns the alarm type. The type can be one of the predefined:
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Returns the hash code for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this alarm data. | |
| validate | back to summary |
|---|---|
| private void validate() | |