aboutsummaryrefslogtreecommitdiff
path: root/templates/slides.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-21 19:02:50 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-04-21 19:02:50 +0200
commit43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e (patch)
tree7db66af501208b59024fa051df3b8bbc47edea21 /templates/slides.md
parent17264e9dc27dc73c26af52294756d2566fabca3f (diff)
downloadunterricht-43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e.tar.gz
unterricht-43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e.zip
add sample slides
Diffstat (limited to 'templates/slides.md')
-rw-r--r--templates/slides.md99
1 files changed, 99 insertions, 0 deletions
diff --git a/templates/slides.md b/templates/slides.md
new file mode 100644
index 00000000..e1b7cfb3
--- /dev/null
+++ b/templates/slides.md
@@ -0,0 +1,99 @@
+---
+author: Florian Fischer
+theme: Rochester
+aspectratio: 169
+header-includes: |
+ \usepackage[school]{pgf-umlcd}
+ \usepackage{unicode-math}
+ \usepackage{tikz}
+ \usetikzlibrary{calc}
+---
+
+
+## Klassendiagramm mit pgf-umlcd
+
+\begin{tikzpicture}
+ \begin{class}[text width=5cm]{SPIELAUTOMAT}{0,0}
+ \attribute{walze1 : SPIELWALZE}
+ \attribute{walze2 : SPIELWALZE}
+ \attribute{walze3 : SPIELWALZE}
+ \operation{AlleDrehen()}
+ \end{class}
+
+ \begin{class}[text width=5cm]{SPIELWALZE}{6,0}
+ \attribute{hintergrund : KASTEN}
+ \attribute{farbsymbol : FARBKREIS}
+ \operation{Drehen()}
+ \end{class}
+
+ \association{SPIELAUTOMAT}{}{1}{SPIELWALZE}{3}{}
+\end{tikzpicture}
+
+## Klassendiagramm mit plain tikz
+
+\begin{center}
+\begin{tikzpicture}[
+class/.style={
+draw,
+rectangle,
+minimum width={width("SCHUELER")},
+font=\small}]
+
+\node[class] (schueler) at (0,0) {SCHUELER};
+
+\node[class] (akte) at (5, 0) {AKTE};
+
+\draw(schueler.east) edge[above, align=center] node {\small > hat eine} (akte.west);
+\end{tikzpicture}
+\end{center}
+
+## Code
+
+\small
+
+::: columns
+:::: {.column width=40%}
+```java
+class SCHUELER {
+ private String name;
+
+
+ void SCHUELER(String n,
+ double s)
+ {
+ name = n;
+
+ }
+}
+```
+::::
+
+:::: {.column width=60%}
+```java
+class AKTE {
+ public String spitzname;
+ private double notenschnitt;
+
+ public void AKTE(double s)
+ {
+ notenschnitt = s;
+ spitzname = "";
+ }
+}
+```
+::::
+:::
+
+\normalsize
+
+## Some Text in Boxes
+
+### Merke
+
+Der Grundsatz der **Datenkapselung** besagt, dass nur ein Objekt selbst Zugriff auf seine Attribute haben sollte.
+
+\pause
+
+\vspace{0.75cm}
+
+Der Zugriff von außen sollte nur über durch das Objekt bereitgestellte Methoden erfolgen.