21 lines
482 B
Go
21 lines
482 B
Go
package mwayside
|
|
|
|
import "joylink.club/ecs/examples/rtss-cg/iwayside"
|
|
|
|
//计轴检测点模型
|
|
type AxlePointModel struct {
|
|
DeviceModel
|
|
//计轴点公里标,单位mm
|
|
KilometerSign int64
|
|
//所在轨道
|
|
Link iwayside.ILinkModel
|
|
}
|
|
|
|
func NewAxlePointModel(id string, link iwayside.ILinkModel, kilometerSign int64) *AxlePointModel {
|
|
return &AxlePointModel{
|
|
DeviceModel: DeviceModel{Id: id, Type: iwayside.AxlePoint},
|
|
KilometerSign: kilometerSign,
|
|
Link: link,
|
|
}
|
|
}
|