AlarmType class

Constructors

AlarmType.fromJson(Map<String, dynamic> json)
从JSON反序列化
factory

Properties

description String
获取报警类型的描述
no setter
displayName String
获取报警类型的显示名称
no setter
hashCode int
The hash code for this object.
no setteroverride
maskValue int
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
获取报警类型的位掩码值
no setter

Methods

addTo(int originalFlags) int
将当前报警类型添加到现有掩码中,返回新的掩码。
isContainedIn(int alarmFlags) bool
=== 核心工具方法 === 检查一个字节掩码中是否包含当前报警类型。 注意:NO_ALARM(0x00) 需要特殊处理,通常检查整个掩码是否为0。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFrom(int originalFlags) int
从现有掩码中移除当前报警类型,返回新的掩码。
toJson() Map<String, dynamic>
用于JSON序列化
toString() String
转换为字符串
override

Operators

operator ==(Object other) bool
重写==运算符,用于比较
override

Static Properties

values List<AlarmType>
获取所有报警类型
no setter

Static Methods

decodeFromMask(int alarmMask) List<AlarmType>
=== 静态工具方法 === 从掩码值解码为报警类型列表
encodeToMask(List<AlarmType> alarms) int
从报警类型列表编码为掩码值

Constants

FAST_LEAK → const AlarmType
HIGH_PRESSURE → const AlarmType
HIGH_TEMPERATURE → const AlarmType
LOST → const AlarmType
LOW_BATTERY → const AlarmType
LOW_PRESSURE → const AlarmType
NO_ALARM → const AlarmType