Class AddAlarmDefinitonArgs
新增报警条目实体类
Inheritance
Object
AddAlarmDefinitonArgs
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: FBoxClientDriver.Contract
Assembly: FBoxClientDriver.Contract.dll
Syntax
public class AddAlarmDefinitonArgs
Constructors
AddAlarmDefinitonArgs()
无参构造函数
Declaration
public AddAlarmDefinitonArgs()
AddAlarmDefinitonArgs(Int32, String, Int64, Int32, Int32, Int32, Int32, DataType, DataWidth, AlarmConditionType, Decimal, AlarmConditionCombineMethod, String, Int32, Int32, Int32)
单条件触发构造函数
Declaration
public AddAlarmDefinitonArgs(int portNo, string boxNo, long alarmGroupUid, int serviceId, int stationNo, int deviceId, int regId, DataType dataType, DataWidth regWidth, AlarmConditionType condition1, decimal operand1, AlarmConditionCombineMethod conditionCombineMethod, string alarmMessage, int mainAddress, int subAddress, int subIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | portNo | portNo |
| String | boxNo | 盒子编码 |
| Int64 | alarmGroupUid | 报警组别UID |
| Int32 | serviceId | 服务ID |
| Int32 | stationNo | 站号 |
| Int32 | deviceId | 设备ID |
| Int32 | regId | 寄存器ID |
| DataType | dataType | 数据类型 |
| DataWidth | regWidth | 地址宽度 |
| AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
| Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
| AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
| String | alarmMessage | 报警信息 |
| Int32 | mainAddress | 主地址 |
| Int32 | subAddress | 子地址 |
| Int32 | subIndex | 子地址索引 |
AddAlarmDefinitonArgs(String, Int64, Int32, Int32, Int32, Int32, Int32, DataType, DataWidth, AlarmConditionType, AlarmConditionType, Decimal, Decimal, AlarmConditionCombineMethod, String, Int32, Int32, Int32)
多条件触发构造函数
Declaration
public AddAlarmDefinitonArgs(string boxNo, long alarmGroupUid, int serviceId, int portNo, int stationNo, int deviceId, int regId, DataType dataType, DataWidth regWidth, AlarmConditionType condition1, AlarmConditionType condition2, decimal operand1, decimal operand2, AlarmConditionCombineMethod conditionCombineMethod, string alarmMessage, int mainAddress, int subAddress, int subIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| String | boxNo | 盒子编码 |
| Int64 | alarmGroupUid | 报警组别UID |
| Int32 | serviceId | 服务ID |
| Int32 | portNo | portNo |
| Int32 | stationNo | 站号 |
| Int32 | deviceId | 设备ID |
| Int32 | regId | 寄存器ID |
| DataType | dataType | 数据类型 |
| DataWidth | regWidth | 地址宽度 |
| AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
| AlarmConditionType | condition2 | 条件二 |
| Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
| Decimal | operand2 | 若选择bit数据类型,条件二为0,若不采用组合条件,条件二传入0 |
| AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
| String | alarmMessage | 报警信息 |
| Int32 | mainAddress | 主地址 |
| Int32 | subAddress | 子地址 |
| Int32 | subIndex | 子地址索引 |
Properties
AlarmGroupUid
报警组别UID
Declaration
public long AlarmGroupUid { get; set; }
Property Value
| Type | Description |
|---|---|
| Int64 |
AlarmMessage
报警内容
Declaration
public string AlarmMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
BoxNo
盒子编码
Declaration
public string BoxNo { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Condition1
条件一
Declaration
public AlarmConditionType Condition1 { get; set; }
Property Value
| Type | Description |
|---|---|
| AlarmConditionType |
Condition2
条件二
Declaration
public AlarmConditionType Condition2 { get; set; }
Property Value
| Type | Description |
|---|---|
| AlarmConditionType |
ConditionCombineMethod
条件关联方式
Declaration
public AlarmConditionCombineMethod ConditionCombineMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| AlarmConditionCombineMethod |
DataType
数据类型
Declaration
public DataType DataType { get; set; }
Property Value
| Type | Description |
|---|---|
| DataType |
DeviceId
设备ID
Declaration
public int DeviceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
MainAddress
主地址
Declaration
public int MainAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Memo
备注
Declaration
public string Memo { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Operand1
操作数一,若DataType为Bit(位)时,操作数一为0(OFF)或者1 (ON)
Declaration
public decimal Operand1 { get; set; }
Property Value
| Type | Description |
|---|---|
| Decimal |
Operand2
操作数二,若DataType为Bit(位)时,操作数二为0, 若ConditionCombineMethod 为None时,也为0
Declaration
public decimal Operand2 { get; set; }
Property Value
| Type | Description |
|---|---|
| Decimal |
PortNo
PortNo
Declaration
public int PortNo { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
RegId
寄存器ID
Declaration
public int RegId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
RegWidth
地址宽度
Declaration
public DataWidth RegWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| DataWidth |
ServiceId
服务ID
Declaration
public int ServiceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
StationNo
站号
Declaration
public int StationNo { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
SubAddress
子地址
Declaration
public int SubAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
SubIndex
子地址索引
Declaration
public int SubIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |