summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/schule/doc/schule-abstandThread.tex
blob: 9a3731f1f99ffc26d308cdd71fe13e85639e6963 (plain)
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
60
\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\input{etc.tex}
\begin{document}
\section*{Zusätzlicher Abstand bei einem Thread}
 \begin{lstlisting}[gobble=6,multicols=2,caption={}]
			\begin{sequencediagram}
			  \scaleSequenzdiagramm{0.8}
			  \newthread{fritz}{fritz}
			  \newthreadtwo{mutter}
				  {mutter}{5cm}
			  \newinst[2]{wecker}{wecker}
			  \newinst[2]{lampe}{lampe}
			  
			  \begin{callself}[2]{fritz}{
			    schlafe()}{}
			  \end{callself}
			  \begin{call}{fritz}{
			    gibUhrzeit()}{wecker}
			      {''5:30''}
			  \end{call}
			  \begin{callself}[2]{fritz}{
			    schlafe()}{}
			      \begin{call}{mutter}{
			        gibUhrzeit()}{wecker}
			          {''6:30''}
			      \end{call}
			      \begin{call}{mutter}{
			        schalteAn()}{lampe}{}
			      \end{call}
			      \begin{call}{mutter}{
			        weckeAuf()}{fritz}{}
			      \end{call}
			  \end{callself}
			\end{sequencediagram}
	 \end{lstlisting}
 \vspace{0.6cm}
 \hrule width \textwidth
 \vspace{1cm}
			\begin{sequencediagram}
			  \scaleSequenzdiagramm{0.8}
			  \newthread{fritz}{fritz}
			  \newthreadtwo{mutter}{mutter}{5cm}
				\newinst[2]{wecker}{wecker}
				\newinst[2]{lampe}{lampe}
				
				\begin{callself}[2]{fritz}{schlafe()}{}
				\end{callself}
				\begin{call}{fritz}{gibUhrzeit()}{wecker}{''5:30''}
				\end{call}
				\begin{callself}[2]{fritz}{schlafe()}{}
				\begin{call}{mutter}{gibUhrzeit()}{wecker}{''6:30''}
				\end{call}
				\begin{call}{mutter}{schalteAn()}{lampe}{}
				\end{call}
				\begin{call}{mutter}{weckeAuf()}{fritz}{}
				\end{call}
				\end{callself}
			\end{sequencediagram}
\end{document}