rts-sim-module/model/switch_model.go

20 lines
334 B
Go
Raw Normal View History

2023-08-14 16:23:34 +08:00
package model
//道岔
type SwitchModel struct {
2023-08-14 18:06:26 +08:00
DeviceModel
2023-08-14 16:23:34 +08:00
//道岔A端口连接的轨道
PortA *LinkPortRef
//道岔B端口连接的轨道
PortB *LinkPortRef
//道岔C端口连接的轨道
PortC *LinkPortRef
}
//道岔端口引用
type SwitchPortRef struct {
Switch *SwitchModel
//引用道岔的端口
Port PortEnum
}