-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
latexhints-german-plantuml.tex
59 lines (53 loc) · 1.18 KB
/
latexhints-german-plantuml.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\Cref{fig:umlcar} zeigt ein einfaches UML-Diagramm mittels PlantUML.
\begin{figure}
\centering
\begin{plantuml}
@startuml
class Car
Driver - Car : drives >
Car *- Wheel : have 4 >
Car -- Person : < owns
@enduml
\end{plantuml}
\caption{Einfaches PlantUML-Diagramm}
\label{fig:umlcar}
\end{figure}
\Cref{fig:plantuml} zeigt das Beispiel von \cref{fig:uml} mittels PlantUML.
\begin{figure}
\centering
\begin{plantuml}
@startuml
package "p" #DDDDDD {
package "sp1" #DDDDDD {
class A<T> {
+ n : uint
+ t : float
}
class B {
+ d : double
- setB(b: B): void
+ getB(): B
}
note bottom of Class: A note on class B
}
package "sp2" #DDDDDD {
interface C << interface >> {
+ n : uint
+ s : string
}
}
class D {
+ n : uint
}
sp2 ..> sp1 : N1
note on link: An annotation
B <|--D
B "1 toto" --> "0..* tata" C
D "1" o-- D : tutu
D *--> "titi 0..*" C : << vector >>
}
@enduml
\end{plantuml}
\caption{PlantUML-Diagramm}
\label{fig:plantuml}
\end{figure}