37 lines
930 B
Go
37 lines
930 B
Go
|
package component
|
|||
|
|
|||
|
import "joylink.club/ecs"
|
|||
|
|
|||
|
// SignalJDXHElectronic 电路状态:信号机JDXH(红-绿-黄) 进段信号机(三显示不封灯、无单黄显示、带引导)
|
|||
|
type SignalJDXHElectronic struct {
|
|||
|
// 2DJ灯丝继电器,true-吸合
|
|||
|
JDXH_2DJ *ecs.Entry
|
|||
|
//灯丝继电器,true-吸合
|
|||
|
JDXH_DJ *ecs.Entry
|
|||
|
//列车信号继电器,true-吸合
|
|||
|
JDXH_LXJ *ecs.Entry
|
|||
|
//引导信号继电器,true-吸合
|
|||
|
JDXH_YXJ *ecs.Entry
|
|||
|
}
|
|||
|
|
|||
|
// SignalJDXHFilament 信号机JDXH 灯丝状态
|
|||
|
type SignalJDXHFilament struct {
|
|||
|
// 物理黄灯,true-灯丝正常
|
|||
|
Uf bool
|
|||
|
// 物理绿灯,true-灯丝正常
|
|||
|
Lf bool
|
|||
|
// 物理红灯,true-灯丝正常
|
|||
|
Hf bool
|
|||
|
// 物理黄灯,true-亮
|
|||
|
U bool
|
|||
|
// 物理绿灯,true-亮
|
|||
|
L bool
|
|||
|
// 物理红灯,true-亮
|
|||
|
H bool
|
|||
|
}
|
|||
|
|
|||
|
var (
|
|||
|
SignalJDXHElectronicType = ecs.NewComponentType[SignalJDXHElectronic]()
|
|||
|
SignalJDXHFilamentType = ecs.NewComponentType[SignalJDXHFilament]()
|
|||
|
)
|