Class AddAlarmDefinitonArgs
新增报警条目实体类
Inheritance
System.Object
AddAlarmDefinitonArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|---|
System.Int32 | portNo | portNo |
System.String | boxNo | 盒子编码 |
System.Int64 | alarmGroupUid | 报警组别UID |
System.Int32 | serviceId | 服务ID |
System.Int32 | stationNo | 站号 |
System.Int32 | deviceId | 设备ID |
System.Int32 | regId | 寄存器ID |
DataType | dataType | 数据类型 |
DataWidth | regWidth | 地址宽度 |
AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
System.Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
System.String | alarmMessage | 报警信息 |
System.Int32 | mainAddress | 主地址 |
System.Int32 | subAddress | 子地址 |
System.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 |
---|---|---|
System.String | boxNo | 盒子编码 |
System.Int64 | alarmGroupUid | 报警组别UID |
System.Int32 | serviceId | 服务ID |
System.Int32 | portNo | portNo |
System.Int32 | stationNo | 站号 |
System.Int32 | deviceId | 设备ID |
System.Int32 | regId | 寄存器ID |
DataType | dataType | 数据类型 |
DataWidth | regWidth | 地址宽度 |
AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
AlarmConditionType | condition2 | 条件二 |
System.Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
System.Decimal | operand2 | 若选择bit数据类型,条件二为0,若不采用组合条件,条件二传入0 |
AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
System.String | alarmMessage | 报警信息 |
System.Int32 | mainAddress | 主地址 |
System.Int32 | subAddress | 子地址 |
System.Int32 | subIndex | 子地址索引 |
Properties
AlarmGroupUid
报警组别UID
Declaration
public long AlarmGroupUid { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
AlarmMessage
报警内容
Declaration
public string AlarmMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BoxNo
盒子编码
Declaration
public string BoxNo { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 |
MainAddress
主地址
Declaration
public int MainAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Memo
备注
Declaration
public string Memo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Operand1
操作数一,若DataType为Bit(位)时,操作数一为0(OFF)或者1 (ON)
Declaration
public decimal Operand1 { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Operand2
操作数二,若DataType为Bit(位)时,操作数二为0, 若ConditionCombineMethod 为None时,也为0
Declaration
public decimal Operand2 { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PortNo
PortNo
Declaration
public int PortNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RegId
寄存器ID
Declaration
public int RegId { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 |
StationNo
站号
Declaration
public int StationNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SubAddress
子地址
Declaration
public int SubAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SubIndex
子地址索引
Declaration
public int SubIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |