rts-sim-testing-service/ats/verify/simulation/wayside/model/device/link_device_model.go

22 lines
667 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 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上最小偏移量端点设备idvalue-SectionLink端点
SectionLinkMap map[string]*graphicData.RelatedRef
}