package ref import ( "joylink.club/bj-rtsts-server/ats/verify/simulation/wayside/face" ) // 道岔端口引用 type SwitchRef struct { //道岔设备 SwitchDevice face.SwitchDeviceModeller //道岔端口 Port face.PortEnum } // 初始化 func (ref *SwitchRef) Init(port face.PortEnum, switchDevice face.SwitchDeviceModeller) *SwitchRef { ref.Port = port ref.SwitchDevice = switchDevice return ref }