summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex
new file mode 100644
index 00000000000..0582e54f6e7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/association.tex
@@ -0,0 +1,22 @@
+\begin{tikzpicture}
+ \begin{class}[text width=7cm]{Flight}{0,0}
+ \attribute{flightNumber : Integer}
+ \attribute{departureTime : Date}
+ \attribute{flightDuration : Minutes}
+ \attribute{departingAirport : String}
+ \attribute{arrivingAirport : String}
+
+ \operation{delayFlight ( numberOfMinutes : Minutes )}
+ \operation{getArrivalTime ( ) : Date}
+ \end{class}
+
+ \begin{class}{Plane}{11,0}
+ \attribute{airPlaneType : String}
+ \attribute{maximumSpeed : MPH}
+ \attribute{maximumDistance : Miles}
+ \attribute{tailID : String}
+ \end{class}
+
+ \association{Plane}{assignedPlane}{0..1}{Flight}{0..*}{assignedFlights}
+
+\end{tikzpicture}