From 96313208b3cd6e1cb92e6822b3b4728a61842a83 Mon Sep 17 00:00:00 2001 From: Philipp3107 Date: Fri, 9 Dec 2022 10:45:51 +0100 Subject: [PATCH] Updated everything. Further explanation in README --- Main.java | 6 ++++- domain/C3PO.java | 2 ++ domain/RobotBasics.java | 24 ++++++++++++------ out/production/Robot_Factory_PR/Main.class | Bin 1001 -> 518 bytes .../Robot_Factory_PR/domain/Robot.class | Bin 158 -> 0 bytes .../Robot_Factory_PR/domain/RobotBasics.class | Bin 1844 -> 1856 bytes .../domain/RobotControl.class | Bin 236 -> 0 bytes .../roboter/interfaces/Robot.class | Bin 0 -> 193 bytes .../roboter/interfaces/RobotControl.class | Bin 0 -> 248 bytes .../{ => interfaces}/RobotInstructions.class | Bin 314 -> 325 bytes .../roboter/interfaces/Sorting.class | Bin 0 -> 231 bytes .../exceptions/RobotException.java | 2 +- .../RobotIllegalStateException.java | 2 +- .../exceptions/RobotMagicValueException.java | 2 +- {domain => robot/interfaces}/Robot.java | 4 +-- .../interfaces}/RobotControl.java | 2 +- .../interfaces}/RobotInstructions.java | 6 ++--- robot/interfaces/Sorting.java | 6 +++++ 18 files changed, 37 insertions(+), 19 deletions(-) delete mode 100644 out/production/Robot_Factory_PR/domain/Robot.class delete mode 100644 out/production/Robot_Factory_PR/domain/RobotControl.class create mode 100644 out/production/Robot_Factory_PR/roboter/interfaces/Robot.class create mode 100644 out/production/Robot_Factory_PR/roboter/interfaces/RobotControl.class rename out/production/Robot_Factory_PR/roboter/{ => interfaces}/RobotInstructions.class (57%) create mode 100644 out/production/Robot_Factory_PR/roboter/interfaces/Sorting.class rename {roboter => robot}/exceptions/RobotException.java (82%) rename {roboter => robot}/exceptions/RobotIllegalStateException.java (84%) rename {roboter => robot}/exceptions/RobotMagicValueException.java (84%) rename {domain => robot/interfaces}/Robot.java (80%) rename {domain => robot/interfaces}/RobotControl.java (99%) rename {roboter => robot/interfaces}/RobotInstructions.java (94%) create mode 100644 robot/interfaces/Sorting.java diff --git a/Main.java b/Main.java index 60da185..bc56eb5 100644 --- a/Main.java +++ b/Main.java @@ -1,8 +1,12 @@ import domain.C3PO; -import roboter.exceptions.RobotException; public class Main { public static void main(String[] args) { + + C3PO Herbert = new C3PO(0, "Herbert"); + int[] input = {6,5,4,3,2,1}; + + //just some testing /*C3PO Herbert = new C3PO(0, "Herbert"); int[] input = {6,5,4,3,2,1}; diff --git a/domain/C3PO.java b/domain/C3PO.java index fc35f48..3bb12b0 100644 --- a/domain/C3PO.java +++ b/domain/C3PO.java @@ -5,4 +5,6 @@ public class C3PO extends RobotBasics { super(id, name); } + + } diff --git a/domain/RobotBasics.java b/domain/RobotBasics.java index 6677497..20d5cf0 100644 --- a/domain/RobotBasics.java +++ b/domain/RobotBasics.java @@ -1,7 +1,11 @@ package domain; -import roboter.exceptions.RobotException; -import roboter.exceptions.RobotIllegalStateException; +import robot.exceptions.RobotException; +import robot.exceptions.RobotIllegalStateException; +import robot.interfaces.Robot; +import robot.interfaces.RobotControl; +import robot.interfaces.RobotInstructions; + public class RobotBasics implements Robot { private int id; @@ -14,7 +18,7 @@ public class RobotBasics implements Robot { this.power = false; } /** - * @see domain.RobotControl + * @see RobotControl */ @Override public int getId() { @@ -22,7 +26,7 @@ public class RobotBasics implements Robot { } /** - * @see domain.RobotControl + * @see RobotControl */ @Override public String getName() { @@ -30,7 +34,7 @@ public class RobotBasics implements Robot { } /** - * @see domain.RobotControl + * @see RobotControl */ @Override public void triggerPowerSwitch() { @@ -42,7 +46,7 @@ public class RobotBasics implements Robot { } /** - * @see domain.RobotControl + * @see RobotControl */ @Override public boolean isPowerOn() { @@ -50,7 +54,7 @@ public class RobotBasics implements Robot { } /** - * @see roboter.RobotInstructions + * @see RobotInstructions */ @Override public String speak(int[] zahlen) throws RobotException { @@ -66,10 +70,14 @@ public class RobotBasics implements Robot { } /** - * @see roboter.RobotInstructions + * @see RobotInstructions */ @Override public int[] think(int[] zahlen) throws RobotException { return new int[0]; } + + + + } diff --git a/out/production/Robot_Factory_PR/Main.class b/out/production/Robot_Factory_PR/Main.class index 47f4d16ca64f5494217e9e83951c54208ec0a3a4..02d59ac53b0b5ea30505962ba61d49e263d31737 100644 GIT binary patch delta 236 zcmYLDyAA~O2C}C-mbrKPcAyJpfLiX zKpY8TmTEv2A%KO iwt*Cq=%TFZoL_{h!e|O@NK{$a<JF@IoMx6oyzs((p7bCuN|WX{Lkd7x|12 zkf`wk{06^8U8lt;LgGA}efDkbwf8>r?Z>CD0G6?2B8IqxVIhH}Kz`qS>)I{XZ`w|M zUo|3u8$7)gv!z>}hww!XT~+B)T2t9%!VU_0mPGG=_0a;<|+! zxOt9w^?f%|Z4wR+$$zMy>IL=|IYeZl+;-W-ZH!3Vv2Yjn1O|Il&&RN@j?QTL1Swu5 zpr>(PU^EQsL8L-ky=$mW%c1O0g2`DuGq?}qpI<+M4GU3!xhO;qwf`Q4Y6I|K+h@t5d z-1>mb*>&ugsMA=$63ND)S&Xxq=91xqE+Iv)iCJn37+{peUoVSQT6 zGH*}tlsB@YeU37NGV`CYN(m!)j(Lva1?|I#{UjWJ;Fl6o5?x4)O2(DxjbZT@3l7!z diff --git a/out/production/Robot_Factory_PR/domain/Robot.class b/out/production/Robot_Factory_PR/domain/Robot.class deleted file mode 100644 index dc6d4b334c6a041af646a4185e591786a6bf85db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 158 zcmX^0Z`VEs1_nC@ZgvJHMh2dg{M^LMJpG{jr2G=lr~qqWm0o1`b9B$s&->)FOxpo_WP3MWx9lnfZCej0{}C`K3k4scxA$ isXz|c3O$hNK=T+Gm>HNDSQ*%XZealOIDsS+0~Y`ot|*NF diff --git a/out/production/Robot_Factory_PR/domain/RobotBasics.class b/out/production/Robot_Factory_PR/domain/RobotBasics.class index ea9e091dd6320f8ff08e409f023f3beb5c681fea..d04f6ed6d6b800773bd856fdc7fce2fe2dbb5975 100644 GIT binary patch delta 134 zcmdnOcYtq04x_L{QGQZ>NotXPW*(4COH58J-dxOR!z{?pz``KFz{w!Uz{eoOAj}{< z`2b4*qvT{kRvSh|ASpUInbn+ElYyNq%8vngB=4m egFR5U1A{D(R%UQwP-SqLoXb|h=sWotn;!rUq#Gds delta 114 zcmX@Ww}o#*4kJ5HN`7u)X5Qv{MjK{9ZUzuV6bA~X0Qh8vSE+~(#i~W45|zc PlPlRO7(FL{V)Fw46S5V= diff --git a/out/production/Robot_Factory_PR/domain/RobotControl.class b/out/production/Robot_Factory_PR/domain/RobotControl.class deleted file mode 100644 index 1859193210d99a0b6d257a1ebd909342e27d80c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 236 zcmYk0O9}!p5Jao}jsO24bmJUAa3ctUs5s!lT^vJwkap?9!np-sH8d+VpxcxST+1w#8IZX(WvQSoYjlBp*YmGtuiAwL+-2@!8g zah8PsV7U0T6YsQ9V?vjWQqryMUApA1eR>SHTS7%&Lb@^`*%7LVy}DG+bjA-m|1_iT g>k@&R%ncM6u80yFW&>BVtW(Fn(Rt9#Ua~Xgy;pK+KA=)BNR=WXK#jzqHz&BRQLrV)z`ymt2lS&V7GLOP zXLd9@n*IIzxd3>>Bt=AccDAx!x?CHcU!s<6{&ABQ)_7-|6fxm(FHRzFgi-mr+RNG# zx=Q+DN9fG6f{^mI5(i0`&9mj*U3#aDdL=wDQA)avJxf=fwXeU!?UvBjZBW-HD4&Eu tX^*a!@4Df@>Hjt_x9EhxPW}Oixm*_s6YhXsz&-{6hZwPgFy3yUit>~4OHzyUGxLCCT4Hi)@kViFMgT9P4W0l1 delta 32 ocmX@gw2Mjn)W2Q(7#JAr7zEfEm>3x(i}I85OHzwADk(Dp0H?kQKmY&$ diff --git a/out/production/Robot_Factory_PR/roboter/interfaces/Sorting.class b/out/production/Robot_Factory_PR/roboter/interfaces/Sorting.class new file mode 100644 index 0000000000000000000000000000000000000000..d73ca12890902e4abba16676d573b6ba7de7652f GIT binary patch literal 231 zcmYk0y$ZrW5QJx=<}_MZ3EJ3dV;&$N*aQNCV8F)e63%cT-ofSK!&&$MK9qRz2W@7T z*>8urKdv_bYYZ7Y!p!JQTVX<}oSt|t>M+&DN>wm)3FDGqcvx{&guAR1xh1greJ4y7 z$7H$v5veuqFCqk~ZcHv>SqZ}ElecO?!gSv#E6?H}YnfGIqm;JXO08