Package com.storedobject.iot
Class DataSet.AlarmStatus
- Enclosing class:
DataSet
-
Field Summary
Fields inherited from class com.storedobject.iot.DataSet.DataStatus
alarmAt -
Method Summary
Modifier and TypeMethodDescriptionintalarm()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 associatedAlarmSwitchvalue 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, getAlarmAt, getAlarmMessage, getId, getUnit, hashCode, hourlyStatistics, label, monthlyStatistics, ordinality, significance, tooltip, value, value, weeklyStatistics, yearlyStatistics
-
Method Details
-
getValueDefinition
Retrieves the associatedAlarmSwitchvalue definition for the current data status.- Overrides:
getValueDefinitionin classDataSet.DataStatus<Boolean>- Returns:
- the
AlarmSwitchobject representing the value definition.
-
getValue
Returns the current boolean value of the alarm status.- Specified by:
getValuein 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:
alarmin 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:
statusLabelin 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:
valuein classDataSet.DataStatus<Boolean>- Returns:
- "On" if the alarm value is true, otherwise "Off".
-