Implementation Sskx - Table der Tafeln#2297
Conversation
| fillFootnotes(row, signal); | ||
| fillIterable(row, getColumn(cols, SskxColumns.Bemerkung), signalRahmen, | ||
| rahmen -> rahmen.stream().map(r -> { | ||
| final boolean isAngestrahlt = Streams | ||
| .stream(SignalRahmenExtensions.getSignalbegriffe(r)) | ||
| .anyMatch(begriffe -> EObjectExtensions | ||
| .getNullableObject(begriffe, | ||
| b -> b.getSignalSignalbegriffAllg() | ||
| .getBeleuchtet() | ||
| .getWert()) | ||
| .orElse(null) == ENUMBeleuchtet.ENUM_BELEUCHTET_ANGESTRAHLT); | ||
| if (isAngestrahlt) { | ||
| return "angestrahlt"; //$NON-NLS-1$ | ||
| } | ||
| final Basis_Objekt befestigungBauwerk = EObjectExtensions | ||
| .getNullableObject(r, | ||
| e -> e.getIDSignalBefestigung() | ||
| .getValue() | ||
| .getIDBefestigungBauwerk() | ||
| .getValue()) | ||
| .orElse(null); | ||
| if (befestigungBauwerk != null | ||
| && befestigungBauwerk instanceof final Technischer_Punkt tp) { | ||
| return "Befestigung an " //$NON-NLS-1$ | ||
| + tp.getTPBeschreibung().getWert(); | ||
| } | ||
|
|
||
| if (r.getRahmenHoehe() != null | ||
| && r.getRahmenHoehe().getWert() != null) { | ||
| return "Rahmenhöhen beachten"; //$NON-NLS-1$ | ||
| } | ||
| return null; | ||
| }).filter(Objects::nonNull).toList(), MIXED_STRING_COMPARATOR, | ||
| s -> s, SIGNAL_BEGRIFFE_BEZEICHNUNG_SEPERATOR); |
There was a problem hiding this comment.
@TruongQuangSB How is this working? From my understanding the fillFootnotes will overwrite (in a later stage) the content that write into the bemerkungs column here, won't it?
Same question for the ssks, sslr, sslz and sszw transformator. IN all these transformators we call fillFootnotes but are also filling the Bemerkung column manually.
In the Ssvu transformator it looks like we never call fillFootnotes...
There was a problem hiding this comment.
@mariusheine the fillfootnotes only take the notes from Bearbeitungsvermerk and the fill bemerkung are special comment for the leading object. You can see it in ppmtab.
Yeah, is ssvu should add fillFootnotes
There was a problem hiding this comment.
@TruongQuangSB This looks like an accidental or debug change?
No description provided.