From e1ba5745383fea8bb2fd6f29372b991bf6ff1cb3 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Thu, 6 Jun 2024 11:15:17 +0200 Subject: [PATCH 1/4] User.java_skeleton --- src/main/java/de/hs_mannheim/domain/User.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/java/de/hs_mannheim/domain/User.java diff --git a/src/main/java/de/hs_mannheim/domain/User.java b/src/main/java/de/hs_mannheim/domain/User.java new file mode 100644 index 0000000..c98fb9d --- /dev/null +++ b/src/main/java/de/hs_mannheim/domain/User.java @@ -0,0 +1,5 @@ +package de.hs_mannheim.domain; + +public class User { + +} From 404c3e29d6d61a10db754f8b7f467a046337246b Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Thu, 6 Jun 2024 11:22:54 +0200 Subject: [PATCH 2/4] System.java_skeleton_user_methods --- .../java/de/hs_mannheim/domain/System.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/java/de/hs_mannheim/domain/System.java diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java new file mode 100644 index 0000000..29f7ab5 --- /dev/null +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -0,0 +1,30 @@ +package de.hs_mannheim.domain; + +import java.util.HashSet; + +public class System { + + private User current_user; + + public HashSet get_all_user(){ + return new HashSet(); + } + + public boolean sign_in_user(String username, String password){ + return true; + } + + public boolean sign_up_user(String username, String password, String hometown, int zip, + String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + return true; + } + + public void sign_out_user(){} + + public boolean change_user_details(String username, String password, String hometown, int zip, + String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + return true; + } + +} + From cf4dfbb0213d61ad7e845d3ddff594a3d43096a9 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Thu, 6 Jun 2024 11:29:09 +0200 Subject: [PATCH 3/4] System.java_skeleton_calc_methods --- .../java/de/hs_mannheim/domain/System.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 29f7ab5..0efdcde 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -1,6 +1,7 @@ package de.hs_mannheim.domain; import java.util.HashSet; +import java.util.TreeSet; public class System { @@ -26,5 +27,36 @@ public class System { return true; } + public TreeSet search(String hometown_or_zip){ + return new TreeSet(); + } + + public TreeSet random_destinations(){ + return new TreeSet(); + } + + public String[] destination_details(String destination_zip){ + return new String[1]; + } + + public String current_weather(){ + return ""; + } + + public String weather_forecast(String destination_zip){ + return ""; + } + + public String distance(String destination_zip){ + return ""; + } + + public String[] travel_time(String destination_zip){ + return new String[1]; + } + + public String calc_co2(String destination_zip){ + return ""; + } } From 60d2271043a57e3a999f1daac88ad45d6fba1116 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Thu, 6 Jun 2024 11:41:53 +0200 Subject: [PATCH 4/4] Application.java_skeleton_all_methods --- .../de/hs_mannheim/facade/Application.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/main/java/de/hs_mannheim/facade/Application.java diff --git a/src/main/java/de/hs_mannheim/facade/Application.java b/src/main/java/de/hs_mannheim/facade/Application.java new file mode 100644 index 0000000..b98778f --- /dev/null +++ b/src/main/java/de/hs_mannheim/facade/Application.java @@ -0,0 +1,47 @@ +package de.hs_mannheim.facade; + +import java.util.TreeSet; + +import de.hs_mannheim.domain.System; + +public class Application { + + private System running_system; + + public Application(){ + this.running_system = new System(); + } + + public boolean sign_in_user(String username, String password){ + return true; + } + + public boolean sign_up_user(String username, String password, String hometown, int zip, + String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + return true; + } + + public void sign_out_user(){} + + public boolean change_user_details(String username, String password, String hometown, int zip, + String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + return true; + } + + public TreeSet search(String hometown_or_zip){ + return new TreeSet(); + } + + public TreeSet random_destinations(){ + return new TreeSet(); + } + + public String[] destination_details(String destination_zip){ + return new String[1]; + } + + public String current_weather(){ + return ""; + } + +}