diff --git a/Main.java b/Main.java index 7b9e807..e5f8633 100644 --- a/Main.java +++ b/Main.java @@ -1,6 +1,4 @@ -import domain.*; import facade.FactorySystem; -import safety.robot_exceptions.RobotException; import ui.UI; public class Main { diff --git a/domain/C3PO.java b/domain/C3PO.java index 90f49e0..b25c0ea 100644 --- a/domain/C3PO.java +++ b/domain/C3PO.java @@ -1,8 +1,8 @@ package domain; -import safety.robot_exceptions.ExceptionStorage; -import safety.robot_exceptions.RobotException; -import safety.robot_exceptions.robotExceptions; +import utility.robot_exceptions.ExceptionStorage; +import utility.robot_exceptions.RobotException; +import utility.robot_exceptions.robotExceptions; public class C3PO extends Robot { public C3PO(int id, String name){ @@ -44,14 +44,39 @@ public class C3PO extends Robot { //throw new RobotMagicValueException(getName() + " has an unknown error. Code 42"); } } + + /** + * Sorts any given array of integers with the insertion Sort algorithm. + * @param input int [ ] + * @return input int [ ] (sorted) + * @throws RobotException + */ + public int[] insertionSort(int[] input) throws RobotException { + if (checkArray(input)) { + for (int i = 1; i < input.length; i++) { + int b = i - 1; + int key = input[i]; + while (b >= 0 && input[b] > key) input[b + 1] = input[b--]; + input[b + 1] = key; + } + return input; + }else{ + RobotException robotexception = new RobotException(robotExceptions.MAGICVALUE, getName()); + this.exceptions = new ExceptionStorage(robotexception); + throw robotexception; + } + + } + @Override public int[] think(int[] input) throws RobotException { //Insertionsort if(isPowerOn()){ return sorting(input); }else{ - throw new RobotException(robotExceptions.ILLEGALSTATE, getName()); - // throw new RobotIllegalStateException(getName() + " is turned off."); + RobotException robotException = new RobotException(robotExceptions.ILLEGALSTATE, getName()); + this.exceptions = new ExceptionStorage(robotException); + throw robotException; } } } diff --git a/domain/C3POTest.java b/domain/C3POTest.java index f323dd8..7d323b5 100644 --- a/domain/C3POTest.java +++ b/domain/C3POTest.java @@ -1,7 +1,7 @@ package domain; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import safety.robot_exceptions.RobotException; +import utility.robot_exceptions.RobotException; import static org.junit.jupiter.api.Assertions.*; diff --git a/domain/Factory.java b/domain/Factory.java index 4c6130f..71a2c0d 100644 --- a/domain/Factory.java +++ b/domain/Factory.java @@ -7,7 +7,7 @@ import java.util.HashMap; public class Factory implements Serializable { private HashMap robots = new HashMap<>(); private int c3poID = 0; - private int r2d2ID = 1000; + private int r2d2ID = 10000; public Factory(){ @@ -31,5 +31,9 @@ public class Factory implements Serializable { robots.put(r.getId(), r); return true; } + + public Robot getRobotOfList(int id){ + return robots.get(id); + } } diff --git a/domain/R2D2.java b/domain/R2D2.java index 035e4f3..a70cba1 100644 --- a/domain/R2D2.java +++ b/domain/R2D2.java @@ -1,11 +1,9 @@ package domain; -import safety.robot_exceptions.ExceptionStorage; -import safety.robot_exceptions.RobotException; -import safety.robot_exceptions.robotExceptions; - -import java.io.Serializable; +import utility.robot_exceptions.ExceptionStorage; +import utility.robot_exceptions.RobotException; +import utility.robot_exceptions.robotExceptions; public class R2D2 extends Robot { /** @@ -20,7 +18,7 @@ public class R2D2 extends Robot { /** - * @see safety.interfaces.RobotInstructions + * @see utility.interfaces.RobotInstructions */ public int[] think(int[] input) throws RobotException { if(isPowerOn()){ @@ -32,9 +30,39 @@ public class R2D2 extends Robot { } } + /** + * Sorts any given array of integers with the selection Sort algorithm. + * @param input + * @return + * @throws RobotException + */ + public int[] selectionSort(int[] input) throws RobotException{ + if(checkArray(input)){ + int small; + for(int i = 0; i < input.length; i++){ + small = i; + for(int j = i + 1; j < input.length; j++){ + if(input[j] < input[small]){ + small = j; +// System.out.println(small); + } + } + int temp = input[i]; + input[i] = input[small]; + input[small] = temp; + } + return input; + }else{ + RobotException robotexception = new RobotException(robotExceptions.MAGICVALUE, getName()); + this.exceptions = new ExceptionStorage(robotexception); + throw robotexception; + } + + } + /** - * @see safety.interfaces.RobotInstructions + * @see utility.interfaces.RobotInstructions */ @Override public String speak(int[] input) throws RobotException { diff --git a/domain/Robot.java b/domain/Robot.java index 06b6c49..4442cc4 100644 --- a/domain/Robot.java +++ b/domain/Robot.java @@ -96,7 +96,6 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { /** * This method uses Streams to join any given array to a String. - * * @param input int [ ] * @param delemiter String * @return String (array as String) @@ -114,57 +113,11 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } } - /** - * Sorts any given array of integers with the insertion Sort algorithm. - * @param input int [ ] - * @return input int [ ] (sorted) - * @throws RobotException - */ - public int[] insertionSort(int[] input) throws RobotException { - if (checkArray(input)) { - for (int i = 1; i < input.length; i++) { - int b = i - 1; - int key = input[i]; - while (b >= 0 && input[b] > key) input[b + 1] = input[b--]; - input[b + 1] = key; - } - return input; - }else{ - RobotException robotexception = new RobotException(robotExceptions.MAGICVALUE, getName()); - this.exceptions = new ExceptionStorage(robotexception); - throw robotexception; - } - } - /** - * Sorts any given array of integers with the selection Sort algorithm. - * @param input - * @return - * @throws RobotException - */ - public int[] selectionSort(int[] input) throws RobotException{ - if(checkArray(input)){ - int small; - for(int i = 0; i < input.length; i++){ - small = i; - for(int j = i + 1; j < input.length; j++){ - if(input[j] < input[small]){ - small = j; -// System.out.println(small); - } - } - int temp = input[i]; - input[i] = input[small]; - input[small] = temp; - } - return input; - }else{ - RobotException robotexception = new RobotException(robotExceptions.MAGICVALUE, getName()); - this.exceptions = new ExceptionStorage(robotexception); - throw robotexception; - } + public String getType(){ + return this.type; } @Override diff --git a/facade/FactorySystem.java b/facade/FactorySystem.java index 6ec5f3e..594242b 100644 --- a/facade/FactorySystem.java +++ b/facade/FactorySystem.java @@ -1,5 +1,6 @@ package facade; +import java.io.FileNotFoundException; import java.util.Collection; import java.util.HashMap; import domain.*; @@ -15,9 +16,10 @@ public class FactorySystem { if(Persistenz.existsSavedData(factoryName)){ try{ this.factory = (Factory) Persistenz.loadFactoryData(factoryName); + System.out.println("Loading of old factory successful"); } catch (Exception e) { System.out.println("Loading of old factory not possible"); - System.out.println(e.getCause()); + System.out.println(e.getMessage()); } }else{ this.factory = new Factory(); @@ -38,9 +40,17 @@ public class FactorySystem { public boolean buildNewRobot(String name, int type){ boolean check = factory.buildNewRobot(name, type); if(check) { - Persistenz.saveFactoryData(factory, factoryName); + try { + Persistenz.saveFactoryData(factory, factoryName); + }catch(Exception e){ + System.out.println(e.getCause()); + } } return check; } + public Robot searchForRobot(int id){ + return factory.getRobotOfList(id); + } + } diff --git a/infrastructure/Persistenz.java b/infrastructure/Persistenz.java index c50b74c..08333f3 100644 --- a/infrastructure/Persistenz.java +++ b/infrastructure/Persistenz.java @@ -8,15 +8,10 @@ public class Persistenz { return new File(name + FACTORY_DATA).exists(); } - public static void saveFactoryData(Object Factory, String name){ - try{ + public static void saveFactoryData(Object Factory, String name) throws Exception{ ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(name + FACTORY_DATA)); oos.writeObject(Factory); oos.close(); - }catch(Exception e){ - - } - } public static Object loadFactoryData(String name) throws Exception{ diff --git a/out/production/Robot_Factory_PR/Main.class b/out/production/Robot_Factory_PR/Main.class index 27517b0..bea4650 100644 Binary files a/out/production/Robot_Factory_PR/Main.class and b/out/production/Robot_Factory_PR/Main.class differ diff --git a/out/production/Robot_Factory_PR/README.md b/out/production/Robot_Factory_PR/README.md index 43a3495..946006d 100644 --- a/out/production/Robot_Factory_PR/README.md +++ b/out/production/Robot_Factory_PR/README.md @@ -26,8 +26,8 @@ * [Factrory](#-classe-factory-) * ### [Infrastructure](#infratructure-1) * [Persistenz](#-classe-persistenz-) -* ### [safety](#robot-1) - * ### [safety](#exceptions-1) +* ### [utility](#robot-1) + * ### [utility](#exceptions-1) * [RobotException](#-class-robotexception-) * [RobotIllegalStateException](#-class-robotillegalstateexception-) * [RobotMagicValueException](#-class-robotmagicvalueexception-) @@ -45,15 +45,21 @@ # TO-Dos: -* Sortier Algorythem C3PO, R2D2 (mit Ausgabe) +* Sortier Algorythem C3PO, R2D2 (mit Ausgabe) --[done]-- -* Bei Erstellung eines Roboters wird einne SerienNr erstellt +* Bei Erstellung eines Roboters wird einne SerienNr erstellt --[done]-- -* Wichtige getter for Robots (getName) +* Wichtige getter for Robots (getName) --[done]-- -* Exception Classes (Throwable einfügen) +* Exception Classes (Throwable einfügen) --[done]-- -* RobotFactory, die mit enum(RobotType) Objekt von R2 und C3PO erstellen kann +* RobotFactory, die mit enum(RobotType) Objekt von R2D2 und C3PO erstellen kann --[abgewandelt für Exceptions]-- + +* Persistenz einrichten + +* funktionalitäten der UI zusammenfassen + +* funtkionalitäten der UI implementieren * Nexus6(Singleton) implementieren, kann nichts (Illegal-State) @@ -199,9 +205,9 @@ ___ `loadFactoryData():Object -> throws` -## safety +## utility -### safety +### utility

Class RobotException diff --git a/out/production/Robot_Factory_PR/domain/C3PO.class b/out/production/Robot_Factory_PR/domain/C3PO.class index 2107338..d7c298d 100644 Binary files a/out/production/Robot_Factory_PR/domain/C3PO.class and b/out/production/Robot_Factory_PR/domain/C3PO.class differ diff --git a/out/production/Robot_Factory_PR/domain/C3POTest.class b/out/production/Robot_Factory_PR/domain/C3POTest.class index ec5b81c..5b14853 100644 Binary files a/out/production/Robot_Factory_PR/domain/C3POTest.class and b/out/production/Robot_Factory_PR/domain/C3POTest.class differ diff --git a/out/production/Robot_Factory_PR/domain/Factory.class b/out/production/Robot_Factory_PR/domain/Factory.class index 41206cd..b2de0b8 100644 Binary files a/out/production/Robot_Factory_PR/domain/Factory.class and b/out/production/Robot_Factory_PR/domain/Factory.class differ diff --git a/out/production/Robot_Factory_PR/domain/R2D2.class b/out/production/Robot_Factory_PR/domain/R2D2.class index d93fbf9..54b8f8b 100644 Binary files a/out/production/Robot_Factory_PR/domain/R2D2.class and b/out/production/Robot_Factory_PR/domain/R2D2.class differ diff --git a/out/production/Robot_Factory_PR/domain/Robot.class b/out/production/Robot_Factory_PR/domain/Robot.class index 37b3a75..ea0b3c0 100644 Binary files a/out/production/Robot_Factory_PR/domain/Robot.class and b/out/production/Robot_Factory_PR/domain/Robot.class differ diff --git a/out/production/Robot_Factory_PR/facade/FactorySystem.class b/out/production/Robot_Factory_PR/facade/FactorySystem.class index 2e404a2..df80877 100644 Binary files a/out/production/Robot_Factory_PR/facade/FactorySystem.class and b/out/production/Robot_Factory_PR/facade/FactorySystem.class differ diff --git a/out/production/Robot_Factory_PR/infrastructure/Persistenz.class b/out/production/Robot_Factory_PR/infrastructure/Persistenz.class index 38db354..9c31bf5 100644 Binary files a/out/production/Robot_Factory_PR/infrastructure/Persistenz.class and b/out/production/Robot_Factory_PR/infrastructure/Persistenz.class differ diff --git a/out/production/Robot_Factory_PR/safety/interfaces/Robot.class b/out/production/Robot_Factory_PR/safety/interfaces/Robot.class deleted file mode 100644 index abedae1..0000000 Binary files a/out/production/Robot_Factory_PR/safety/interfaces/Robot.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/interfaces/RobotControl.class b/out/production/Robot_Factory_PR/safety/interfaces/RobotControl.class deleted file mode 100644 index bf76523..0000000 Binary files a/out/production/Robot_Factory_PR/safety/interfaces/RobotControl.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/interfaces/RobotInstructions.class b/out/production/Robot_Factory_PR/safety/interfaces/RobotInstructions.class deleted file mode 100644 index 78060e1..0000000 Binary files a/out/production/Robot_Factory_PR/safety/interfaces/RobotInstructions.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/ArrayEmptyException.class b/out/production/Robot_Factory_PR/safety/robot_exceptions/ArrayEmptyException.class deleted file mode 100644 index 1e5de9f..0000000 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/ArrayEmptyException.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/ExceptionStorage.class b/out/production/Robot_Factory_PR/safety/robot_exceptions/ExceptionStorage.class deleted file mode 100644 index d643427..0000000 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/ExceptionStorage.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotIllegalStateException.class b/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotIllegalStateException.class deleted file mode 100644 index 207e044..0000000 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotIllegalStateException.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotMagicValueException.class b/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotMagicValueException.class deleted file mode 100644 index 4d7d141..0000000 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotMagicValueException.class and /dev/null differ diff --git a/out/production/Robot_Factory_PR/test_factoryFactory.ser b/out/production/Robot_Factory_PR/test_factoryFactory.ser index 9e07453..45cdbe0 100644 Binary files a/out/production/Robot_Factory_PR/test_factoryFactory.ser and b/out/production/Robot_Factory_PR/test_factoryFactory.ser differ diff --git a/out/production/Robot_Factory_PR/ui/UI.class b/out/production/Robot_Factory_PR/ui/UI.class index 0cda82e..50def97 100644 Binary files a/out/production/Robot_Factory_PR/ui/UI.class and b/out/production/Robot_Factory_PR/ui/UI.class differ diff --git a/out/production/Robot_Factory_PR/utility/interfaces/Robot.class b/out/production/Robot_Factory_PR/utility/interfaces/Robot.class new file mode 100644 index 0000000..c5ef463 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/interfaces/Robot.class differ diff --git a/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class b/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class new file mode 100644 index 0000000..6db39f0 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class differ diff --git a/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class b/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class new file mode 100644 index 0000000..7e1d54f Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class new file mode 100644 index 0000000..19a7b23 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class new file mode 100644 index 0000000..0775674 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotException.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class similarity index 54% rename from out/production/Robot_Factory_PR/safety/robot_exceptions/RobotException.class rename to out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class index c3c0717..fdcc11e 100644 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/RobotException.class and b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class new file mode 100644 index 0000000..a058331 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class new file mode 100644 index 0000000..90d2da7 Binary files /dev/null and b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class differ diff --git a/out/production/Robot_Factory_PR/safety/robot_exceptions/robotExceptions.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class similarity index 57% rename from out/production/Robot_Factory_PR/safety/robot_exceptions/robotExceptions.class rename to out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class index f848019..d731254 100644 Binary files a/out/production/Robot_Factory_PR/safety/robot_exceptions/robotExceptions.class and b/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class differ diff --git a/test_factoryFactory.ser b/test_factoryFactory.ser index 3648c0e..45cdbe0 100644 Binary files a/test_factoryFactory.ser and b/test_factoryFactory.ser differ diff --git a/ui/UI.java b/ui/UI.java index 6317070..4addbf7 100644 --- a/ui/UI.java +++ b/ui/UI.java @@ -1,5 +1,8 @@ package ui; +import domain.C3PO; +import domain.R2D2; +import domain.Robot; import facade.FactorySystem; import infrastructure.Persistenz; @@ -34,12 +37,12 @@ public class UI { mainloop: while(true){ System.out.println(); - System.out.println("______________________"); + System.out.println("____________________________"); System.out.println("Sie haben folgende optionen:"); - System.out.println("-1- show all robots ----"); - System.out.println("-2- build new robot ----"); - System.out.println("-3- empty --------------"); - System.out.println("-4- Exit ---------------"); + System.out.println("-1- --- show all robots ----"); + System.out.println("-2- --- build new robot ----"); + System.out.println("-3- ------- use robot ------"); + System.out.println("-4- --------- Exit ---------"); System.out.print(" > "); try{ int input = Integer.parseInt(sc.nextLine()); @@ -47,7 +50,7 @@ public class UI { case 1: listAllRobots();break; case 2: buildNewRobot();break; - case 3: System.out.println("u pressed 3");break; + case 3: useRobot();break; case 4: break mainloop; default: System.out.println("this is an invalid option"); break; @@ -94,4 +97,18 @@ public class UI { System.out.println("Anlegen des Roboters fehlgeschlagen"); } } + + private void useRobot(){ + System.out.println("Which robot do you want to use?"); + listAllRobots(); + System.out.print(" ID > "); + int input = Integer.parseInt(sc.nextLine()); + Robot r = fs.searchForRobot(input); + System.out.println("You choose " + r.getName() + " of type " + r.getType()); + System.out.println("Yout have following options"); + mainloop: + while(true){ + + } + } } diff --git a/utility/interfaces/Robot.java b/utility/interfaces/Robot.java index b7b8bb6..474b644 100644 --- a/utility/interfaces/Robot.java +++ b/utility/interfaces/Robot.java @@ -1,5 +1,5 @@ /* (c) 2012 Thomas Smits */ -package safety.interfaces; +package utility.interfaces; /** diff --git a/utility/interfaces/RobotControl.java b/utility/interfaces/RobotControl.java index 945f9e4..b204e0e 100644 --- a/utility/interfaces/RobotControl.java +++ b/utility/interfaces/RobotControl.java @@ -1,5 +1,5 @@ -package safety.interfaces; -import safety.robot_exceptions.RobotException; +package utility.interfaces; +import utility.robot_exceptions.RobotException; /** * Das Interface repräsentiert einen einfachen Roboter mit seinen Funktionen. diff --git a/utility/interfaces/RobotInstructions.java b/utility/interfaces/RobotInstructions.java index 9604568..8d4d3c4 100644 --- a/utility/interfaces/RobotInstructions.java +++ b/utility/interfaces/RobotInstructions.java @@ -1,8 +1,8 @@ -package safety.interfaces; +package utility.interfaces; -import safety.robot_exceptions.RobotException; -import safety.robot_exceptions.RobotIllegalStateException; -import safety.robot_exceptions.RobotMagicValueException; +import utility.robot_exceptions.RobotException; +import utility.robot_exceptions.RobotIllegalStateException; +import utility.robot_exceptions.RobotMagicValueException; /** diff --git a/utility/robot_exceptions/ArrayEmptyException.java b/utility/robot_exceptions/ArrayEmptyException.java index 9f84044..6ec8001 100644 --- a/utility/robot_exceptions/ArrayEmptyException.java +++ b/utility/robot_exceptions/ArrayEmptyException.java @@ -1,4 +1,4 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; public class ArrayEmptyException extends RobotException{ public ArrayEmptyException(robotExceptions type,String errorMessage){ diff --git a/utility/robot_exceptions/ExceptionStorage.java b/utility/robot_exceptions/ExceptionStorage.java index 4d1b342..289976c 100644 --- a/utility/robot_exceptions/ExceptionStorage.java +++ b/utility/robot_exceptions/ExceptionStorage.java @@ -1,9 +1,10 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; +import java.io.Serializable; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -public class ExceptionStorage { +public class ExceptionStorage implements Serializable { private RobotException message; private LocalDateTime date; diff --git a/utility/robot_exceptions/RobotException.java b/utility/robot_exceptions/RobotException.java index 26bcc23..e8d1485 100644 --- a/utility/robot_exceptions/RobotException.java +++ b/utility/robot_exceptions/RobotException.java @@ -1,4 +1,4 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; public class RobotException extends Exception{ robotExceptions currentType; diff --git a/utility/robot_exceptions/RobotIllegalStateException.java b/utility/robot_exceptions/RobotIllegalStateException.java index ddfd269..5dcd6b7 100644 --- a/utility/robot_exceptions/RobotIllegalStateException.java +++ b/utility/robot_exceptions/RobotIllegalStateException.java @@ -1,4 +1,4 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; public class RobotIllegalStateException extends RobotException{ diff --git a/utility/robot_exceptions/RobotMagicValueException.java b/utility/robot_exceptions/RobotMagicValueException.java index 9bd1fa4..2fb8d2b 100644 --- a/utility/robot_exceptions/RobotMagicValueException.java +++ b/utility/robot_exceptions/RobotMagicValueException.java @@ -1,4 +1,4 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; public class RobotMagicValueException extends RobotException { public RobotMagicValueException(robotExceptions type, String errormessage) { diff --git a/utility/robot_exceptions/robotExceptions.java b/utility/robot_exceptions/robotExceptions.java index 12b7f10..8ac8e3d 100644 --- a/utility/robot_exceptions/robotExceptions.java +++ b/utility/robot_exceptions/robotExceptions.java @@ -1,4 +1,4 @@ -package safety.robot_exceptions; +package utility.robot_exceptions; public enum robotExceptions { ILLEGALSTATE("ist in einem illegalen Zustand"),