22 lines
667 B
Go
22 lines
667 B
Go
package device
|
||
|
||
import (
|
||
"joylink.club/bj-rtsts-server/ats/verify/protos/graphicData"
|
||
"joylink.club/bj-rtsts-server/ats/verify/simulation/wayside/face"
|
||
"joylink.club/bj-rtsts-server/ats/verify/simulation/wayside/model/ref"
|
||
)
|
||
|
||
type LinkModel struct {
|
||
face.DeviceModel
|
||
//长度
|
||
Length int32
|
||
//A端连接的道岔端点
|
||
ARelatedSwitchRef ref.SwitchRef
|
||
//B端连接的道岔端点
|
||
BRelatedSwitchRef ref.SwitchRef
|
||
//Link上的设备及位置(将A、B端的道岔也填进来了)(按offset排序)
|
||
DevicePositions []*ref.DevicePosition
|
||
//key-在link上最小偏移量端点设备id,value-SectionLink端点
|
||
SectionLinkMap map[string]*graphicData.RelatedRef
|
||
}
|