From d7a505607d083c9df4cf69289e92add834d70963 Mon Sep 17 00:00:00 2001 From: Philipp3107 Date: Wed, 21 Dec 2022 16:44:49 +0100 Subject: [PATCH] updated Exceptions with Enum of errormessages and Exception Storage. Also added a new Exception *ArrayEmptyException* and an Exception Storage to get the last Exception that occured. --- Main.java | 38 ++++++- domain/C3PO.java | 37 +++++-- domain/R2D2.java | 93 ++++++---------- domain/RobotBasics.java | 101 ++++++++++++++++-- out/production/Robot_Factory_PR/Main.class | Bin 1110 -> 1973 bytes out/production/Robot_Factory_PR/README.md | 26 ++++- .../Robot_Factory_PR/domain/C3PO.class | Bin 607 -> 2439 bytes .../Robot_Factory_PR/domain/R2D2.class | Bin 2967 -> 1250 bytes .../Robot_Factory_PR/domain/RobotBasics.class | Bin 1170 -> 3805 bytes out/production/Robot_Factory_PR/makefile | 9 +- .../exceptions/ArrayEmptyException.class | Bin 0 -> 489 bytes .../robot/exceptions/ExceptionStorage.class | Bin 0 -> 1032 bytes .../robot/exceptions/RobotException$1.class | Bin 0 -> 802 bytes .../robot/exceptions/RobotException.class | Bin 373 -> 1605 bytes .../RobotIllegalStateException.class | Bin 421 -> 510 bytes .../exceptions/RobotMagicValueException.class | Bin 415 -> 504 bytes .../robot/exceptions/robotExceptions.class | Bin 0 -> 1135 bytes robot/exceptions/ArrayEmptyException.java | 7 ++ robot/exceptions/ExceptionStorage.java | 35 ++++++ robot/exceptions/RobotException.java | 18 +++- .../RobotIllegalStateException.java | 5 +- .../exceptions/RobotMagicValueException.java | 9 +- robot/exceptions/robotExceptions.java | 5 + robot/interfaces/RobotInstructions.java | 8 +- 24 files changed, 297 insertions(+), 94 deletions(-) create mode 100644 out/production/Robot_Factory_PR/robot/exceptions/ArrayEmptyException.class create mode 100644 out/production/Robot_Factory_PR/robot/exceptions/ExceptionStorage.class create mode 100644 out/production/Robot_Factory_PR/robot/exceptions/RobotException$1.class create mode 100644 out/production/Robot_Factory_PR/robot/exceptions/robotExceptions.class create mode 100644 robot/exceptions/ArrayEmptyException.java create mode 100644 robot/exceptions/ExceptionStorage.java create mode 100644 robot/exceptions/robotExceptions.java diff --git a/Main.java b/Main.java index 0b35a7d..3ed5b96 100644 --- a/Main.java +++ b/Main.java @@ -5,21 +5,49 @@ public class Main { public static void main(String[] args) { - int[] input = {42,6,5,4,3,2,1}; + int[] input = {42,6,5,4,3,43,1}; int[] input2 = input; C3PO Herbert = new C3PO(1, "Herbert"); R2D2 Herb = new R2D2(0, "Herb"); + int[] input3 = {}; //Herbert.triggerPowerSwitch(); - Herb.triggerPowerSwitch(); +// Herb.triggerPowerSwitch(); +// try{ +// String sorted = Herb.speak(input); +// System.out.println(sorted); +// } catch (RobotException re) { +// System.out.println(re); +// } + try{ - String array = Herb.speak(input); - System.out.println(array); - } catch (RobotException e) { + int[] sorted = Herb.think(input); + for(int i = 0; i < sorted.length; i++){ + System.out.print(" " + sorted[i]); + } + }catch(RobotException re){ + System.out.println(re); + } + + + String re = Herb.getLastException().toString(); + System.out.println(re); + + Herb.triggerPowerSwitch(); + + try{ + int[] sorted = Herb.think(input); + for(int i = 0; i < sorted.length; i++){ + System.out.print(" " + sorted[i]); + } + }catch(RobotException e){ System.out.println(e); } + re = Herb.getLastException().toString(); + System.out.println(re); + //System.out.println("Was neues ausgeben"); //just some testing diff --git a/domain/C3PO.java b/domain/C3PO.java index 946bb31..8390c99 100644 --- a/domain/C3PO.java +++ b/domain/C3PO.java @@ -1,8 +1,7 @@ package domain; import robot.exceptions.RobotException; -import robot.exceptions.RobotIllegalStateException; -import robot.exceptions.RobotMagicValueException; +import robot.exceptions.robotExceptions; import java.util.Arrays; import java.util.stream.Collectors; @@ -18,26 +17,46 @@ public class C3PO extends RobotBasics { .mapToObj(Integer::toString) .collect(Collectors.joining("; ")); }else{ - throw new RobotMagicValueException(getName() + " has an unknown Error. Code 42."); + throw new RobotException(robotExceptions.MAGICVALUE, getName()); + // throw new RobotMagicValueException(getName() + " has an unknown Error. Code 42."); } } @Override - public String speak(int[] zahlen) throws RobotException { - //Insertionsort + public String speak(int[] input) throws RobotException { if(isPowerOn()){ try{ - return ausgabe(zahlen); + return ausgabe(input); }catch(RobotException re){ return re.toString(); } }else{ - throw new RobotIllegalStateException(getName() + " is turned off."); + throw new RobotException(robotExceptions.ILLEGALSTATE, getName()); + //throw new RobotIllegalStateException(getName() + " is turned off."); } } + + public int[] sorting(int[] input) throws RobotException{ + if(input.length != 0 ){ + if(checkArray(input)){ + //sort + }else{ + throw new RobotException(robotExceptions.MAGICVALUE, getName()); + //throw new RobotMagicValueException(getName() + " has an unknown error. Code 42"); + } + + } +return new int[0]; + } @Override - public int[] think(int[] zahlen) throws RobotException { - return new int[0]; + 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."); + } } } diff --git a/domain/R2D2.java b/domain/R2D2.java index aa3d424..bc8a856 100644 --- a/domain/R2D2.java +++ b/domain/R2D2.java @@ -1,16 +1,9 @@ package domain; +import robot.exceptions.ExceptionStorage; import robot.exceptions.RobotException; -import robot.exceptions.RobotIllegalStateException; -import robot.exceptions.RobotMagicValueException; - -import java.util.Arrays; -import java.util.List; -import java.util.OptionalInt; -import java.util.function.IntPredicate; -import java.util.stream.Collector; -import java.util.stream.Collectors; +import robot.exceptions.robotExceptions; public class R2D2 extends RobotBasics { /** @@ -22,53 +15,45 @@ public class R2D2 extends RobotBasics { super(id, name); } - /*Sorting sort = (int[] input) -> { - int small; - for(int i = 0; i < input.length -1; i++){ - small = i; - for(int j = i + 1; j < input.length; j++){ - if(input[j] < ) - } - } - }*/ - public int[] think(int[] zahlen) throws RobotException { + public int[] think(int[] input) throws RobotException { if(isPowerOn()){ - return sorting(zahlen); + return selectionSort(input); }else{ - throw new RobotIllegalStateException(getName() + " is turned off!"); + this.exceptions = new ExceptionStorage( new RobotException(robotExceptions.ILLEGALSTATE, getName())); + throw new RobotException(robotExceptions.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-350,3 +368,9 @@ Textdatei in Ihr Projekt, in der Sie die notwendigen Erweiterungen und evtl. Än * Testen Sie Ihre Implementierung möglichst umfangreich. Wir werden es auf jeden Fall tun. ! * Nutzen Sie für die gemeinsame Arbeit an der Implementierung ein Git-Repository und nutzen Sie regelmäßig. * Es müssen von allen Team-Mitgliedern jeweils mindestens fünf Commits mit substanziellem Inhalt auf den main-Branch gepusht werden. + + + +# Fragen an Hummel + +Was ist mit der Umwandlung von zahlen in arrays den inhalt mit Kommas getrennt gemeint? \ No newline at end of file diff --git a/out/production/Robot_Factory_PR/domain/C3PO.class b/out/production/Robot_Factory_PR/domain/C3PO.class index c81272f70a590cb936018d8621a88aecd5524416..4c06df2a0b584878dd1aad61d10932fd167a83af 100644 GIT binary patch literal 2439 zcma)7TUQ%Z6#h;^GB8XajWo4f%B{8G*0ffEnp%YjG#V}vine$=Ne*EknMr3RwEY1- z_!ICC_)2}C7hTn7m%qv7J~KlYNNrs#l5=+U-ru*sv-dfF{qyn_fIE1sB80GlHVqL( z84_i)#&sjTZWc{vp4)oKW{BR_4c)oJkWA(ByL_LgtK6uh3y!55mCV?tigt7;P&ITy zW9amAWN)smGN`2;QQDicEdGQclG@6RJy6kwZUu1-=a68CyD1xvUQN4h647=n!D|dd zGQh)h9XxwFXE=mT9+?D{(WBu!l9Zj->s3M-Nd-f;8%D{|O+yAP`s++5-o-@)y&C$^ z&(M29;Vc3}dyUsO%+=y9LnamA^4i2fWIvV9v>lfiLYW~ILl{;tqG1%58TwkFvu3p_ zN{(rf5X!De+8Y&yX&>5^KD)!Mf_T^vMoDB|1KCVLg}#TY3Q`)zFwStH1%&&3q)RRf8d%l6~KfISup35*6OCE4)Zlk|!;Gmdt{N zMajF}G3l774WwLmHRPmLS}vboSenZhHs&@KWa=+87tPNhQk|mKhOT47ck z4Tqd1Y^>n$(%v$SkB6oP4>Drc1>Yl2i+BvTs=Y2drx`%_5u#;KfLbscR!J=CvVabG z%UqLPO)WTYnhrHAuP+N{$1L03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Y-I*NtWSQGFV9n zV!}X^I!-K9v7$M2q*$8O`8+IV&Ge+q6_?mt$7b9VK`*u`UcVB>DGV?wS#)RRG_e)h>otC*t z>6q%dys3FvlNG5Ms%Y^fD{5v01Vhy?*m9ECx(JnrGw-v`p58+`P=?xHdUPq~qwgz)jOC6g_oVFeFU}90uMz^dCqt;P8xH zv@#bDa6Sd5F6hXzN5}1=lQ#NIm3;LWXIDb;ghlPOZI2X?g<-?X+8K9U6|4ws6m(os z^TZKo@hRok#I&y3b4GbMmPSm!R7_@5epSievS7*RDQRVLhTAe^+jGT2awUEhJIfR& zZWN4F#HT9c%M7g~ZP`SMkdB+4kqm<<){28;wIkW zSXq(ikjzhKB(sn+3u&&&S3dpv|0n%iM3x}yu6&v9%g z5mRj%JJ6L7hz?km;iPiXbq!a?X9ByH+$_sxIjMBq5omh8D7&-7Ks0jz1^C7U-*Id( zRPj2>rvU`{1N8Q-9SJ z%eyk0rnJ&;YJULzE~?w(4^VUed#pdtjTfHKCLUtzkCX`d-q!loTWD(+YOu%m*if>t z=&=dsae-c@d@WIf*SXNRF~~o^KX_HHf9GBm@2TL?#`wIJxrd&{BaPanZmnL6&)>uD zc)ga0Z%f=mL%nt+-k9hP#T)rN8sAnQ8ojNFZ=U{kJIL$L@%z3fg+_v(Lh2epC)E3O z6S}Yi`x)&)zNfpnbBL>bd@&_(f>(vuQHIe@y*G$ch~F3Oc#|uQ`Ui25s{nt;aEU8b zfYf51Dage1%9{ zKf;bDXaydlBY?WDM>y~pJpufLA443G!P6gY4e`N0i46Q;ERoxBzCLAo2 zr4-y5GJ1?B6FfP~ASbbvAt>P6>7#+*7?|;)?N|)6qa0=!Eto}?z$r43XisT`pUnzi w9VUd1!B9mGL0qO>0CULkzKK@zWSfg3S8wB8-1eV8!Y4e9@Z?i`jxVtJAErj#FaQ7m diff --git a/out/production/Robot_Factory_PR/domain/RobotBasics.class b/out/production/Robot_Factory_PR/domain/RobotBasics.class index 2e6d34124353a5af1ca057b19f4e0b2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v?$^ACcZ2Uu z-iFl;pB>pwCv<&YOj96s?)*DUoL@9?yncJzv3D1PzCnT0mR_g5fLgv!cL`CBM5w5T!`R)hCCZty$CT}%EktOfHs zggJ2v!>pWQ&{R*6`x>Ff`5h$!5?Nob+i^){?*rP!i);QTT?q4%s?y|YZJv91-xfwi2 zz!g^cGK#qD>}d~Dxj;TdDM5aqvlNjtv#XV}1$9my^llPi9 z{_{(fW5rJ6P#5WNiKNR6X^~!5A~6|ifl-(F3(4qb5?Q%2F-u|j0z**G(Py9{MBz94 K1Rn8JLG>?vb+KWWi^&l8}u`I;x zWSj_n&y$=oYq3gsKH^$h{F`*mqpTSA+jGq*9#M5umsD%F&Huj#Lm;$P`bJb0&zk?GI~_RMk`n)HXVqNgY|C>i-G|F literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/robot/exceptions/ExceptionStorage.class b/out/production/Robot_Factory_PR/robot/exceptions/ExceptionStorage.class new file mode 100644 index 0000000000000000000000000000000000000000..5f07ef76f67140c983a4c0a192d105602c7b90f1 GIT binary patch literal 1032 zcmah{U2hUm5Iq+tTj&B6S}3g_rBnr~?yD)LFWROiP#bA@U*LkdHn0wvGwxXO^9yYi#5T*o&Kr)EpJo;i>Lnk{`lv`URz z>FQ$j z^p8SUNlzf*_D@Yk(-C-CXKQl8}u>eX@RzbN%2@+fH7&{4#uK;fFW;dag8l$O(R z+)n~qm3h>KlzK3``#K)rp+Kxhy#mEK35&@ByOle~Rc#aLwc8_7reQhqWMp@wcV>2m zjATQ=w&_`cKMBUv2g?^I--ez&!sOxVY^kUE)G?>=U&Cf{-Zw8~gI)RR(DPicIeqoq zK&pm$Gg{`L?%D={WXm0SU3p{$4Xxjl_#$`=lsMK1mpQ^emol_CW1dk6ZuKL6x9N>| zALCi9{eYf& zyYvVd67vyQ^B7Nvk|RQqA_56dXA<7>CXkv6>1$+OpiMI!$Wn8Tq-!Bneq1o4N=>K) kDyU96Gk6MCF4ew6`$}WnMLY}^LKuCVFo6;5AjsPL3q8i~m;e9( literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/robot/exceptions/RobotException$1.class b/out/production/Robot_Factory_PR/robot/exceptions/RobotException$1.class new file mode 100644 index 0000000000000000000000000000000000000000..3c73d7b6364a93ff3f9f017263888057c8efe76b GIT binary patch literal 802 zcmah{+iuf95Ix(tabg^rUZ9~|nijWBC?Wz0@c^o1MQ(|3QWS@vs!tnd)wng@%61B0 zz_0KONC+X+58$H^v!+Ufc!*^0%sHOR@y!1E{o@kA9v&K)Lr#ZgVjg*hYAgpbZHN!P zI8Or^C5?=5CYT|A!Najg7`AHlV|P~k^CAi;>M%@PgUPV*UqV-PoHVc=GwfR4`ylm4 zZGLWL;nq~oUt$tYGUkq3Mf!>BCKga;Fk7zc9N4bcvwIH1=4^#(1WP8CvBIFsco;-H zWXRR(Egd%*)=v2aZ-hKLX>_DF_DB1H2!~D_%UJcTn7F0-8g2Wa)$H5u8%NQ%P29<7 zr~SHjWOuvvk&b%|L}&bNAmSb$gv2bl z(&u5H$AQ9EWXVgpe@3&q!iFcuu`l)mm9hNqbRVhiRN0CAP$ofi(iZ7R4t3NS)@N*n zgmy%dzLW`RHd|37;%3N`L?q=Z?f5R;CswYgEh~?hbyUf25c-H5dBC&pV3$9Quh74! zr}Pbr+TkZ?uQIqwaDEEc2<9{RnbM0`!76T`g8SGeyMrfqN;Zd0DxA;Cm*^X4_JBq2 iBJyu_ifB&`XxPdEwkaKiYIHuxm>PD;8kuf#%7s7PKfkpA literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/robot/exceptions/RobotException.class b/out/production/Robot_Factory_PR/robot/exceptions/RobotException.class index a8a54aa106eeea4e8c64384f83bb3523e7901792..c4d701ed7cccbf0a5474ac2d091563a82acd177f 100644 GIT binary patch literal 1605 zcmbVMTW=Fb6#m9BUfbCu#xc-v-GHG<9PC25n_Do1M6#(=)9}F4WIfo6?HOx!49!2` z2Ow4IQ;Wn!Jn#efO;yF2wMlFowGvv*>^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_!#&Z7=cg#$YWv<1OVe;3_Jh; diff --git a/out/production/Robot_Factory_PR/robot/exceptions/RobotMagicValueException.class b/out/production/Robot_Factory_PR/robot/exceptions/RobotMagicValueException.class index e142b6853c7cd369886b2467dd2a2db1a4348937..3bc7be972e1cf19c56670fc25353242d98b8e2c9 100644 GIT binary patch delta 172 zcmbQw{DYb6)W2Q(7#JAr7(^y=S*e(7_!Q+Q<(KHERwSnulw{`T73+fqT;Y7{iEb-2 zSxPDkQW+VP2&$g=I-AFnff)!H7}&M6btWe=iW;*qurY801r#8{3_J|HKps#510MrF U10$Fvz#z!L1Y`>Vc}xt#0Hs|i>Hq)$ delta 86 zcmeytJfE5C)W2Q(7#JAr7=$KrSuu%fOw3p@*@iKL+m3+=2pJgIw6rI0U=-D4Wng3A e2J*!qq6|C?yg(jMo`H{npMenw1%Nyz20;K7u?yq? diff --git a/out/production/Robot_Factory_PR/robot/exceptions/robotExceptions.class b/out/production/Robot_Factory_PR/robot/exceptions/robotExceptions.class new file mode 100644 index 0000000000000000000000000000000000000000..55a0bc10c43784035861ff19a01a7165c72958bf GIT binary patch literal 1135 zcma)4ZEw<07(JI33bk{HI2>*|*>u1ZMA^PT$Oyp&(>b#u3Gq|Gid{-;pe+6@WrHhj{_if5#Cp z$QptOF=!24ukTfLqgid%8B+Q@afz$L8X{b+?pOC3wN_PsS?BN-4Vr-K`!Aa9>fvFv z&EcyW77=AoHU!gPSbsIYj*1wrD~M`{;|4>p>v*ok5Km|HBlFnIJEq&qA9Rkau3u7- zz)c0q8j`q01uqD7chslK$EGu~4&E?qr)ShP#~cnzGl1a_Y`0gMt-uqA{Hq#n;|@cp zY`eB!VOW|?HB~k;tuTTr4ZRvhBn*vz-qUa&n|yxJ#*mP7=07$-wSEcYn)jN9U({{a zdOqrRtU=T4IE3u{qlwJ?S9_9d44CA64}V`MuV>P)aDb#|8i@N|Czf5+GB!DF7GaL;{tS& z1;t681ENW8GGYV?Ph*q#8H!SL@<$zG;S;W%BldwJhAh29;!Yxd5?fP#5dnd!F_t~U z(m5FC2matcAViz6@DMq1Pu3t7uULRYKS0TDt(;=zqqv?ecOh4h=dI(B;1r@N_sO)8 zJY+(FMCdD6TN*<$+VU8R(GHGjVV9=}<1y8qO#N&s&V3nicht sortiert. * - * @param zahlen Zahlen, die ausgegeben werden sollen. + * @param numbers Zahlen, die ausgegeben werden sollen. * @return Zahlen als String * @throws RobotException wenn der Roboter in einem ungültigen Zustand ist, * oder das Array nicht seinen Vorstellungen entspricht. */ - String speak(int[] zahlen) throws RobotException; + String speak(int[] numbers) throws RobotException; /** * Sortiert ein Array von Zahlen. Die Reihenfolge hängt von dem Typ des * Roboters ab. * - * @param zahlen Zahlen, die sortiert werden sollen. + * @param numbers Zahlen, die sortiert werden sollen. * @return Sortierte Zahlen * @throws RobotException wenn der Roboter in einem ungültigen Zustand ist, * oder das Array nicht seinen Vorstellungen entspricht. */ - int[] think(int[] zahlen) throws RobotException; + int[] think(int[] numbers) throws RobotException; } \ No newline at end of file