annotate detailed-observer.tex @ 19:356aeb2f53f3

merged anderePatterns with AntiPatterns
author meillo@marmaro.de
date Tue, 26 Jun 2007 09:47:28 +0200
parents a7ab86cddfad
children ddd8378a539e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
1 % @file
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
2 % @brief Referat DesignPattern `Observer'
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
3 % @author markus schnalke <meillo@marmaro.de>
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
4 % @since 2007-05-30
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
5
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
6
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
7 \documentclass{beamer}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
8
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
9
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
10 \usepackage[T1]{fontenc}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
11 \usepackage[latin1]{inputenc}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
12 \usepackage{ngerman}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
13 \usepackage{graphicx}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
14 \usepackage[automark]{scrpage2}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
15 \input{Style01}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
16
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
17
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
18
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
19 \begin{document}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
20
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
21
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
22 \title{Design Pattern ``Observer''}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
23 \date{\today}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
24
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
25 \author{Markus Schnalke}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
26
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
27 %\titlegraphic{\includegraphics[width=3cm]{Pics/Maka-Logo.png}}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
28
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
29 \frame{
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
30 \titlepage
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
31 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
32
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
33
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
34
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
35
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
36
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
37 \section[Outline]{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
38 \frame{
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
39 \tableofcontents
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
40 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
41
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
42
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
43
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
44
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
45 \section{Vorgehensweise}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
46
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
47 \frame{ \frametitle{Von der anderen Seite}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
48
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
49 \begin{block}{Gründe}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
50 Design Pattern sind so etwas wie ``Best Practices'' (also bewährte
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
51 Vorgehensweisen), oft \textbf{nach Vorbildern in der Wirklichkeit}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
52 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
53 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
54 \begin{block}{Meine Vorgehensweise}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
55 Ich will nun anhand eines Beispiels aus dem täglichen Leben zeigen, dass
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
56 das Design Pattern ``Observer'' ein absolut natürliches Vorgehen ist, das
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
57 bei ähnlichen Situationen in Programmen deshalb ebenso verwendet werden
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
58 sollte.
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
59 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
60
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
61 % todo: Mehr und ausführlicher; Verweis auf nach dem Vortrag
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
62
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
63 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
64
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
65
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
66 \section{Erarbeitung des Observers}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
67
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
68 \frame{ \frametitle{Ein Beispiel}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
69
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
70 \begin{block}{Die Situation}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
71 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
72 \item Personen die verkaufen möchten
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
73 \item Personen die kaufen möchten
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
74 \item Sie wollen/sollen sich nicht kennen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
75 \item Möglichst effektives Vorgehen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
76 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
77 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
78 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
79 \begin{block}{Vorschläge?}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
80 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
81 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
82 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
83 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
84 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
85
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
86 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
87
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
88
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
89 \subsection{Ansatz}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
90 \frame{ \frametitle{Ansatz}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
91
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
92 \begin{block}{Mögliche Vorgehen}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
93 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
94 \item Personen direkt ansprechen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
95 \item Laut in die Menge rufen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
96 \item Den Freunden erzählen, die es dann weitererzählen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
97 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
98 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
99
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
100 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
101
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
102 \begin{block}{Probleme}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
103 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
104 \item Man weiß nicht wer Interesse hat
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
105 \item nicht mal wieviele
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
106 \item Manche Interessenten sind vielleicht nur zu bestimmten Zeiten da
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
107 \item ... oder sie sind taub
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
108 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
109 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
110
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
111 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
112
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
113
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
114
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
115 \subsection{Erarbeitung einer Lösung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
116
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
117 \frame{ \frametitle{Eine (gute) Lösung: Pinnwand}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
118
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
119 \begin{block}{Funktionsweise}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
120 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
121 \item Man kann Zettel anpinnen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
122 \item Hingehen und nach neuen Zetteln schauen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
123 \item Zettel lesen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
124 \item Zettel abnehmen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
125 \item Jeder der ein paar Fähigkeiten hat kann es
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
126 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
127 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
128
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
129 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
130
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
131 \begin{block}{Probleme}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
132 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
133 \item Man muss hingehen, nur um festzustellen, dass nichts Neues dabei ist
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
134 \item Man kann wichtige Zettel verpassen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
135 \item Zettel sollten nicht weggenommen werden können
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
136 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
137 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
138
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
139 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
140
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
141
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
142
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
143
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
144 \frame{ \frametitle{Verbesserung: Pinnwand-Sekretärin}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
145
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
146 \begin{block}{Lösung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
147 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
148 \item Durch Studiengebühren wird eine Sekretärin für die Pinnwand angestellt
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
149 \item Pinnwand und Sekretärin sind fortan eine Einheit
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
150 \item Man kann bei ihr einen Zettel in Auftrag geben (auch telefonisch)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
151 \item (Sie schreibt mit lesbarer Schrift)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
152 \item Sie verhindert, dass Zettel abgenommen werden
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
153 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
154 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
155
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
156 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
157
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
158 \begin{block}{Bestehendes Problem}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
159 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
160 \item Man läuft immer noch oft unnötig zur Pinnwand
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
161 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
162 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
163
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
164 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
165
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
166
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
167 \frame{ \frametitle{2. Verbesserung: Pinnup-Sekretärin mit Benachrichtigung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
168
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
169 \begin{block}{Lösung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
170 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
171 \item Durch Studiengebühren wird eine längere Arbeitszeit der Sekretärin finanziert
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
172 \item Man kann sich bei der Sekretärin nun als ``Interessierter'' registrieren
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
173 \item Die Sekretärin trägt die Telefonnummer in eine Liste ein
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
174 \item Fortan ruft sie alle Personen der Liste an, wenn sie einen neuen Zettel anpinnt
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
175 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
176 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
177
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
178 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
179
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
180
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
181 \subsection{Zusammenfassung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
182
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
183 % Zusammenfassung des Beispiels: Was haben wir, ist alles abgedeckt
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
184 % Frage: Sind die Zuhörer zufrieden? Ist die Lösung gut?
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
185 \frame{ \frametitle{Zusammenfassung des Beispiels}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
186
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
187 \begin{block}{Pinnwand + Sekretärin + Benachrichtigung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
188 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
189 \item Man kann neue Zettel anpinnen lassen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
190 \item Man kann sich als Interessierter anmelden (und auch abmelden)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
191 \item Interessierte werden bei Änderungen der Pinnwand benachrichtigt
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
192 \item Sie können dann zur Pinnwand gehen und sie sich anschauen
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
193 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
194 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
195
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
196 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
197
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
198 \begin{block}{Eure Meinung?}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
199 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
200 \item Ist diese Struktur zufriedenstellend?
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
201 \item Erfüllt sie alle Anforderungen?
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
202 \item Was fehlt?
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
203 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
204 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
205
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
206 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
207
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
208
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
209
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
210
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
211
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
212
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
213 \section{Nun zum Pattern}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
214
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
215
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
216 \frame{ \frametitle{Überleitung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
217
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
218 \begin{block}{Neue Namen}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
219 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
220 \item Pinnwand-Sekretärin-Einheit -> ``Subject''
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
221 \item Die Zettel auf der Pinnwand -> ``subjectState''
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
222 \item Interessenten -> ``Observers''
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
223 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
224 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
225
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
226 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
227
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
228 \begin{block}{Schnittstellen}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
229 Die Fähigkeiten die Pinnwand/Sekretärin und Interessenten haben müssen um in diesem Schema korrekt zu funktionieren sind ihre ``Interfaces''.
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
230 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
231
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
232 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
233
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
234
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
235 \frame { \frametitle{UML-Diagramm des Observers}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
236 \centerline{ \includegraphics[width=20em]{pics/observer_big.png} }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
237 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
238
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
239
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
240 % Daten aus der Beschreibung des Observers von GoF
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
241 % in welche Gruppen wird er eingeordnet
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
242 \frame{ \frametitle{Beschreibung des Observers}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
243
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
244 \begin{block}{Klassifizierung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
245 Verhaltensmuster, objektbasierend
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
246 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
247
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
248 \begin{block}{Auch bekannt als}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
249 Publish-Subscribe, Dependents
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
250 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
251
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
252 \begin{block}{Zweck}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
253 Abhängigkeiten zwischen Objekten zu erstellen, sodass sich abhängige Objekte ändern, wenn sich das Objekt selbst ändert.
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
254 % todo: besser formulieren
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
255 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
256
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
257 \begin{block}{Kurzbeschreibung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
258 Schnittstellen anlegen, um Abhängigkeiten zwischen Objekten registriert
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
259 werden können, und um die abhängigen Objekte über Zustandsänderungen zu
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
260 informieren.
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
261 % todo: Formulierung überdenken
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
262 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
263
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
264 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
265
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
266
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
267 \subsection{Beispiele}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
268 % Einsatzgebiete (MVC) und RL (Mailingslisten, Ebay-Suchabo)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
269 % nicht aber (Blog + RSS)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
270 \frame{ \frametitle{Der Observer in der Praxis}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
271
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
272 \begin{block}{Beispiele}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
273 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
274 \item Observer ist sehr verbreitet
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
275 \item v.a. MVC (Model = Subject; View = Observer)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
276 \item Mailinglisten
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
277 \item Ebay Such-Abo
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
278 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
279 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
280
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
281 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
282
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
283 \begin{block}{Aber}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
284 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
285 \item nicht Blog mit RSS-Feed!
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
286 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
287 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
288
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
289 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
290
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
291
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
292 \subsection{Erweiterungen}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
293 % Erweiterungen, verbleibende Probleme, Kompromisse beim Design
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
294 \frame{ \frametitle{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
295
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
296 \begin{block}{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
297 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
298
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
299 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
300
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
301
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
302
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
303 \section{Zusammenfassung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
304 \frame{ %\frametitle{Zusammenfassend}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
305 \begin{block}{Zusammenfassung}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
306 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
307 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
308 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
309 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
310 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
311 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
312
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
313 \pause
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
314
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
315 \begin{block}{Fazit}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
316 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
317 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
318 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
319 \item
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
320 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
321 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
322 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
323
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
324
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
325 \section{Fragen}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
326 \frame{ \frametitle{Fragen?}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
327 \vspace{5ex}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
328 \centerline{\huge ?}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
329 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
330
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
331
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
332 % Erklaerung des Vorgehens
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
333 % Frage: war es erfolgreich?
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
334 \frame{ \frametitle{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
335
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
336 \begin{block}{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
337 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
338
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
339 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
340
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
341
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
342 \frame{ \frametitle{Abschließend}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
343 \begin{block}{Verwendete Software}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
344 \begin{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
345 \item Debian GNU/Linux
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
346 \item \LaTeX-Beamer und \texttt{pdflatex}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
347 \item Vim
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
348 \item qiv und ImageMagick
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
349 \item Mercurial
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
350 \end{itemize}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
351 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
352
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
353 \begin{block}{}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
354 \vspace{3ex}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
355 \centerline{\textbf{Danke für eure Aufmerksamkeit}}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
356 \end{block}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
357 }
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
358
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
359
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
360 % Code (Beispiel-Implementierung)
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
361
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
362
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
363
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
364
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
365
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
366
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
367 %\input{main2.tex}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
368
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
369
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
370 \end{document}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
371
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
372
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
373
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
374
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
375
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
376
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
377 %\subsubsection{Fehlteilmanagement}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
378 %\frame{ \frametitle{Fehlteilmanagement}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
379 % %\includegraphics[width=10cm]{Pics/cc.png}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
380 %}
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
381
a7ab86cddfad added other parts but with few content yet
meillo@marmaro.de
parents:
diff changeset
382 % \vspace{2ex}