Package com.storedobject.iot
Class DataSet.AlarmStatus
- Enclosing class:
DataSet
-
Method Summary
Modifier and TypeMethodDescriptionint
alarm()
Determines the alarm status based on the current value and the defined alarm condition.getValue()
Returns the current boolean value of the alarm status.Retrieves the associatedAlarmSwitch
value definition for the current data status.Returns the status label based on the alarm's state.value()
Returns the string representation of the alarm's current value.Methods inherited from class com.storedobject.iot.DataSet.DataStatus
alert, caption, dailyStatistics, display, equals, getAlarmMessage, getId, getUnit, hashCode, hourlyStatistics, label, monthlyStatistics, ordinality, significance, tooltip, value, value, weeklyStatistics, yearlyStatistics
-
Method Details
-
getValueDefinition
Retrieves the associatedAlarmSwitch
value definition for the current data status.- Overrides:
getValueDefinition
in classDataSet.DataStatus<Boolean>
- Returns:
- the
AlarmSwitch
object representing the value definition.
-
getValue
Returns the current boolean value of the alarm status.- Specified by:
getValue
in classDataSet.DataStatus<Boolean>
- Returns:
- the current value of the alarm status, represented as a Boolean.
-
alarm
public int alarm()Determines the alarm status based on the current value and the defined alarm condition.- Specified by:
alarm
in classDataSet.DataStatus<Boolean>
- Returns:
- an integer representing the alarm status:
- Returns 0 if the alarm condition is not met. - Returns -3 if the alarm should trigger but the condition is false. - Returns 3 if the alarm should trigger and the condition is true.
-
statusLabel
Returns the status label based on the alarm's state.- Specified by:
statusLabel
in classDataSet.DataStatus<Boolean>
- Returns:
- "Off" if the alarm state is 0, otherwise "On".
-
value
Returns the string representation of the alarm's current value.- Specified by:
value
in classDataSet.DataStatus<Boolean>
- Returns:
- "On" if the alarm value is true, otherwise "Off".
-