jl-ecs/examples/rtss-cg/mwayside/common.go
2023-08-11 10:19:34 +08:00

30 lines
538 B
Go

package mwayside
import "joylink.club/ecs/examples/rtss-cg/iwayside"
//设备基类定义
type DeviceModel struct {
Id string
Type iwayside.DeviceType
}
func (me *DeviceModel) GetType() iwayside.DeviceType {
return me.Type
}
func (me *DeviceModel) GetId() string {
return me.Id
}
/////////////////////////////////////////
//长轨道端口引用
type LinkRef struct {
Port iwayside.DevicePort
Link iwayside.ILinkModel
}
//道岔端口引用
type SwitchRef struct {
Port iwayside.DevicePort
Switch iwayside.ISwitchModel
}