Closed hf-kklein closed 2 years ago
pip install pylint
brew install graphviz
// create .dot file
pyreverse src/bo4e/bo
// draw uml diagram
dot -Tpng classes.dot -o bo4e-uml.png
Man kann damit verschiedene Formate erstellen
dot -Kdot -Tpng classes.dot -o bo4e-uml-dot.png
dot -Kneato -Tpng classes.dot -o bo4e-uml-neato.png
dot -Ktwopi -Tpng classes.dot -o bo4e-uml-twopi.png
dot -Kcirco -Tpng classes.dot -o bo4e-uml-twopi.png
dot -Ktwopi -Tpng classes.dot -o bo4e-uml-twopi.png
dot -Kcirco -Tpng classes.dot -o bo4e-uml-circo.png
dot -Kfdp -Tpng classes.dot -o bo4e-uml-fdp.png
dot -Kosage -Tpng classes.dot -o bo4e-uml-osage.png
dot -Kpatchwork -Tpng classes.dot -o bo4e-uml-patchwork.png
dot -Ksfdp -Tpng classes.dot -o bo4e-uml-sfdp.png
Diese sehen unterschiedlich gut aus
pyreverse src/bo4e/
an, so sollten auch die COMs und ENUMs Teil des Diagramms sein.✅ Die Diagramme sollen mindestens teilweise automatisiert erstellt werden um Schiefständen zwischen Doku und Code-Realität vorzubeugen. ✅ Die Diagramme sollen die lowerCamelCase Nomenklatur verwenden. ❌ Die Diagramme sollen 1:[0-n] Kardinalitäten sauber abbilden können. ❌ Die Diagramme sollen vollständig aber nicht unübersichtlich sein.
@snsttr die json-schemas liegen auch alle im git (also außerhalb von sphinx) https://github.com/bo4e/BO4E-python/tree/main/json_schemas/bo
https://gituml.com/ztree_scratchpad also I do have a paid account but the problems described above are testable/reproducable with the free version, too.
Does it have to be in one diagram? 'Cause with pyreverse
you can define the scope so I think it should be possible to make several little UML diagram which could easily be placed inside the docs with the extension sphinx.ext.graphviz.
Does it have to be in one diagram?
no. one diagram per business object is just fine.
Die Anforderung an die UML-Diagramme sind:
Dieses Ticket dient dazu, unsere bisherigen Versuche mit ihren jeweiligen Vor- und Nachteilen zu dokumentieren.