Skip to main content

Module ebd_cluster

Module ebd_cluster 

Source
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§

EbdClusterLookup

Enums§

Cluster
Cluster classifier derived from the Cluster: hint in an EBD YAML.

Functions§

all_sts_e01_in_cluster
[UTILMD_Strom 359/360] — every STS+E01 carries a code whose cluster under its referenced EBD matches predicate.
any_scoped_ajt_in_cluster
[REMADV 517/518] — any AJT in the current scope (falls back to message-wide when no scope is attached) carries a code whose cluster matches predicate and whose A-code is not in excluded_codes.
any_sts_e01_in_cluster
[UTILTS 61] — any STS+E01 carries 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”. Returns False rather than Unknown when no STS+E01 is present (the premise is absent).
ebd_ablehnung_except
[UTILMD_Strom 366/368] — every STS+E01 references required_ebd and its code is Ablehnung and not in excluded_codes.
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. Uses ctx.resolved_value + ctx.resolved_segment which are populated by the tree validator when visiting a specific field.