Path: blob/main/latexhints-german-plantuml.tex
340 views
\Cref{fig:umlcar} zeigt ein einfaches UML-Diagramm mittels PlantUML.12\begin{figure}3\centering4\begin{plantuml}5@startuml6class Car78Driver - Car : drives >9Car *- Wheel : have 4 >10Car -- Person : < owns11@enduml12\end{plantuml}13\caption{Einfaches PlantUML-Diagramm}14\label{fig:umlcar}15\end{figure}1617\Cref{fig:plantuml} zeigt das Beispiel von \cref{fig:uml} mittels PlantUML.1819\begin{figure}20\centering21\begin{plantuml}22@startuml23package "p" #DDDDDD {24package "sp1" #DDDDDD {25class A<T> {26+ n : uint27+ t : float28}29class B {30+ d : double31- setB(b: B): void32+ getB(): B33}34note bottom of Class: A note on class B35}36package "sp2" #DDDDDD {37interface C << interface >> {38+ n : uint39+ s : string40}41}42class D {43+ n : uint44}4546sp2 ..> sp1 : N147note on link: An annotation4849B <|--D50B "1 toto" --> "0..* tata" C51D "1" o-- D : tutu52D *--> "titi 0..*" C : << vector >>53}54@enduml55\end{plantuml}56\caption{PlantUML-Diagramm}57\label{fig:plantuml}58\end{figure}596061