35 lines
904 B
Go
35 lines
904 B
Go
package component
|
||
|
||
import "joylink.club/ecs"
|
||
|
||
// SignalJCKXHElectronic 电路状态:信号机JCKXH(红-白-黄) 进/出库列车兼调车信号机(三显示不封灯、有单黄显示、无引导)
|
||
type SignalJCKXHElectronic struct {
|
||
//灯丝继电器,true-吸合
|
||
JCKXH_DJ *ecs.Entry
|
||
//调车信号继电器,true-吸合
|
||
JCKXH_DXJ *ecs.Entry
|
||
//列车信号继电器,true-吸合
|
||
JCKXH_LXJ *ecs.Entry
|
||
}
|
||
|
||
// SignalJCKXHFilament 信号机JCKXH 灯丝状态
|
||
type SignalJCKXHFilament struct {
|
||
// 物理黄灯,true-灯丝正常
|
||
Uf bool
|
||
// 物理白灯,true-灯丝正常
|
||
Bf bool
|
||
// 物理红灯,true-灯丝正常
|
||
Hf bool
|
||
// 物理黄灯,true-亮
|
||
U bool
|
||
// 物理白灯,true-亮
|
||
B bool
|
||
// 物理红灯,true-亮
|
||
H bool
|
||
}
|
||
|
||
var (
|
||
SignalJCKXHElectronicType = ecs.NewComponentType[SignalJCKXHElectronic]()
|
||
SignalJCKXHFilamentType = ecs.NewComponentType[SignalJCKXHFilament]()
|
||
)
|