ISCS火警系统ecs定义
This commit is contained in:
parent
c103a41f86
commit
73501bf793
@ -78,6 +78,8 @@ const (
|
|||||||
type GasFireExtinguisher struct {
|
type GasFireExtinguisher struct {
|
||||||
State GfeState //气体灭火器状态
|
State GfeState //气体灭火器状态
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
|
Release bool //true-气体释放
|
||||||
|
Auto bool //true-自动;false-手动
|
||||||
}
|
}
|
||||||
|
|
||||||
// GfeState 气体灭火器状态
|
// GfeState 气体灭火器状态
|
||||||
@ -174,8 +176,7 @@ type PumpStartButton struct {
|
|||||||
|
|
||||||
// TemperatureSensingCable 感温电缆
|
// TemperatureSensingCable 感温电缆
|
||||||
type TemperatureSensingCable struct {
|
type TemperatureSensingCable struct {
|
||||||
Normal bool //true-正常
|
State FdState //正常、火警故障
|
||||||
FireAlarm bool //true-火警
|
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,8 +184,8 @@ type TemperatureSensingCable struct {
|
|||||||
//
|
//
|
||||||
// 1、一般电梯应有的消防功能。归首的意思是指回归首层。2、该功能也就是说电梯在上行过程中,如果一旦触发了消防开关,电梯就立即返回基站(也就是归首层)
|
// 1、一般电梯应有的消防功能。归首的意思是指回归首层。2、该功能也就是说电梯在上行过程中,如果一旦触发了消防开关,电梯就立即返回基站(也就是归首层)
|
||||||
type ElevatorToOriginalPosModule struct {
|
type ElevatorToOriginalPosModule struct {
|
||||||
Normal bool //true-正常
|
State FdState //正常、火警故障
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-火警故障、故障、异常、通信中断
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////
|
////////////////////////////////////////////
|
||||||
@ -193,23 +194,33 @@ type ElevatorToOriginalPosModule struct {
|
|||||||
//
|
//
|
||||||
// 当烟气温度达到280℃时,人已基本疏散完毕,排烟已无实际意义,而烟气中此时已带火,阀门自动关闭,以避免火势蔓延
|
// 当烟气温度达到280℃时,人已基本疏散完毕,排烟已无实际意义,而烟气中此时已带火,阀门自动关闭,以避免火势蔓延
|
||||||
type FireDamper struct {
|
type FireDamper struct {
|
||||||
Normal bool //true-正常
|
State FdState //正常、隔离、火警故障
|
||||||
Isolate bool //true-隔离
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-火警故障、故障、异常、通信中断
|
Closed bool //true-防火阀关闭;false-防火阀打开(常态)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ElectricSmokeFireDamper 电动防烟防火阀
|
// ElectricSmokeFireDamper 电动防烟防火阀
|
||||||
type ElectricSmokeFireDamper struct {
|
type ElectricSmokeFireDamper struct {
|
||||||
Normal bool //true-正常
|
State FdState //正常、火警故障
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-火警故障、故障、异常、通信中断
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
|
Closed bool //true-防火阀关闭;false-防火阀打开(常态)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FdState 防火阀状态定义
|
||||||
|
type FdState = uint8
|
||||||
|
|
||||||
|
const (
|
||||||
|
FdNormal FdState = iota //正常
|
||||||
|
FdIsolate //隔离
|
||||||
|
FdFireAlarm //火警故障(烟气温度超过阈值使阀门关闭)
|
||||||
|
)
|
||||||
|
|
||||||
////////////////////////////////////////////
|
////////////////////////////////////////////
|
||||||
|
|
||||||
// FireInterconnectionSignal 火灾互联互通信号
|
// FireInterconnectionSignal 火灾互联互通信号
|
||||||
type FireInterconnectionSignal struct {
|
type FireInterconnectionSignal struct {
|
||||||
Normal bool //true-正常
|
State FdState //正常、火警故障
|
||||||
Exception consts.DeviceExceptionEnum //具体异常-火警故障、故障、异常、通信中断
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
|
@ -166,7 +166,6 @@ var (
|
|||||||
DeviceAlarmTag = ecs.NewTag() //报警 有事故信号产生
|
DeviceAlarmTag = ecs.NewTag() //报警 有事故信号产生
|
||||||
DeviceStartTimeoutTag = ecs.NewTag() //启动超时
|
DeviceStartTimeoutTag = ecs.NewTag() //启动超时
|
||||||
DeviceModuleFaultTag = ecs.NewTag() //模块故障
|
DeviceModuleFaultTag = ecs.NewTag() //模块故障
|
||||||
DeviceFireAlarmMalfunctionTag = ecs.NewTag() //火警故障
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// 设备置牌标签定义
|
// 设备置牌标签定义
|
||||||
|
@ -11,5 +11,4 @@ const (
|
|||||||
DeviceAlarm //报警 有事故信号产生
|
DeviceAlarm //报警 有事故信号产生
|
||||||
DeviceStartTimeout //启动超时
|
DeviceStartTimeout //启动超时
|
||||||
DeviceModuleFault //模块故障
|
DeviceModuleFault //模块故障
|
||||||
DeviceFireAlarmMalfunction //火警故障
|
|
||||||
)
|
)
|
||||||
|
@ -93,7 +93,6 @@ const (
|
|||||||
DeviceExceptionAlarm //报警 有事故信号产生
|
DeviceExceptionAlarm //报警 有事故信号产生
|
||||||
DeviceExceptionStartTimeout //启动超时
|
DeviceExceptionStartTimeout //启动超时
|
||||||
DeviceExceptionModuleFault //模块故障
|
DeviceExceptionModuleFault //模块故障
|
||||||
DeviceExceptionFireAlarmMalfunction //火警故障
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeviceExceptionOperate 设备例外操作
|
// DeviceExceptionOperate 设备例外操作
|
||||||
@ -111,7 +110,6 @@ func DeviceExceptionOperate(w ecs.World, deviceId string, opt DeviceExceptionOpt
|
|||||||
deviceEntry.RemoveComponent(component.DeviceAlarmTag)
|
deviceEntry.RemoveComponent(component.DeviceAlarmTag)
|
||||||
deviceEntry.RemoveComponent(component.DeviceStartTimeoutTag)
|
deviceEntry.RemoveComponent(component.DeviceStartTimeoutTag)
|
||||||
deviceEntry.RemoveComponent(component.DeviceModuleFaultTag)
|
deviceEntry.RemoveComponent(component.DeviceModuleFaultTag)
|
||||||
deviceEntry.RemoveComponent(component.DeviceFireAlarmMalfunctionTag)
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
switch opt {
|
switch opt {
|
||||||
@ -133,9 +131,6 @@ func DeviceExceptionOperate(w ecs.World, deviceId string, opt DeviceExceptionOpt
|
|||||||
case DeviceExceptionModuleFault:
|
case DeviceExceptionModuleFault:
|
||||||
clearAllExceptions(deviceEntry)
|
clearAllExceptions(deviceEntry)
|
||||||
deviceEntry.AddComponent(component.DeviceModuleFaultTag)
|
deviceEntry.AddComponent(component.DeviceModuleFaultTag)
|
||||||
case DeviceExceptionFireAlarmMalfunction:
|
|
||||||
clearAllExceptions(deviceEntry)
|
|
||||||
deviceEntry.AddComponent(component.DeviceFireAlarmMalfunctionTag)
|
|
||||||
default:
|
default:
|
||||||
clearAllExceptions(deviceEntry)
|
clearAllExceptions(deviceEntry)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user