diff --git a/.idea/misc.xml b/.idea/misc.xml index dbb096c..d859d2f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/.idea/modules.xml b/.idea/modules.xml index d2787ab..8909717 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,6 +2,7 @@ + diff --git a/Anwendungsentwicklung/Anwendungsentwicklung.iml b/Anwendungsentwicklung/Anwendungsentwicklung.iml new file mode 100644 index 0000000..114eaf1 --- /dev/null +++ b/Anwendungsentwicklung/Anwendungsentwicklung.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Anwendungsentwicklung/src/P1/Circle.java b/Anwendungsentwicklung/src/P1/Circle.java new file mode 100644 index 0000000..50e0486 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Circle.java @@ -0,0 +1,32 @@ +package P1; + +public class Circle implements Geometry { + private int radius; + + public Circle(int radius) { + this.radius = radius; + } + + public int getRadius() { + return radius; + } + + public void setRadius(int radius) { + this.radius = radius; + } + + + @Override + public double berechneUmfang() { + return 2*Math.PI*radius; + } + + @Override + public double berechneFlaeche() { + return Math.pow(radius,2)*Math.PI; + } + + public String toString(){ + return "Radius: " + radius; + } +} diff --git a/Anwendungsentwicklung/src/P1/Geometry.java b/Anwendungsentwicklung/src/P1/Geometry.java new file mode 100644 index 0000000..d8c00d5 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Geometry.java @@ -0,0 +1,6 @@ +package P1; + +public interface Geometry { + double berechneUmfang(); + double berechneFlaeche(); +} diff --git a/Anwendungsentwicklung/src/P1/Main.java b/Anwendungsentwicklung/src/P1/Main.java new file mode 100644 index 0000000..5a39968 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Main.java @@ -0,0 +1,10 @@ +package P1; + +public class Main { + public static void main(String[] args) { + var rec1 = new Rectangle(11,20); + var rec2 = new Rectangle(10,20); + System.out.println(rec1.equals(rec2)); + System.out.println(rec1.toString()+" "+ rec2.toString()); + } +} \ No newline at end of file diff --git a/Anwendungsentwicklung/src/P1/Person.java b/Anwendungsentwicklung/src/P1/Person.java new file mode 100644 index 0000000..5a1e6ef --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Person.java @@ -0,0 +1,65 @@ +package P1; + +import java.util.Objects; + +public class Person { + private final String name; + private final String city; + private String street; + private String zipcode; + + public Person(final String name, final String city, String street, String zipcode) { + Objects.requireNonNull(name, "NOT NULL"); + Objects.requireNonNull(city, "NOT NULL"); + this.name = name; + this.city = city; + this.street = street; + this.zipcode = zipcode; + } + +// public boolean equals(Person input) { +// if (!name.equals(input.name)) +// return false; +// if (!city.equals(input.city)) +// return false; +// if (!street.equals(input.street)) +// return false; +// if (!zipcode.equals(input.zipcode)) +// return false; +// return true; +// } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Person person = (Person) o; + return Objects.equals(name, person.name) && Objects.equals(city, person.city) && Objects.equals(street, person.street) && Objects.equals(zipcode, person.zipcode); + } + + + public String getName() { + return name; + } + + public String getCity() { + return city; + } + + public String getStreet() { + return street; + } + + public void setStreet(String street) { + this.street = street; + } + + public String getZipcode() { + return zipcode; + } + + public void setZipcode(String zipcode) { + this.zipcode = zipcode; + } +} \ No newline at end of file diff --git a/Anwendungsentwicklung/src/P1/Rectangle.java b/Anwendungsentwicklung/src/P1/Rectangle.java new file mode 100644 index 0000000..ad635c2 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Rectangle.java @@ -0,0 +1,55 @@ +package P1; + +public class Rectangle implements Geometry{ + private int breite; + private int hoehe; + + public Rectangle(int breite, int hoehe) { + this.breite = breite; + this.hoehe = hoehe; + } + + public int getBreite() { + return breite; + } + + public void setBreite(int breite) { + this.breite = breite; + } + + public int getHoehe() { + return hoehe; + } + + public void setHoehe(int hoehe) { + this.hoehe = hoehe; + } + + public boolean equals(Rectangle input){ + if(breite==input.breite && hoehe == input.hoehe){ + return true; + } + return false; + } + + public int hashCode(){ + final int prime = 31; + int result = 1; + result = prime * result + hoehe; result = prime * result + breite; + return result; + } + + public String toString(){ + return "breite: " + breite + "hoehe: " + hoehe+"hash: " + hashCode(); + } + + @Override + public double berechneUmfang() { + return 2*breite+2*hoehe; + } + + @Override + public double berechneFlaeche() { + return hoehe * breite; + } +} diff --git a/Anwendungsentwicklung/src/P1/RefinedPerson.java b/Anwendungsentwicklung/src/P1/RefinedPerson.java new file mode 100644 index 0000000..023e75c --- /dev/null +++ b/Anwendungsentwicklung/src/P1/RefinedPerson.java @@ -0,0 +1,29 @@ +package P1; + +import java.util.Objects; + +public class RefinedPerson extends Person{ + private String nickName; + + public String getNickName() { + return nickName; + } + + public void setNickName(String nickName) { + this.nickName = nickName; + } + + public RefinedPerson(String name, String city, String street, String zipcode) { + super(name, city, street, zipcode); + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RefinedPerson that = (RefinedPerson) o; + return Objects.equals(nickName, that.nickName); + } + + +} diff --git a/Anwendungsentwicklung/src/P1/Test.java b/Anwendungsentwicklung/src/P1/Test.java new file mode 100644 index 0000000..2246dd6 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Test.java @@ -0,0 +1,22 @@ +package P1; + +public class Test { + public static void main(String[] args) { + Geometry[] rec = { + new Rectangle(10,10), + new Rectangle(10,10), + new Rectangle(10,10), + new Rectangle(10,10), + new Circle(10), + new Circle(10), + new Circle(10), + new Circle(10)}; + for(Geometry g:rec){ + System.out.println("Flache: " +g.berechneFlaeche()); + System.out.println("Umfang: "+ g.berechneUmfang()); + System.out.println("String: "+ g.toString()); + } + + } + +} diff --git a/Anwendungsentwicklung/src/P1/Test2.java b/Anwendungsentwicklung/src/P1/Test2.java new file mode 100644 index 0000000..7e9fb38 --- /dev/null +++ b/Anwendungsentwicklung/src/P1/Test2.java @@ -0,0 +1,14 @@ +package P1; + +public class Test2 { + public static void main(String[] args) { + var p1 = new Person("a","a","a","a"); + var p2 = new Person("a","a","a","b"); + var rp1 = new RefinedPerson("a","a","a","b"); + rp1.setNickName("bob"); + var rp2 = new RefinedPerson("a","a","a","b"); + rp2.setNickName("bob"); + System.out.println(p1.equals(p2)); + System.out.println(rp1.equals(rp2)); + } +} diff --git a/Lua/fphw.cls b/Lua/fphw.cls index 9b20ead..96fee06 100755 --- a/Lua/fphw.cls +++ b/Lua/fphw.cls @@ -73,7 +73,7 @@ \titleformat{\subsubsection}[runin]{\bfseries}{ \thesubsubsection.} {1mm}{}[:\quad] -% Geometry lets us modify the sizes of the document nicely +% P1.Geometry lets us modify the sizes of the document nicely \RequirePackage{geometry} % Decent margins for the documents, as it is meant to be printed \geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm} diff --git a/Lua/main.log b/Lua/main.log index 932f92c..fbe15ec 100644 --- a/Lua/main.log +++ b/Lua/main.log @@ -44,7 +44,7 @@ Package: titlesec 2021/07/05 v2.14 Sectioning titles \titlewidthlast=\dimen142 \titlewidthfirst=\dimen143 ) (C:\Users\jordi\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.sty -Package: geometry 2020/01/02 v5.9 Page Geometry +Package: geometry 2020/01/02 v5.9 Page P1.Geometry (C:\Users\jordi\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks17 @@ -751,12 +751,12 @@ LaTeX Font Info: Font shape `T1/phv/m/it' in size <9> not available ] Overfull \hbox (0.14862pt too wide) in paragraph at lines 179--190 -[] []\T1/phv/b/n/10.95 Mo-ti-va-tion:[] \T1/phv/m/n/10.95 In diesem Modul wurde die Be-deu-tung von Mo-ti-va-tion und das Ab-schlieÿen seiner +[] []\T1/phv/b/n/10.95 Mo-ti-va-tion:[] \T1/phv/m/n/10.95 In diesem Modul wurde die Be-deu-tung von Mo-ti-va-tion und das Ab-schlie�en seiner [] [2] [3] Overfull \hbox (19.27174pt too wide) in paragraph at lines 261--269 -\T1/phv/m/n/10.95 analog imag-iniert, son-dern in ein grafis-ches Sym-bol-sys-tem trans-formiert und schlieÿlich +\T1/phv/m/n/10.95 analog imag-iniert, son-dern in ein grafis-ches Sym-bol-sys-tem trans-formiert und schlie�lich [] @@ -771,7 +771,7 @@ Underfull \hbox (badness 10000) in paragraph at lines 274--279 Overfull \hbox (5.52737pt too wide) in paragraph at lines 284--293 -\T1/phv/m/n/10.95 diesen Sit-u-a-tio-nen muss Wis-sen aus dem Langzeitgedächt-nis abgerufen bzw. rekon- +\T1/phv/m/n/10.95 diesen Sit-u-a-tio-nen muss Wis-sen aus dem Langzeitged�cht-nis abgerufen bzw. rekon- [] @@ -783,7 +783,7 @@ Underfull \hbox (badness 10000) in paragraph at lines 284--293 ] Overfull \hbox (6.667pt too wide) in paragraph at lines 298--304 -\T1/phv/m/n/10.95 Hier wird er-läutert, dass diese Meth-ode das Langzeitgedächt-nis an-regt und somit das langfristige +\T1/phv/m/n/10.95 Hier wird er-l�utert, dass diese Meth-ode das Langzeitged�cht-nis an-regt und somit das langfristige [] diff --git a/Lua/main.tex b/Lua/main.tex index e71ccf5..f3ad93b 100755 --- a/Lua/main.tex +++ b/Lua/main.tex @@ -337,7 +337,7 @@ auseinander und hat gute Aufzeichnungen zum weitern Lernen. \subsection*{Erfahrung} In diesem Modul wurden die vier Lerntypen (Hören, Sehen, Lesen, Fühlen/Tasten) nach Vester dargestellt und ein Lerntypentest durchgeführt. -Ein Lerntypentest ist ein Test, um festzustellen, auf welche Art ein Lernender am +Ein Lerntypentest ist ein P1.Test, um festzustellen, auf welche Art ein Lernender am effektivsten lernen kann. Dazu wurden auf verschiedene weisen für 20 Sekunden 10 Objekte bzw. Begriffe vorgestellt, die man dann wieder aufschreiben sollte, um ein objektives Ergebnis festzuhalten. Diese Begriffe wurden als Bild gezeigt, vorgelesen, als Wort gezeigt und zum Mitschreiben diktiert. diff --git a/README.md b/README.md index e69de29..0637a08 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +[] \ No newline at end of file