From 855b7868b6f91276acd0b851b6a8f7d709a3ea09 Mon Sep 17 00:00:00 2001 From: danai Date: Thu, 13 Jun 2024 09:53:25 +0200 Subject: [PATCH] First commit --- TravelBuddyApp/.classpath | 40 ++++++ TravelBuddyApp/.gitignore | 1 + TravelBuddyApp/.project | 23 ++++ TravelBuddyApp/pom.xml | 114 ++++++++++++++++++ TravelBuddyApp/src/main/java/domain/Auto.java | 15 +++ .../main/java/domain/KurztripEmpfehlung.java | 5 + TravelBuddyApp/src/main/java/domain/Ort.java | 20 +++ .../src/main/java/domain/OrtsSuche.java | 5 + .../src/main/java/domain/Reiseplanung.java | 5 + TravelBuddyApp/src/main/java/domain/User.java | 34 ++++++ .../src/main/java/domain/WetterService.java | 6 + .../src/main/java/fassade/ReiseFassade.java | 5 + .../src/main/java/fassade/UserFassade.java | 5 + .../src/main/java/ui/UserInterface.java | 5 + 14 files changed, 283 insertions(+) create mode 100644 TravelBuddyApp/.classpath create mode 100644 TravelBuddyApp/.gitignore create mode 100644 TravelBuddyApp/.project create mode 100644 TravelBuddyApp/pom.xml create mode 100644 TravelBuddyApp/src/main/java/domain/Auto.java create mode 100644 TravelBuddyApp/src/main/java/domain/KurztripEmpfehlung.java create mode 100644 TravelBuddyApp/src/main/java/domain/Ort.java create mode 100644 TravelBuddyApp/src/main/java/domain/OrtsSuche.java create mode 100644 TravelBuddyApp/src/main/java/domain/Reiseplanung.java create mode 100644 TravelBuddyApp/src/main/java/domain/User.java create mode 100644 TravelBuddyApp/src/main/java/domain/WetterService.java create mode 100644 TravelBuddyApp/src/main/java/fassade/ReiseFassade.java create mode 100644 TravelBuddyApp/src/main/java/fassade/UserFassade.java create mode 100644 TravelBuddyApp/src/main/java/ui/UserInterface.java diff --git a/TravelBuddyApp/.classpath b/TravelBuddyApp/.classpath new file mode 100644 index 0000000..d2a08eb --- /dev/null +++ b/TravelBuddyApp/.classpath @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TravelBuddyApp/.gitignore b/TravelBuddyApp/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/TravelBuddyApp/.gitignore @@ -0,0 +1 @@ +/target/ diff --git a/TravelBuddyApp/.project b/TravelBuddyApp/.project new file mode 100644 index 0000000..d31c91f --- /dev/null +++ b/TravelBuddyApp/.project @@ -0,0 +1,23 @@ + + + TravelBuddyApp + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/TravelBuddyApp/pom.xml b/TravelBuddyApp/pom.xml new file mode 100644 index 0000000..07fc4aa --- /dev/null +++ b/TravelBuddyApp/pom.xml @@ -0,0 +1,114 @@ + + 4.0.0 + hs-mannheim.de + TravelBuddyApp + 0.0.1-SNAPSHOT + + + UTF-8 + 21 + 21 + + + + org.junit.jupiter + junit-jupiter-api + 5.8.1 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.8.1 + test + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${maven.compiler.source} + ${maven.compiler.target} + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + + + package + + shade + + + + + + de.hs_mannheim.informatik.mvn.Main + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + + prepare-agent + + + + report + test + + report + + + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.22.0 + + + verify + + check + + + + + + + org.owasp + dependency-check-maven + 9.2.0 + + + + check + + + + + + + + + \ No newline at end of file diff --git a/TravelBuddyApp/src/main/java/domain/Auto.java b/TravelBuddyApp/src/main/java/domain/Auto.java new file mode 100644 index 0000000..df73876 --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/Auto.java @@ -0,0 +1,15 @@ +package domain; + +public class Auto { + + private String name; + private double co2AusstossProKm; + + + public Auto(String name, double co2AusstossProKm) { + this.name = name; + this.co2AusstossProKm = co2AusstossProKm; + } + + +} diff --git a/TravelBuddyApp/src/main/java/domain/KurztripEmpfehlung.java b/TravelBuddyApp/src/main/java/domain/KurztripEmpfehlung.java new file mode 100644 index 0000000..6dc8f7f --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/KurztripEmpfehlung.java @@ -0,0 +1,5 @@ +package domain; + +public class KurztripEmpfehlung { + +} diff --git a/TravelBuddyApp/src/main/java/domain/Ort.java b/TravelBuddyApp/src/main/java/domain/Ort.java new file mode 100644 index 0000000..f04877a --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/Ort.java @@ -0,0 +1,20 @@ +package domain; + +public class Ort { + + private String plz; + private String name; + + + public Ort(String plz, String name) { + this.plz = plz; + this.name = name; + } + + + public String getWettervorhersage() { + + + return "Wettervorhersage"; + } +} diff --git a/TravelBuddyApp/src/main/java/domain/OrtsSuche.java b/TravelBuddyApp/src/main/java/domain/OrtsSuche.java new file mode 100644 index 0000000..89ef44f --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/OrtsSuche.java @@ -0,0 +1,5 @@ +package domain; + +public class OrtsSuche { + +} diff --git a/TravelBuddyApp/src/main/java/domain/Reiseplanung.java b/TravelBuddyApp/src/main/java/domain/Reiseplanung.java new file mode 100644 index 0000000..24a95b9 --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/Reiseplanung.java @@ -0,0 +1,5 @@ +package domain; + +public class Reiseplanung { + +} diff --git a/TravelBuddyApp/src/main/java/domain/User.java b/TravelBuddyApp/src/main/java/domain/User.java new file mode 100644 index 0000000..d705e9f --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/User.java @@ -0,0 +1,34 @@ +package domain; + +public class User { + + private String username; + private String password; + private Ort heimatstandort; + private Auto auto; + private double durchschnittsgeschwindigkeitPKW; + private double durchschnittsgeschwindigkeitFahrrad; + + public User(String username, String password, Ort heimatstandort, Auto auto, double durchschnittsgeschwindigkeitPKW, + double durchschnittsgeschwindigkeitFahrrad) { + this.username = username; + this.password = password; + this.heimatstandort = heimatstandort; + this.auto = auto; + this.durchschnittsgeschwindigkeitPKW = durchschnittsgeschwindigkeitPKW; + this.durchschnittsgeschwindigkeitFahrrad = durchschnittsgeschwindigkeitFahrrad; + } + + public void registrieren() { + // Implementierung der Registrierung + } + + public void einloggen() { + // Implementierung des Logins + } + + public void zeigeWetterHeimatstandort() { + // Implementierung der Wetteranzeige + } + +} diff --git a/TravelBuddyApp/src/main/java/domain/WetterService.java b/TravelBuddyApp/src/main/java/domain/WetterService.java new file mode 100644 index 0000000..e5db229 --- /dev/null +++ b/TravelBuddyApp/src/main/java/domain/WetterService.java @@ -0,0 +1,6 @@ +package domain; + +public class WetterService { + + +} diff --git a/TravelBuddyApp/src/main/java/fassade/ReiseFassade.java b/TravelBuddyApp/src/main/java/fassade/ReiseFassade.java new file mode 100644 index 0000000..3b00e6e --- /dev/null +++ b/TravelBuddyApp/src/main/java/fassade/ReiseFassade.java @@ -0,0 +1,5 @@ +package fassade; + +public class ReiseFassade { + +} diff --git a/TravelBuddyApp/src/main/java/fassade/UserFassade.java b/TravelBuddyApp/src/main/java/fassade/UserFassade.java new file mode 100644 index 0000000..1e6ccba --- /dev/null +++ b/TravelBuddyApp/src/main/java/fassade/UserFassade.java @@ -0,0 +1,5 @@ +package fassade; + +public class UserFassade { + +} diff --git a/TravelBuddyApp/src/main/java/ui/UserInterface.java b/TravelBuddyApp/src/main/java/ui/UserInterface.java new file mode 100644 index 0000000..cbf4c3a --- /dev/null +++ b/TravelBuddyApp/src/main/java/ui/UserInterface.java @@ -0,0 +1,5 @@ +package ui; + +public class UserInterface { + +}