From fbef2ef9e505dd74d150de0677b2a86472444a1c Mon Sep 17 00:00:00 2001 From: weizhihong Date: Wed, 27 Sep 2023 14:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E6=96=AD=E7=9B=B8?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4=E5=99=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wayside/memory/wayside_memory_map_init.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ats/verify/simulation/wayside/memory/wayside_memory_map_init.go b/ats/verify/simulation/wayside/memory/wayside_memory_map_init.go index 4d3cd80..8e3f6eb 100644 --- a/ats/verify/simulation/wayside/memory/wayside_memory_map_init.go +++ b/ats/verify/simulation/wayside/memory/wayside_memory_map_init.go @@ -164,6 +164,19 @@ func initRelayCabinetUid(graphicData *graphicData.RelayCabinetGraphicStorage) *r Uid: GenerateElementUid(city, lineId, []string{station}, code), } } + for _, r := range graphicData.PhaseFailureProtectors { + p := refMap[r.Common.Id] + code := r.Code + if p != nil { + code = p.deviceCode + "_" + p.typeCode + "_" + r.Code + } + rus.RelayIds[r.Common.Id] = &elementIdStructure{ + CommonId: r.Common.Id, + Code: r.Code, + Uid: GenerateElementUid(city, lineId, []string{station}, code), + } + } + return rus }