30 lines
538 B
Go
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
|
|
}
|