rts-sim-module/consts/iscs.go
2023-12-22 15:29:57 +08:00

34 lines
1.1 KiB
Go

package consts
// DeviceExceptionEnum 设备例外枚举定义
type DeviceExceptionEnum int8
const (
DeviceExceptionNon DeviceExceptionEnum = iota
DeviceCommunicationInterrupt //通信中断
DeviceAbnormal //异常
DeviceFault //故障 有预告信号产生
DeviceAlarm //报警 有事故信号产生
DeviceStartTimeout //启动超时
DeviceModuleFault //模块故障
)
func (e *DeviceExceptionEnum) Non() bool {
return *e == DeviceExceptionNon
}
// DevicePlacingEnum 设备置牌枚举定义
type DevicePlacingEnum int8
const (
DevicePlacingNon DevicePlacingEnum = iota
DevicePlacingOverhaulCard //设备置牌:检修
DevicePlacingLandingCard //设备置牌:接地
DevicePlacingHand //设备置牌:就地(手型牌)
DevicePlacingOtherCard //设备置牌:其他
)
func (p *DevicePlacingEnum) Non() bool {
return *p == DevicePlacingNon
}