rts-sim-module/model/link_model.go
2023-08-16 17:17:20 +08:00

25 lines
458 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
//长轨道,道岔端点间的轨道
type LinkModel struct {
DeviceModel
//轨道A端口连接的道岔
PortA *SwitchPortRef
//轨道B端口连接的道岔
PortB *SwitchPortRef
}
//轨道端口引用
type LinkPortRef struct {
Link *LinkModel
//引用轨道的端口
Port PortEnum
}
//轨道偏移位置引用轨道A端为偏移起始位置
type LinkOffsetRef struct {
Link *LinkModel
//偏移位置单位mm
Offset int64
}