rts-sim-testing-service/ats/verify/simulation/wayside/model/ref/switch_ref.go

21 lines
410 B
Go
Raw Normal View History

2023-07-31 11:30:34 +08:00
package ref
import (
"joylink.club/bj-rtsts-server/ats/verify/simulation/wayside/face"
)
// 道岔端口引用
type SwitchRef struct {
//道岔设备
SwitchDevice face.SwitchDeviceModeller
//道岔端口
Port face.PortEnum
}
2023-07-31 15:59:23 +08:00
// 初始化
func (ref *SwitchRef) Init(port face.PortEnum, switchDevice face.SwitchDeviceModeller) *SwitchRef {
ref.Port = port
ref.SwitchDevice = switchDevice
return ref
}