From 7ee0e9fb10297bf8ce1fe0bbe5f2ce1bdb70d6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20St=C3=BCcker?= <131346899+pstuecker@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:43:33 +0200 Subject: [PATCH] Fix missing mounts and drawings in Ssks (#777) --- .../table/pt1/ssks/SsksTransformator.xtend | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/java/bundles/org.eclipse.set.feature.table.pt1/src/org/eclipse/set/feature/table/pt1/ssks/SsksTransformator.xtend b/java/bundles/org.eclipse.set.feature.table.pt1/src/org/eclipse/set/feature/table/pt1/ssks/SsksTransformator.xtend index 4e54632eb..2381dc7b4 100644 --- a/java/bundles/org.eclipse.set.feature.table.pt1/src/org/eclipse/set/feature/table/pt1/ssks/SsksTransformator.xtend +++ b/java/bundles/org.eclipse.set.feature.table.pt1/src/org/eclipse/set/feature/table/pt1/ssks/SsksTransformator.xtend @@ -947,13 +947,13 @@ class .simpleName»: «e.message» - failed to transform table contents''', e) return trackDistance.min } - private static def List> getBefestigungsgruppen( + private static def List> getBefestigungsgruppen( Signal signal) { - val result = new LinkedList> + val result = new LinkedList> val rahmen = signal.signalRahmen val befestigungen = rahmen.map[it -> signalBefestigung].distinctBy [ value - ] + ].toList switch mast : befestigungen.filter [ mastTypeOfSignalWithTwoMast.contains( @@ -968,13 +968,14 @@ class .simpleName»: «e.message» - failed to transform table contents''', e) value.signalBefestigungAllg?.befestigungArt?.wert) ].map[value].toSet val subMast = mast.map[value].filter[!mainMast.contains(it)] - result.add(0, mainMast) - result.add(1, subMast) + result.add(0, mainMast.toList) + result.add(1, subMast.toList) } case mast.size > 2: throw new IllegalArgumentException('''«signal.bezeichnung?.bezeichnungAussenanlage?.toString» has more than two Befestigung Signal''') - default: - result.add(befestigungen.map[value]) + default: + result.add(befestigungen.map[value].toList) + } return result }