'
'| durchgezogen | Materialfluss |
'
'| gestrichelt blau | '
- 'Kreisel-Umlauf (L / R) |
'
+ 'Kreisel-Umlauf, Richtung aus Drehrichtung '
+ f'({ROTATION_CW} = {ROTATION_FLOW[ROTATION_CW]}, '
+ f'{ROTATION_CCW} = {ROTATION_FLOW[ROTATION_CCW]}) | '
'| gestrichelt gelb | '
'Richtung nicht bestimmbar |
'
"
>];")
@@ -886,7 +946,14 @@ def render_doc(
kind_text = {EDGE_FLOW: "Materialfluss", EDGE_CIRCLE: "Kreisel-Umlauf",
EDGE_UNRESOLVED: "Richtung unbestimmt"}
for edge in graph.edges:
- add(f"| `{edge.src}` | `{edge.dst}` | {kind_text.get(edge.kind, edge.kind)} |")
+ note = f" ({edge.note})" if edge.note else ""
+ add(f"| `{edge.src}` | `{edge.dst}` | "
+ f"{kind_text.get(edge.kind, edge.kind)}{note} |")
+ add("")
+ add(f"Die Richtung innerhalb eines Kreisels kommt aus dem Merkmal "
+ f"`Drehrichtung`: **{ROTATION_CW}** (im Uhrzeigersinn) laesst das Material "
+ f"{ROTATION_FLOW[ROTATION_CW]} laufen, **{ROTATION_CCW}** (gegen den "
+ f"Uhrzeigersinn) {ROTATION_FLOW[ROTATION_CCW]}.")
add("")
add("## 4. Plausibilitaetshinweise")