Expand description
EBD answer-code cluster lookup.
Resolves UTILMD/ORDRSP/IFTSTA conditions that classify STS response codes by “Cluster Zustimmung” or “Cluster Ablehnung”. The cluster is a per-EBD attribute — the same A-code can sit in a different cluster depending on which EBD (C556/1131 qualifier) it belongs to.
Data source: extracted from mako_prozesse (YAML per EBD) via
scripts/extract_ebd_clusters.py.
Structs§
Enums§
- Cluster
- Cluster classifier derived from the
Cluster:hint in an EBD YAML.
Functions§
- all_
sts_ e01_ in_ cluster [UTILMD_Strom 359/360]— everySTS+E01answer is a code whose cluster under its referenced EBD matchespredicate(“Es sind nur Antwortcodes aus dem Cluster Zustimmung erlaubt”). A code the EBD does not hold (Q99) is in no cluster and fails; an answer naming no EBD cannot be told.- any_
scoped_ ajt_ in_ cluster [REMADV 517/518]— any AJT “in dieser SG5” (the enclosing SG5 and its SG7s; message-wide when no scope is attached) carries a code whose cluster matchespredicateand whose A-code is not inexcluded_codes.- any_
sts_ e01_ in_ cluster [UTILTS 61]— anySTS+E01carries an Ablehnung-cluster code. Existential rather than universal — matches the AHB wording “Wenn in einem STS+E01 … ein Antwortcode aus dem Cluster Ablehnung vorhanden ist”. ReturnsFalserather thanUnknownwhen noSTS+E01is present (the premise is absent).- ebd_
ablehnung_ except [UTILMD_Strom 366/368]— everySTS+qualifieranswer is a code ofrequired_ebdin the cluster Ablehnung, other thanexcluded_codes(“Bis auf den Code A30 sind alle Codes aus EBD E_0624 im Cluster Ablehnung erlaubt”). The conditions sit on STS+Z35, the third party’s answer; the STS+E01 beside it names another EBD. An answer naming no EBD is read as namingrequired_ebd, the only one its AHB allows.- resolved_
ajt_ code_ in_ cluster [REMADV 14/15/16]— resolved AJT DE4465 code is in the given cluster under the segment’s referenced EBD (DE1082, element[1][0]).- resolved_
sts_ code_ in_ cluster [ORDRSP 17/18]— resolved STS code is in the given cluster under the same segment’s referenced EBD. Usesctx.resolved_value+ctx.resolved_segmentwhich are populated by the tree validator when visiting a specific field.