From 6626d0c4ce3270613f62708c56df72c1554a163e Mon Sep 17 00:00:00 2001 From: Philipp3107 Date: Tue, 10 Jan 2023 00:32:43 +0100 Subject: [PATCH] my changes --- Main.java | 4 +- out/production/Robot_Factory_PR/Main.class | Bin 574 -> 594 bytes .../Robot_Factory_PR/domain/C3POTest.class | Bin 3582 -> 0 bytes .../Robot_Factory_PR/domain/Factory.class | Bin 2160 -> 0 bytes .../Robot_Factory_PR/domain/Nexus6.class | Bin 1318 -> 0 bytes .../domain/Robot$RobotType.class | Bin 1127 -> 0 bytes .../Robot_Factory_PR/domain/Robot.class | Bin 3804 -> 0 bytes .../Robot_Factory_PR/src/domain/C3PO.class | Bin 0 -> 1948 bytes .../Robot_Factory_PR/src/domain/Factory.class | Bin 0 -> 2311 bytes .../Robot_Factory_PR/src/domain/Nexus6.class | Bin 0 -> 1441 bytes .../Robot_Factory_PR/src/domain/R2D2.class | Bin 0 -> 1929 bytes .../Robot_Factory_PR/src/domain/Robot.class | Bin 0 -> 4126 bytes .../src/domain/RobotType.class | Bin 0 -> 1260 bytes .../src/facade/FactorySystem.class | Bin 0 -> 1864 bytes .../Robot_Factory_PR/src/tests/C3POTest.class | Bin 0 -> 4599 bytes .../Robot_Factory_PR/src/ui/UI$1.class | Bin 0 -> 633 bytes .../Robot_Factory_PR/src/ui/UI.class | Bin 0 -> 4740 bytes .../src/utility/interfaces/Robot.class | Bin 0 -> 205 bytes .../src/utility/interfaces/RobotControl.class | Bin 0 -> 329 bytes .../interfaces/RobotInstructions.class | Bin 0 -> 286 bytes .../ArrayEmptyException.class | Bin 0 -> 549 bytes .../robot_exceptions/ExceptionStorage.class | Bin 0 -> 1120 bytes .../robot_exceptions/RobotException.class | Bin 0 -> 1421 bytes .../RobotIllegalStateException.class | Bin 0 -> 570 bytes .../RobotMagicValueException.class | Bin 0 -> 564 bytes .../robot_exceptions/robotExceptions.class | Bin 0 -> 1510 bytes .../Robot_Factory_PR/test_factoryFactory.ser | Bin 497 -> 0 bytes .../{domain => tests}/R2D2Test.class | Bin 1329 -> 1335 bytes out/production/Robot_Factory_PR/ui/UI.class | Bin 3981 -> 0 bytes {domain => src/domain}/C3PO.java | 27 ++-- {domain => src/domain}/Factory.java | 31 ++-- {domain => src/domain}/Nexus6.java | 24 +-- {domain => src/domain}/R2D2.java | 16 +- {domain => src/domain}/Robot.java | 48 +++--- src/domain/RobotType.java | 14 ++ {facade => src/facade}/FactorySystem.java | 20 ++- .../infrastructure}/Persistenz.java | 0 .../Robot_Factory_PR/domain/C3PO.class | Bin 1841 -> 1841 bytes .../Robot_Factory_PR/domain/Factory.class | Bin 0 -> 2259 bytes .../Robot_Factory_PR/domain/R2D2.class | Bin 1822 -> 1822 bytes .../Robot_Factory_PR/domain/Robot.class | Bin 0 -> 3983 bytes .../facade/FactorySystem.class | Bin 1770 -> 1832 bytes .../infrastructure/Persistenz.class | Bin 0 -> 1877 bytes .../production/Robot_Factory_PR/ui/UI.class | Bin 0 -> 4657 bytes .../utility/interfaces/Robot.class | Bin 193 -> 193 bytes .../utility/interfaces/RobotControl.class | Bin 321 -> 321 bytes .../interfaces/RobotInstructions.class | Bin 278 -> 278 bytes .../ArrayEmptyException.class | Bin 529 -> 529 bytes .../robot_exceptions/ExceptionStorage.class | Bin 1100 -> 1100 bytes .../robot_exceptions/RobotException.class | Bin 1397 -> 1397 bytes .../RobotIllegalStateException.class | Bin 550 -> 550 bytes .../RobotMagicValueException.class | Bin 544 -> 544 bytes .../robot_exceptions/robotExceptions.class | Bin 1486 -> 1486 bytes src/ui/UI.java | 144 ++++++++++++++++++ .../utility}/interfaces/Robot.java | 4 +- .../utility}/interfaces/RobotControl.java | 4 +- .../interfaces/RobotInstructions.java | 8 +- .../robot_exceptions/ArrayEmptyException.java | 2 +- .../robot_exceptions/ExceptionStorage.java | 7 +- .../robot_exceptions/RobotException.java | 7 +- .../RobotIllegalStateException.java | 6 +- .../RobotMagicValueException.java | 6 +- .../robot_exceptions/robotExceptions.java | 2 +- test_factoryFactory.ser | Bin 497 -> 0 bytes {domain => tests/tests}/C3POTest.java | 59 +++---- {domain => tests/tests}/R2D2Test.java | 4 +- ui/UI.java | 108 ------------- 67 files changed, 318 insertions(+), 227 deletions(-) delete mode 100644 out/production/Robot_Factory_PR/domain/C3POTest.class delete mode 100644 out/production/Robot_Factory_PR/domain/Factory.class delete mode 100644 out/production/Robot_Factory_PR/domain/Nexus6.class delete mode 100644 out/production/Robot_Factory_PR/domain/Robot$RobotType.class delete mode 100644 out/production/Robot_Factory_PR/domain/Robot.class create mode 100644 out/production/Robot_Factory_PR/src/domain/C3PO.class create mode 100644 out/production/Robot_Factory_PR/src/domain/Factory.class create mode 100644 out/production/Robot_Factory_PR/src/domain/Nexus6.class create mode 100644 out/production/Robot_Factory_PR/src/domain/R2D2.class create mode 100644 out/production/Robot_Factory_PR/src/domain/Robot.class create mode 100644 out/production/Robot_Factory_PR/src/domain/RobotType.class create mode 100644 out/production/Robot_Factory_PR/src/facade/FactorySystem.class create mode 100644 out/production/Robot_Factory_PR/src/tests/C3POTest.class create mode 100644 out/production/Robot_Factory_PR/src/ui/UI$1.class create mode 100644 out/production/Robot_Factory_PR/src/ui/UI.class create mode 100644 out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class create mode 100644 out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class create mode 100644 out/production/Robot_Factory_PR/src/utility/interfaces/RobotInstructions.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/ArrayEmptyException.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotMagicValueException.class create mode 100644 out/production/Robot_Factory_PR/src/utility/robot_exceptions/robotExceptions.class delete mode 100644 out/production/Robot_Factory_PR/test_factoryFactory.ser rename out/production/Robot_Factory_PR/{domain => tests}/R2D2Test.class (58%) delete mode 100644 out/production/Robot_Factory_PR/ui/UI.class rename {domain => src/domain}/C3PO.java (79%) rename {domain => src/domain}/Factory.java (67%) rename {domain => src/domain}/Nexus6.java (55%) rename {domain => src/domain}/R2D2.java (85%) rename {domain => src/domain}/Robot.java (73%) create mode 100644 src/domain/RobotType.java rename {facade => src/facade}/FactorySystem.java (81%) rename {infrastructure => src/infrastructure}/Persistenz.java (100%) rename {out => src/out}/production/Robot_Factory_PR/domain/C3PO.class (95%) create mode 100644 src/out/production/Robot_Factory_PR/domain/Factory.class rename {out => src/out}/production/Robot_Factory_PR/domain/R2D2.class (95%) create mode 100644 src/out/production/Robot_Factory_PR/domain/Robot.class rename {out => src/out}/production/Robot_Factory_PR/facade/FactorySystem.class (79%) create mode 100644 src/out/production/Robot_Factory_PR/infrastructure/Persistenz.class create mode 100644 src/out/production/Robot_Factory_PR/ui/UI.class rename {out => src/out}/production/Robot_Factory_PR/utility/interfaces/Robot.class (66%) rename {out => src/out}/production/Robot_Factory_PR/utility/interfaces/RobotControl.class (71%) rename {out => src/out}/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class (68%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class (86%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class (94%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class (93%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class (87%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class (87%) rename {out => src/out}/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class (92%) create mode 100644 src/ui/UI.java rename {utility => src/utility}/interfaces/Robot.java (70%) rename {utility => src/utility}/interfaces/RobotControl.java (97%) rename {utility => src/utility}/interfaces/RobotInstructions.java (90%) rename {utility => src/utility}/robot_exceptions/ArrayEmptyException.java (82%) rename {utility => src/utility}/robot_exceptions/ExceptionStorage.java (88%) rename {utility => src/utility}/robot_exceptions/RobotException.java (80%) rename {utility => src/utility}/robot_exceptions/RobotIllegalStateException.java (66%) rename {utility => src/utility}/robot_exceptions/RobotMagicValueException.java (65%) rename {utility => src/utility}/robot_exceptions/robotExceptions.java (89%) delete mode 100644 test_factoryFactory.ser rename {domain => tests/tests}/C3POTest.java (66%) rename {domain => tests/tests}/R2D2Test.java (95%) delete mode 100644 ui/UI.java diff --git a/Main.java b/Main.java index e5f8633..023cd66 100644 --- a/Main.java +++ b/Main.java @@ -1,5 +1,5 @@ -import facade.FactorySystem; -import ui.UI; +import src.facade.FactorySystem; +import src.ui.UI; public class Main { public static void main(String[] args) { diff --git a/out/production/Robot_Factory_PR/Main.class b/out/production/Robot_Factory_PR/Main.class index bea465011120741388563fc37bfd9b6783c8f1c0..2f9982dfe4704635beca238444f1119244788766 100644 GIT binary patch delta 79 zcmdnTa*1Vv9jiofQL_HTg(4G!EoC`D?9xpAP){xfJ_bP^237_kMh008ABdX8Y*J8` UC@&)eQ)wn612boT- dm*f{!23HoBq~=;PGBA~9GBU9HOs-(O1pu)B6V(6! diff --git a/out/production/Robot_Factory_PR/domain/C3POTest.class b/out/production/Robot_Factory_PR/domain/C3POTest.class deleted file mode 100644 index 5b148533445498fa5a25c0b6088b13b8485646b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3582 zcmbVOT~iy^8GeqwR+1MZ1lUlpBPae4;zKnMY(wnE*kEG|L=45oNX7U62S9;f(-gMf!&)HoG@sUoZGtz3$Iq!Mi_kG^y zJx722&!4{oa1Ect5kOEuNJSVCfy9RPM9Y>mvzX1VZs-L^Ao7l38qPI=V7hN9hA3hR z;wp|o6=+?v%9>$jZ;Z_67xgNw1IC(wn2F-JfO1>6S9RNwn-VJ8kQ4}+T3HuJ=Jp&d zIJRLHClquD9BTrMqa7z?Tqgxiq-PHA@WSaHWtlE@D_9W>npkyy+(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rmSK`sH)(f^mQ&cmG(P3M`-}vBfm!ali!YJG z*U00Kn8yqLzG8u7%iLz+wi@O5vhntNbiv_4Bjvg4muQ%XCJQ6zanUc4L980*yb_&5 z@R^0~UeAI{1*icxZy zm1FnX95PD5`{!^!h8v<7E zk{$H`El(S?{N1PJ)*)JwAN`+vbnpaCk%vKc>Xil`L%d_;ZPLb2I4s((EL0oJ%xcCPN57KQusntax z3m^P8PEE`{$H`fqS?sYp!G1oQq~Tgz`#uY)kvKZ3f=QmjmzZH)BV%ZxyKOrC87)4c z&1baw1y7@2lABLy{VUr4hC4pz3HNL6dqx%f*5xL{!gceOl{yJhNaVkRpZ^yrT&*(z diff --git a/out/production/Robot_Factory_PR/domain/Factory.class b/out/production/Robot_Factory_PR/domain/Factory.class deleted file mode 100644 index b5330ad802710aaa1a7ef469e7bcdf8db7158e7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2160 zcmZuyTUQ%Z6#h;w3=9J#K#_Zkv@{8{!GOIGE-HwP4Nx1TLcMg73}I-{=voD=UAlbs#dlx)A1;^mJ0}wp3J;k%bI#u1{=U8U+4=q7pMM1~4_Ai|ehmQw zK{N@3cFjj-yl9pR@wM!(m2(A}X6=&g&I|Y>(G3mF0%2uTaqVLKmU*zVV(#nE;BP@I z3=M4t+R-78Mkbg3KHhBfe4}k&9-ZmO{x~?IYBJt z?I&9?jtLD{3|vKAptBydW+I^Nm51GLXO&$&}P~cMZFtUP%pa3m9JR z@5+qpn8tMjH*k~8T&GHxLQi;Ccj=uJXsvlCmJ&Kos^{9aiseJVZGKSwiC}-W!o&; zPt0tQ{n3)K3nkO7l)1jv(2?FfnQdU^iB6_#*_O3R&NKgkMJG@HjC z@&awyie1dFT3;z;vZqdKN=3KieKPl$@Xpi6Jab8gs%r^a+peZ497#oA&xFrrR6XNV z$~kM(d=SXM&o`$e*B^5Z`>??uXP;Vg*zq0Y8Amdo_xQCz55f0f z>=+{U658f5S`MMd{D%m|!k0sb=>Ac8f5K-EJ%Kg^(83rxx*2zXt4;12RUB;LKEH&V zjEpT~B={v`G{>GpKf)V7aP5P{lPo}1b^m71zsmkoo_~hV`II<+l4}#+3$Y^%q{m-i zSl}02T=CCyJti;{=nK3+OyFA#$=zocs&DiF1bZ-S7 zuomOTm|cB}k-@*Hi|1LMlB!vm3d7cD%X)iVVIc{q!Qu5TxRS|n6ELSCJ_7S1e^N?C~_y-350ToWu t%E7)TZjqKgo_9!&10;BaHCE~Mo|sfbda9=X2kpR@3?;j%Ob8zi{sT&V*l+*< diff --git a/out/production/Robot_Factory_PR/domain/Nexus6.class b/out/production/Robot_Factory_PR/domain/Nexus6.class deleted file mode 100644 index 61c70f9d7ffd87220448f33e365fe7b36c5b0f9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1318 zcmbtTZBNrs7(I7v>)I6t69@9HsI+4+U-4xGLkOBBbsrpALik|HXl8Y^Wa|w6E5+y% zm*{tYl=0kdEF#WeT(Y*$bD!s&^PGF{_a9%r0@%QM0uceF>MN z5Bx*h_3|(LeLoP0ue+WbYzP=e(Ryvawexk`tL4ieGL zkZnyMQ7n~rHcMOE0x9dvT0z06z)~x4>u&Ha-;e@cI>%M#C~$qR*;TZC8mma-l7ev^ zmyw~ofo&m9zpcp$i8!vL!~v%KmKSz;D1eqiC{6AAC@Tl+dA|=RQvIA|mjirxJ PrOm(Eq%wNUTm*%m(~m2G diff --git a/out/production/Robot_Factory_PR/domain/Robot$RobotType.class b/out/production/Robot_Factory_PR/domain/Robot$RobotType.class deleted file mode 100644 index 46213d07c426a94b6ba26d06c31d370ed17509ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1127 zcmZ`%Yj4s}7=8{E3bkX1bFiD2iE`P5jonn1g#~AvAz;QNA$}^XVwcjIQWpJJ$`ZF| zH2dt2GQQ`4u4bc6`u2U!^Ip&M>-V>x0CrH6;bWLSvb&mL z070_lwbwOT!h(BHcwXSZ4HYT}f>r%vzq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VLSLaR|)b9_$7A(l=>onui!QO f9&hvfvU>g*AMjSrYA+C>zdSmCzv6HBI|ly;F6OuD diff --git a/out/production/Robot_Factory_PR/src/domain/C3PO.class b/out/production/Robot_Factory_PR/src/domain/C3PO.class new file mode 100644 index 0000000000000000000000000000000000000000..372403a1dbba9025c0d68dc53916c8dfbc80615e GIT binary patch literal 1948 zcmb7FZBrXn6n<{9ut~ZJFC}P7s6}f{c0)oz@r8noND)m4HZ)2*4lZGbuD~v{SyVnc z(?8Mio8t^$YiEQRJ5#?q;}7v4=!}ZbT|y>>l#Y|h?mhSAoacGYId^~i_m`&tX0Q@P z2w@e9hAwmq3^crYVcp#}ZKrVCU32~Ay&X$HnVndw2n?1wElkDKu_d0~mo<*bLl7Jy&?fUkX?e7&lDa5Mv zZQa`OZP#fWD>HXu$B;r=!!RxjM11#{6s62`a2~}KjHq~3!)v%oInE6e#BGIX2xtqX z(%gKpR9!AE&k5uM;hu}~)bT);YZ~5=IMofyUo^KZi9IXxrVGqw{-3|I(q(HZass30 zvT6~k`mSeg5Q2fcgisI|djW)?BwG%qvb88veO<#iCIn*ENk%AD;e0MFA59Q}IB#i~ z#M^XKzi-tyi=Joh33Rb;vUg?P-qrA)Oj@j5oL`u&6-#&KWToBEFb$S=+;$q4Ckv$N zdMvnZdGOu>yQWjkXKS*n+;uirPsw(y#og^S%Ud?rwm8#Ya_i<+&Gc+(HzyVUzD;6% z0kLL_$~Kr12-)kbdxlaR=2V_P(_ORd?5`TeobfOjI(?OLiEc z_7PrUfC9ntd7salv`VzYe8=>m++&DCs6WvPp(yA02BQ33zy};%Io^p`d`L^K&*2vR z$k9AL;%*c-t2|0zhl0Z2a zf%SfZcpQtU(EAd-sR&h6q`L4a4Jk^Bf7WIb{$HHy;>xOS9N^7|m{z9K#?v1#kyh4c zjC6id8U7wAV>q8weng)!tbAzpRckiYCWARR-^y z2r}f6#Q=0dGBAN0J1Ij=^W-^3xYzLoImwL7pqu-y;WqOS=I#+xIZ~L9Ni1^|;_d|Q zG<8^Q>9E?S12y{_G4T%)LZtqbpQLs{YAr#&qhDDm`f)y^QkSV0YIO} zf55)Zb z5NZUPw#;2KmNWAkvAMM^E8_~(jM;hHO$Y@0B1<}I1)7yp$+dH_X|uRFWA22ZBUp!e z7&;mZoI#^NORjA zxqa3^yV@=cW(Sj#GTu1@9XLy#-|>@kG$E=v)|n2y^9dt{tGuVO9k?JyJC!rT7v#7{`3fJkjwJ6^bX~GP_Qe7>y}AZ_Spr*Q~-~IYLXy$(Xq%lTjJb+tl1m zn`74I$MOc7SOb+dQuji2Y{vZVst;9YgUL|;yDd^VIfo*y6m`b*^r!;yh6*AV8Et|*i zN_Jgl4VQQ|1|aY$f_(Gd=K6Df83Oo%Ki&;Si}j1fi~<92ej#$BU~gAB6#C*(cNQ>$DL z@}G=R8-0rKAzu5Q>oT5X0ismT*Lvs6>@C{YvBBpm{r)7^8otM)hv-c8KSPheFL+}n znBe*fhe+$to*^pm2;FjZL*O?IkA?=izYU6x&>`MRKYsDofDErGIXxU}kY-4U=t46| z$IydOegJOcqM|iSYm72CVJq?D9>Ea3ws4=+8gTxV;+N7*aw0=NqDELHX``RHs{0XysE#B3h5Hsi#9-;gw<@Vz;1~5kQ z3Eadi>m}=vAd61=OW{F`yj+o&mjbyeVVA7s>H)@?f&{y*d_oEiBiPgZ4=8h(UJtS7 qDV(5Zfc8eov6BQ3@d-=yYGaHjBJE|@mq8n`&m7B^`ic+%eElD@&k7v? literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/domain/Nexus6.class b/out/production/Robot_Factory_PR/src/domain/Nexus6.class new file mode 100644 index 0000000000000000000000000000000000000000..eb2234343691c31140203c28b37095b2dcd45445 GIT binary patch literal 1441 zcmbtUYflqF6g^YgZo6G+c@zObQ9#?$Qhec~2qHn#WbFsrG$DL2OWD-bvP-sG1OG}f z+C&ol?vFB_*_MU?)(|)8&d$ue=bU?HZh!s${sX`&UPKTOP)g=OtC?GlB8ZTJum%MY zfzhU0%kMgShGpm9I6ID4Iovk|!hZC!z?gnfKtY9ym;z116$}a_&IS=-#j-7LRUn%x z>hFz@M!sR#^?ccLExTU07&TpuB7q?V!x}~~Dll{k_e4>oSSnZ6OB>4AJ zwEWy%D+q*|`=;@MZIIe7UT`QpHQOg7U|_o_Ac&RgU(gw6=ti$ZqJ*f26sDDL|}Q9QuIF3gm_0|bu{|HMe)=ZF2(IN!^7L@Y^IBjEtY z>0>0fj&L>e4byGhe4RPQ+*Y=Y+h38+{$xN$!k`~KjyNXRg_FLFnGQf#2BGknb?}%m zh^HtpbA|b`t|WiY_(%62)U$-0BlY~HsUukH**r@L@`)WIvDHTI3*yq|(>6sod(O20 G*8c$4Q&i~y literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/domain/R2D2.class b/out/production/Robot_Factory_PR/src/domain/R2D2.class new file mode 100644 index 0000000000000000000000000000000000000000..99e5aab3525870b0319b3199364abd687e1af175 GIT binary patch literal 1929 zcmb7FT~iZR7=BK&uw+>RMiQzJv|l#ajR|VSR)jV}z}NtmV5Z7NyMzT-LN=2uZMp2! zKjE!6y=|Q-%+wis*NgrWe}bK9?Q@o}MM!bXMfSXJ&in53@t%`E|M~4XfGJcW2qCOO z(b0u&fx%X@np<1o{v6_3=cU)*bgdySZ2w z2&dBbWx=41I1&PVExTq{J;$w=-KIwfsg+`SrKsW^0aJF`_MDpI?c|!0=GXT3Rl6Z~ zxAu7#4&n&TVpzq9jwD7&;KWkDS5Vp#(2J!~VJ=@PFXxvF0$HEx|GxQ1IfaelypDJA zo`AYxdkfYU%@|Cjk87x52p>oTJ`|Wvz1?e$cS~1Pd?ax3M6vnv55%W}xs$mBJ=!3A&BkBzX9RJ;ccsh{$xADl)`JW++5H3BWN zW8EKySSJ`=tgmkhME!vZ)TE&&i+RKqYUb2^2|_D;V_(^`s+;pxqm5Dvv?o^akdQok ztHGkymQ|}U<*2wV!-j1UOhW4439VLkx0_Xa){%Nd8Ob`#bSD@{Hu~H!;mVay5ejcMHrS!Kdu} zL%XwK?4s{6B8It((?37M(7mTP!`!(&ygzR|!-ad9J*0kxnfaYnVgJnuUZ7wnl?Sm8 zXE4G+OJO)bF+x;xxaH$B0z3waxJ?XS_MJ4M`33FFx#ZA zyn)mdWdx6P52*|wjTj7!!eo@;x4~1E!#Kuh%_Rz)BEc&pbQNDQyM}8%`CGmuXE9IV z73O=f;ICrbx5!n9R!rg!S7FxuC(?Q#()uBh&Y}Bn7Km5iKbDH9iZ6wrpQryq*Gt63 zYXUBz+;;ZIwzHXiXL}7ZHol8b-pboNiQJ?hGnAk}^0R@rqlaK;0@#^Du)`4juR&X; It|8q07Zwk-OaK4? literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/domain/Robot.class b/out/production/Robot_Factory_PR/src/domain/Robot.class new file mode 100644 index 0000000000000000000000000000000000000000..d139f8cf2c42e7abb3c74e41f4f69169e4973e50 GIT binary patch literal 4126 zcmcIn`Bxj)75<(O42;J%VB-YaaS6t*5Ma5cu^TH*f@Pej6*fkM1l%?qqyffAGxBI; z2e(bPq)WQ*ak?el(#35Px7dkuPSPLxQ&0ba*NP|SlNzduwFmL9)yWj8L`}B{0 z-F+Lt!}yDi7}_+%4YZ>}p!>3U)l8L4XE}9Y@v>F$1v(zG9ov6cpe->x*M&}WY0wSq zfI;%AS4b7zvS~Z18F$eodCV>fh^!>sWneeD1>%lbwgh@}4dHp;vz_I%r0O-W2YUtD zEABPRBkzLT-Dlt)+$*44&lIeRZ@W%aAeEE)YQ9~v{k4=Q6+YcKPfc!+=6%;Qmn|iJ zzkvfdNF)5U3XRyOL_|%V<$hYnA-qq+fPwolC@}V(^a$)(w)~t~^(Q^g^`@+9mD*`; zVt9LlRmkdA(}*D)(Qwqj`;pklh4eNx;d$m71JF_RJW+poEkbw__u-BN|^9sOwHv*{YgMpS1)-jGpW%W!5WD@U9O>036 z&q*X^q`b2N$KOTX=5VEDd7i{M1CPmY>625_v-1-(GZXXDoveY6;G^6wtXPFr1t`{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@1uWk1Byz+J|@OJDS3JTmA zWEKI7&n5KmZgUVT{6VyY1e@V0tRjO_-IY_J12V*ubq6Lx2jt$D6!fJlgneR@Ctt=_ z=#R`&vHE+SQQHZ literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/domain/RobotType.class b/out/production/Robot_Factory_PR/src/domain/RobotType.class new file mode 100644 index 0000000000000000000000000000000000000000..d534e96d17ab8388872dd5b25e42837d7de9a577 GIT binary patch literal 1260 zcmZ`%ZBNrs6n^g7u3ITED=CN{0&3 zX!z`pGM>{-7*Owr-kx)w^PHFa{QmR(7k~l^Dq;dd%|Qx#I6AygGdReQ{`vH*Q+Ig z^qXi#4F)c&Na+~Duz*sn`JO|4npSbo-nX+g+uO~qSN5E0kkgRH6&0g8#&DI2oB~$8 zR-LNt+qIUn{#Ibo?8#oK+0ACI$59FzuD6@(t-u5!|1}-gaf61*yPg{qXcN6u-ON{3 znWwy|V-mM$X8|oyz_?f<0YxL=9VWdiU`BCW%(BV}Booj%by~+g%G4C1XJ)=);&X`MngbN&%5kXZLjue-LYd6CKwdtfDhanp|1m64rH6Rb?Jr9=Po!kN zVB&mhdPvu4P3h33G?w2RVxe%&<->!#~jgtC7X z=rtd6>Xqd~vwB1NQebGN6EM4_AP02}VVE{GM^?j_nl@9%*&Kms5-w^OVZ4f1)!CDl z-6E!_pVDy}9|&k6If21a=gndQcRM#ls`Y7@1kPSmMW+M%X*%PFi=5}(4Da<3T2 z8G(rs!>3FcXFKE6s+rJX#;Y5K>3Q4rS`t&3)-a`<7$JaY116Jwe!xpV@aj&#KhSB=Y!J$0wK-NbZ>a3Zs)dO!?qU_K3KL zNlzo1L>iZLe1^*cI!*346~`|z!z#+`z2mK}=(viaKu@J^)vBxJqrgfae@s@7<|Meb zaj0xpQ>EA5l4YB#^}UMeZYX!E z)f_|CHl=H+b+{>b5LR1zo)wb6Yk2~v0xztyj%HS>mwjnGSdseyo`#L~st!83nau08 zS|B+QV|LK{F`w!S40o^yvLeuB?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-*cxTIPuu4dOxg4+= zUymEZGu9H7A|$B1hM}W50FhDZM9z&pDNh%bWwIn4;&=uF~FV|f`T&nLu^kDw%j51=OFO%Kp~pK}3Nd_L#eiXueKMvjV{(>xu#0h=SB zM0)|>UW2>Vmi!Z1XOf@M-e+ijg!TvMsM(ZvD=?Z?{?+WY`Su*H$@t3BH18x8+o%0l zn|-q#53y?viH&AE7-VOi+2##qZ@Ff>s%EeFW_Qa-`Jvf^Ye=pi)tqc6dcbZv*@NwP zp04&_7jducWA~O0c{}kjI>Wt5%;TQ39`EbLH4N0ec&P7(iUYhG9;~w--_m+t)%s=M z`mUQGMNbCfkjV;Q3enn$Dvg7g76VlR=hj?Y;9-2;t{)o}e z&_i4d_H;kQSKVYQxPVDa^N%`_rB=wF-oaba#Ep%7w`?d$!uL0K4=HO;85)D=n7mPPVz z)#$&t2U%njVM&3oUl_4ucC1o0VqCtF;W9C?iQti*hsb+;_ZMV2tY46s*~y%{OiO1(}wosu{B3+yJPbCjQ_#vF4en4f&LFuJHK3nR#t${Qp1 zci2KbSs1)4ve3T6!U(v9u@j-kG|yklER1SZXcq~&wgKz+s<8achvnQRSmKNSCmwBV z%L(Gp!}32_#iN%8Ah1L{3TWdYCEIg?tz$2D-NU165Vt7putk)~+uKzv_Er%%Reb{) z?j3q9)bp@t+l)oxnXve76^p+UaCu^9WJCy&38t=0xK45)+ zNEUq0#U{zbb@JerJPB~M^2YFeY=W$H$qvP3M~7rb2LfK(bgQwIzc@!)>!}e7&|~F* zOtVERgrh}*5OU9xWR^(Om7=^KfX%pe>bCgK-{*XYs~>Q4AMriFu)oi5d1v_n=kDSY RetyB3C})0&U*k9E{0|!b<4XVl literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/ui/UI$1.class b/out/production/Robot_Factory_PR/src/ui/UI$1.class new file mode 100644 index 0000000000000000000000000000000000000000..851bd42e589c55634c78d7b5e07c1cf977e8ef98 GIT binary patch literal 633 zcmZuuT~E|N6g{(Bw%byq;tC6XfKqVx#YTM8@UlW|+z-P7KJemfJ7H%nGo&9Ff055> zVvI5T0DqM6P9^FCNoUSIckY~Xd*|n`@0S2}(REQn-G=314h@D@p2cCJ&$v|Kfu88% z@WZ)aXk75L6gk6cr+d=BuI8D8CL9~Chk1Am^QNej;ZYPkVOS5w?`08B2mCysgW!)t z@Sj8NByy;g8y*(nGgt>ZFLoG~ulF)dFL}6y7K5#`L@J&#)H~hC#xld&j9>6DTwxQ_oYaay)4t2@o0Nktvq^9Uyp3uVetQ57)@p(E*P56<5VhH>{hzR)KO0-G>OH& zRAN}3O+oSYQzBD)Nqv)}5B(*&ir#hGF zbRdeUPHb#5IDbb+Z45TDAMp@l8lA61zxbO>EiXcEG2{s#6Dh2H=G literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/ui/UI.class b/out/production/Robot_Factory_PR/src/ui/UI.class new file mode 100644 index 0000000000000000000000000000000000000000..685eb77042c0f7be50feb706dcabead022ae3178 GIT binary patch literal 4740 zcma)9iGLN<75*mMyo3=jAwpPW(5P7mVRIuSHY6a?Bp_iC(CXy9o4kR^Onfsh3DKgp zZdKdb*4Cv~ajB`=4GO`cA}w9*zHfg)|AYSev(oR}8Ip$tZGOMZy))D1ki?mR-g#QCQ2-nqRhbDea?u}>^c5m^OpX7DjgXpTkraA)MlW#u70P9l!1%2 zQa*CM=DxJ!`zlwC3d}NLS-1$Z&#}^XAdJ+Ifg;y8P~ELpxs(4+YQ!TQl#==4@qS8QU zU}3i`8*tK2Mm2A8(ov8*5IaaGs<6bur2;}l*2xb?L&`t>wwSOjEW>36N_=NX8K{hR z(ikxU*B|8KT3lh`N()z^&OnXp59FLM%H`8hKBtOs5k$ z1SJW%&|v)@G1*|D5zD#83!F^iZoKBonbs8e73Z$S#0o-sp_omqByQ6Q-#C_5!;u^K z6==e0NywTDc*ks1;A#uk;98bNkY|-lr*KV-i+xl&@o^R%L>m= zfkn3Tj*tGU!1efqm|K&=1_Mj_TxDmSe&yQ(fj6l9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6mr}L@kTe2$;YTtfj51Y3W+pYN563@i^AuNzR`_ zE03Wzjjhd`bm0d404EsD<4EBxyshIpl;ABWSD_s5W6&roD=YdB%nc@#fXusQ3^JD# zaSn74rUjGO-`#lfd90Ms0*2Puv;1UR@iisYB}-ny{N>dptJjrMR#QsZ10}}9nSV`S zmMGt)aS%F4om@t5Xp+xP{u13t6gDyH8?lPxI^2W}=$?w9o?7p4g%o^8;(3a(p2WL! zQDUe;$r&s`sjie$CQcd5-oH`9(kYU=aU6+pGdGu%PKZAt{gJVt0Cei|$@kIouJ@xc?b+9>Ig0J+|Tv?i81jl&F+b+yh7w?%Q|* zUjUuIfs~40znr{kw4S6y$R4A06DbbdLL9b{>V4$XcG%d#TG`3ExRqG!X5ROp9ec5v zsq4Y*)V_nyJ6Rb0oE3XN{T;VEconf0hUsy4mqNgC*mXI*eKB+V-5}w>v6can;Hjk5AMa& zyuv?+`^m`%@G>4`1|G(1yow*@eflVwdyKq%hjZzLYgysOfAKW z_>pFF9W9^6kC`dS&wQBwMGKSj!uz<5Og>9wruion7vZP)8OIWa_Yi*0**tFW3%>nU bKYy>Ef5e|Dk!$Hg95FYAzu<592WtKY&?&Kn literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class b/out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class new file mode 100644 index 0000000000000000000000000000000000000000..39dc03c7a067319b93a02a831a0b6f20d220f9cc GIT binary patch literal 205 zcmX^0Z`VEs1_nC@ZgvJHMh2PUqGbKjlFXdUl1lx|ypq(Sw8Z4pV*Q}}r2G=IM8u%1?<`tI|l_r;D=I0eN tGH?awmlh?bx@G310y$t8=z%N;TF1!1%)rFJ%D@hEIs=f$2_%^qxBx_EJ81v_ literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class b/out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class new file mode 100644 index 0000000000000000000000000000000000000000..9366ea5ec7b44ac71ffae76afc7dd9e5976cee68 GIT binary patch literal 329 zcmYjNNlpVX5UdVNhJ-Ca{D4bx!4E*aHq(e!YJHIK{9;hj7#+qn7Mz&u_{Hw&_6|+oF%+N~tdOlO-IE#?yax#mNVELO76%b2eSYl}**kvw6(3H-w&V za(5PT=T_uo+f+Av{%Y(q`zQ}e)~>rvt;IY0OZf5pHz11rDlU_;7rqu(!}UnVt-mfo i1SEN3AxL>oIKlH4intGVz2d?@h_iV9ub z|L>f8Iv{JQD&_f@YiaRM(lrmVWH@b}cR`~bbu!hIbi2*mzq>Mo zLTjb3L|O8zp6lQC48cgvbSf^SoqTse|E?urA3hz-K1N0-BfmoE5-l>oKk6L6g1u1a lARuq=i@MOmDn)zWWeBlGhzM9mn?!81flaEWk0az@`wP!Mn$G|L literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class new file mode 100644 index 0000000000000000000000000000000000000000..9379318253ebdce41dca9ce475bd8b3572477e3b GIT binary patch literal 1120 zcmb7DU2hUW6g{(iY@rKOC{U;$RjUG(j*q68zG$18Kx?Go)eJD;G_Y%Shid&*n%LO* z;1BRe8SgG1g(i}ehxxdB?m1`fz5Mz6>oTl)m7u({}U+`K2R2Y30}+KbRhy+Hpl+ zGMGc@dBLe#Uz+;f=bGi$R*+=KT+oj<8ob-xIy%}L4);7Sjy2pdk+zV*I>V#DzE(rY zdyYF4n!gcRp3?m=xN7M##GKwcq3LKdye!qPU)In@Kz$YM z0cE`?-KwbN7U{iqx|Er!D_b6qhHdGdj=9o-Y)cS7aZiF_{ZV-ge7Vf5ZIiaws0dx% zW7wX1)&JT<;G8GUWu5Ba=>ykw+{ScfGJUD*;%1anX>T)24DqHjay#-+`9;g#w7csU z7Z0f^1{faDYWTxWe;32=5$z$0M+ialMz;~g!?YJFKfx+HmoU?bE2J7%$R1a!m)QIs zq&}v#h$yYA1h)`F0x2YEZd2HxDc+_pl`#>X;3?gRG7zTrAdY7!kx+&h3S`2!P@Y+M zOJ5AaCj$8jDKE$-2@Yh*bB=`bfmCjsFq2A5q!^jlnY@hC&L}fd`2q7A9Sr!dhz7x8 PKx2&o6B>r+0jl~BbaN2I literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class new file mode 100644 index 0000000000000000000000000000000000000000..2137eda9452c590e64cf4b4cf6396a9fdd6be7dc GIT binary patch literal 1421 zcmbtU>rN9v6#k|yY}qapS}xWLf`XQ|P_IZ*gNY49lcI?b{9&S*E|apb>@>SmB5&ej zXd-I(;RE%+EI?{ zsH3Vcn^JucA8pZAj`V`+8-20%S7$I=LT!j3;4Q(hRcu^n9I~An2erl?Kjc-Hd#&oG z@*S^LTj;$qk;ae#(?SLoL;lR>l!;;RspC0nm0_aT%doILL@AC~$YPWsI^g@F zEjFXHx$YQD~GCH*6YPv@&010&KG+}m+Q zFxQZBztis1=jR@!%TTvlANad-_}9%nVXLl5i7D#bbvGR)YH8eONU|BmV7>G_;n!Ur z1R^l-h+)1bxqdMlSZ0{M7)oOoC5Ty?oHTW4f)%oD>b-ONO`xP{xK5ew#MvGAn5C1C1b zSnTT=={lZFx%3SaC%6iHCN*-QK{`}TI~l<+9|xWZLuZ7zgF;NUOc-rpmA+z()-Xl? lFIypGvm#s^WD<8npG7Rto~CalTKDjPG?Pvb@fc4~_yb1Mb(sJF literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class new file mode 100644 index 0000000000000000000000000000000000000000..2bbc4b0ef49f2f1bc75b8a24ae0a0c3bb8f2ea2b GIT binary patch literal 570 zcmaJ;O-sW-5PjRmMq{;p-PM~~X^tY1UW!5?crendY~m7Ew%M}Ti2Yff1P}fIf0Q^I zwFjlyfnnaT@6Ff8=i57gA@%~a(DvbVv4Rdmzcg7`S*fI*heoH`-ihZ-%&gQ!8Q!?W zZY0)93t}0?kNk;;iWhm9SR;!(I-dAgWjJe;sq2rG5;<3iin{GFVk zD~!=*D$0`Qb$kDI!4M?6GMTuNZh-yeZ44Y2hw$l&?lCgDBl$H#W3%RD+vJS;Puw8}L7uXrxAgcr4# z3o^JPbuSotu`I=PJxPVWRHMO-X#vF7Wr) z41v&E>4~T+o;Sn&+XI6?R<+K=g|y@EE*fHBnb?O%_p^_Y(FMt`5V}N%4DgQn$FE>7 n6gu$9+jE0Tx)iNawD(j*#i@T)Sn1T% z__-g|^qvDMreA;=4)5)G-s_*gKYjy9BI|{VVcu?5V=c!p4d+v=*{C#}xBADb{=qRC zmfcZgk7Yj?+zMoP7?h1%F1w!26^iL%mSHj14^W&V`4sp$QXrpR-^i5GxtCe49#EhN zbvFN^SWa(krORABq+l392Jfu!EHK30^v4;1ii=(Z6^vk%L9Ut&OJ^7fM{+ybt`;*j zs}|d=?C4b|9>6#*c`>125|@em#35_7>XgN=1~QE-}uRg3pB zZ~%dSMZq+#GI$b(WjINOv0kWd(GY$s$` zA>FX_ddM(My{4JE6?)yW9nIPf5MG#bN9a9|@+@+sS7Cjz(g-k|KIx?N-N7mS*vIjtrcM$cm|(GJ&iCx0}W(;L+tB<*{m zYIY|rg(DP{>S;9JibQ`UB;&+eXtbJD{i(s*G9vExJ;ElD|0M2p{a4@; z+JMTU2N*j9%0gzoP#0&&p4VRc9sj#y)QCK@wurt)2w9bnFkA0r>k4(8ZzYP!jpd^H&NFB literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/test_factoryFactory.ser b/out/production/Robot_Factory_PR/test_factoryFactory.ser deleted file mode 100644 index 45cdbe0f50cd4e081e18b457b8396e2a52c2534b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmYjNJ4gdT6dW%(e-ZHmb`~O5N)BQpC@2^|2j>UvEYwY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244aec 100644 --- a/domain/C3PO.java +++ b/src/domain/C3PO.java @@ -1,15 +1,19 @@ -package domain; +package src.domain; -import utility.robot_exceptions.ExceptionStorage; -import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.robotExceptions; +import src.utility.robot_exceptions.ExceptionStorage; +import src.utility.robot_exceptions.RobotException; +import src.utility.robot_exceptions.robotExceptions; public class C3PO extends Robot { public C3PO(int id, String name){ super(id, name, RobotType.C3PO); } - //returns the sorted list as String with the delimiter ';' + /** + * @param input from the user + * @return the sorted list as String with the delimiter ';' + * @throws RobotException + */ @Override public String speak(int[] input) throws RobotException { if(isPowerOn()){ @@ -45,9 +49,13 @@ public class C3PO extends Robot { this.exceptions = new ExceptionStorage(robotexception); throw robotexception; } - } - //Sorting then returning the input arr with insertion Sort + + /** + * @param input + * @return the input arr after insertion Sort + * @throws RobotException + */ @Override public int[] think(int[] input) throws RobotException { if(isPowerOn()){ @@ -58,7 +66,4 @@ public class C3PO extends Robot { throw robotException; } } -} - - - +} \ No newline at end of file diff --git a/domain/Factory.java b/src/domain/Factory.java similarity index 67% rename from domain/Factory.java rename to src/domain/Factory.java index 18d9b9f..6b9a45a 100644 --- a/domain/Factory.java +++ b/src/domain/Factory.java @@ -1,4 +1,4 @@ -package domain; +package src.domain; import java.io.Serializable; import java.util.Collection; @@ -13,13 +13,15 @@ public class Factory implements Serializable { public Factory(){ } - - //Has to return Collection + /** + * @return Collection + */ public Collection robotListToCollection(){ return robots.values(); } - - //return a String arr with robot attributes + /** + * @return a String arr with robot attributes + */ public String[] getRobotList() { Collection collect = robotListToCollection(); String[] list = new String[collect.size()]; @@ -29,12 +31,16 @@ public class Factory implements Serializable { } return list; } - //creates a new robot - public boolean buildNewRobot(String name, int type){ - Robot r ; - if(type == 0) { + /** + * @param name + * @param type + * @return created or not + */ + public boolean buildNewRobot(String name, RobotType type){ + Robot r; + if(type == RobotType.R2D2) { r = new R2D2(r2d2ID++, name); - } else if(type == 1) { + } else if(type == RobotType.C3PO) { r = new C3PO(c3poID++, name); } else { return false; @@ -43,7 +49,10 @@ public class Factory implements Serializable { robots.put(r.getId(), r); return true; } - //returns a specific robot via id + /** + * @param id + * @return a specific robot via id + */ public Robot getRobotOfList(int id){ return robots.get(id); } diff --git a/domain/Nexus6.java b/src/domain/Nexus6.java similarity index 55% rename from domain/Nexus6.java rename to src/domain/Nexus6.java index bb4f6bc..082acef 100644 --- a/domain/Nexus6.java +++ b/src/domain/Nexus6.java @@ -1,29 +1,35 @@ -package domain; - -import utility.robot_exceptions.ExceptionStorage; -import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.robotExceptions; +package src.domain; +import src.utility.robot_exceptions.ExceptionStorage; +import src.utility.robot_exceptions.RobotException; +import src.utility.robot_exceptions.robotExceptions; public final class Nexus6 extends Robot { private static final Nexus6 INSTANCE = new Nexus6(); private Nexus6() { - super(1, "Nexus-6", "Nexus-6"); + super(1, "Nexus-6", RobotType.Nexus6); } public static Nexus6 getInstance() { return INSTANCE; } - - //This method always throws an Illegalstate exception + /** + * This method always throws an Illegalstate exception + * @param numbers Zahlen, die ausgegeben werden sollen. + * @throws RobotException + */ @Override public String speak(int[] numbers) throws RobotException { RobotException e = new RobotException(robotExceptions.ILLEGALSTATE, getName()); this.exceptions = new ExceptionStorage(e); throw e; } - //This method always throws an Illegalstate exception + /** + * This method always throws an Illegalstate exception + * @param numbers Zahlen, die sortiert werden sollen. + * @throws RobotException + */ @Override public int[] think(int[] numbers) throws RobotException { RobotException e = new RobotException(robotExceptions.ILLEGALSTATE, getName()); diff --git a/domain/R2D2.java b/src/domain/R2D2.java similarity index 85% rename from domain/R2D2.java rename to src/domain/R2D2.java index 747cde3..0d033db 100644 --- a/domain/R2D2.java +++ b/src/domain/R2D2.java @@ -1,9 +1,9 @@ -package domain; +package src.domain; - -import utility.robot_exceptions.ExceptionStorage; -import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.robotExceptions; +import src.utility.interfaces.RobotInstructions; +import src.utility.robot_exceptions.ExceptionStorage; +import src.utility.robot_exceptions.RobotException; +import src.utility.robot_exceptions.robotExceptions; public class R2D2 extends Robot { /** @@ -15,7 +15,7 @@ public class R2D2 extends Robot { } /** - * @see utility.interfaces.RobotInstructions + * @see RobotInstructions * Sorting then returning the input arr with selection sort */ public int[] think(int[] input) throws RobotException { @@ -31,7 +31,7 @@ public class R2D2 extends Robot { /** * Sorts any given array of integers with the selection Sort algorithm. * @param input - * @return + * @return an sorted list * @throws RobotException */ public int[] selectionSort(int[] input) throws RobotException{ @@ -57,7 +57,7 @@ public class R2D2 extends Robot { } /** - * @see utility.interfaces.RobotInstructions + * @see RobotInstructions * returns the sorted list as String with the delimiter ',' */ @Override diff --git a/domain/Robot.java b/src/domain/Robot.java similarity index 73% rename from domain/Robot.java rename to src/domain/Robot.java index 1bef763..75669b0 100644 --- a/domain/Robot.java +++ b/src/domain/Robot.java @@ -1,19 +1,16 @@ -package domain; +package src.domain; -import utility.robot_exceptions.ExceptionStorage; -import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.robotExceptions; +import src.utility.robot_exceptions.ExceptionStorage; +import src.utility.robot_exceptions.RobotException; +import src.utility.robot_exceptions.robotExceptions; import java.io.Serializable; import java.util.Arrays; import java.util.stream.Collectors; -public abstract class Robot implements utility.interfaces.Robot, Serializable { - // ENUMS für Robot Type - static enum RobotType { - C3PO, R2D2, Nexus6; - } +public abstract class Robot implements src.utility.interfaces.Robot, Serializable { + protected ExceptionStorage exceptions; private int id; private final String name; @@ -30,7 +27,7 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } /** - * @see utility.interfaces.RobotControl; + * @see RobotControl ; */ @Override public int getId() { @@ -38,7 +35,7 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } /** - * @see utility.interfaces.RobotControl; + * @see RobotControl ; */ @Override public String getName() { @@ -46,7 +43,7 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } /** - * @see utility.interfaces.RobotControl; + * @see RobotControl ; */ @Override public void triggerPowerSwitch() { @@ -54,7 +51,7 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } /** - * @see utility.interfaces.RobotControl; + * @see RobotControl ; */ @Override public boolean isPowerOn() { @@ -62,7 +59,7 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { } /** - * @see utility.interfaces.RobotControl; + * @see RobotControl ; */ @Override public RobotException getLastException() { @@ -79,12 +76,12 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { * @return boolean * @throws RobotException EMPTYARRAY Exception */ - - // Check lists for the forbidden Number 42 public boolean checkArray(int[] input) throws RobotException{ if(input.length != 0){ - for(int x: input){ - if(x == 42){ return false; } + if (Arrays.stream(input).anyMatch(i -> i == 42)) { + RobotException robotexception = new RobotException(robotExceptions.MAGICVALUE, getName()); + this.exceptions = new ExceptionStorage(robotexception); + throw robotexception; } return true; }else{ @@ -100,8 +97,6 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { * @return String (array as String) * @throws RobotException */ - - // Write an array with a delimiter to the command line public String output(int[] input, String delemiter)throws RobotException{ if(checkArray(input)) { return Arrays.stream(input) @@ -113,14 +108,17 @@ public abstract class Robot implements utility.interfaces.Robot, Serializable { throw robotexception; } } - public String getType(){ - return this.type.toString(); + + public RobotType getType(){ + return this.type; } - // Override the to String method to get a clean looking outcome + /** + * Override the to String method to get a clean looking outcome + * @return {@link String} + */ @Override public String toString(){ - return "Name: " + name + "; ID: " + id + "; Type: " + type; + return "Name: " + name + "; ID: " + id + "; Type: " + type.toString(); } - } diff --git a/src/domain/RobotType.java b/src/domain/RobotType.java new file mode 100644 index 0000000..04ec47e --- /dev/null +++ b/src/domain/RobotType.java @@ -0,0 +1,14 @@ +package src.domain; + +public enum RobotType { + C3PO("C3PO"), R2D2("R2D2"), Nexus6("Nexus6"); + private final String type; + private RobotType(String type) { + this.type = type; + } + + @Override + public String toString() { + return type; + } +} diff --git a/facade/FactorySystem.java b/src/facade/FactorySystem.java similarity index 81% rename from facade/FactorySystem.java rename to src/facade/FactorySystem.java index 1d3dc97..02c603e 100644 --- a/facade/FactorySystem.java +++ b/src/facade/FactorySystem.java @@ -1,8 +1,8 @@ -package facade; - -import domain.Factory; -import domain.Robot; +package src.facade; +import src.domain.Factory; +import src.domain.Robot; +import src.domain.RobotType; import infrastructure.Persistenz; public class FactorySystem { @@ -26,12 +26,14 @@ public class FactorySystem { } - //provide robot attributes + /** + * @return all Robots + */ public String[] getAllRobots(){ return factory.getRobotList(); } //Creating a new robot - public boolean buildNewRobot(String name, int type) { + public boolean buildNewRobot(String name, RobotType type) { boolean check = factory.buildNewRobot(name, type); if(check) { try { @@ -42,7 +44,11 @@ public class FactorySystem { } return check; } - //provides a specific robot + /** + * + * @param id + * @return a specific robot + */ public Robot searchForRobot(int id){ return factory.getRobotOfList(id); } diff --git a/infrastructure/Persistenz.java b/src/infrastructure/Persistenz.java similarity index 100% rename from infrastructure/Persistenz.java rename to src/infrastructure/Persistenz.java diff --git a/out/production/Robot_Factory_PR/domain/C3PO.class b/src/out/production/Robot_Factory_PR/domain/C3PO.class similarity index 95% rename from out/production/Robot_Factory_PR/domain/C3PO.class rename to src/out/production/Robot_Factory_PR/domain/C3PO.class index 41e78bc2bab50659cafa1ac0e54ebaba46caccb7..4e4531905b1a201b2504c69b921cb819988bd655 100644 GIT binary patch delta 17 ZcmdnUw~>$I)W2Q(7#J9AHgagP0{}kq1?&I- delta 17 ZcmdnUw~>$I)W2Q(7#JArHgagP0{}k!1?~U< diff --git a/src/out/production/Robot_Factory_PR/domain/Factory.class b/src/out/production/Robot_Factory_PR/domain/Factory.class new file mode 100644 index 0000000000000000000000000000000000000000..4767b0ad85b4cee5df51bde516e9c2b9b9590669 GIT binary patch literal 2259 zcmZuzTXz#x7~LnCFl{=$q%F0jw1|b0q=jIp2u(@RA`%U0CAHY%rITcu4y2iyPPnOW z{t5qpyzrndC?ZRj&p!L)i~qyr68AYXAqix4b>_@D-?zWLzsp(q`bOjD9*j3w23k0LFH62|75oJ_&?MmW`xwn1Q+zmrV zup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ga|Zj954$cSh9B4|JEGsm)}z9K{bU;hu!llF@M literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/domain/R2D2.class b/src/out/production/Robot_Factory_PR/domain/R2D2.class similarity index 95% rename from out/production/Robot_Factory_PR/domain/R2D2.class rename to src/out/production/Robot_Factory_PR/domain/R2D2.class index 052894514693d8abf5fd358e2965a1455ce5cdbd..31cb8c26669989b57af4616d9153e69c53c9fca0 100644 GIT binary patch delta 17 ZcmbQoH;<3w)W2Q(7#J9AHgbru0{}d11+xGE delta 17 ZcmbQoH;<3w)W2Q(7#JArHgbru0{}dB1+@SG diff --git a/src/out/production/Robot_Factory_PR/domain/Robot.class b/src/out/production/Robot_Factory_PR/domain/Robot.class new file mode 100644 index 0000000000000000000000000000000000000000..0c5199cecd1188c31aeead53ae6a982e917733df GIT binary patch literal 3983 zcmcInYj+#P8Gc5Vz4m64*dhU(KV*sb{7acKlX^0!>Mvp-Ms(HywmrQ3leQt5pD*6IFr)=Nj% zxR))Dvh#BFb^~|dP66F|wrEv++jXh}qxqU|mu!DM?MY)#H}}#L^utf5P)zZ_=t(X@K4&N4EAyq0w+EqvIfk zH5@W<7)R<5OApfHo@cHzww|i*S!P*aD7lau37}F3g7tLH@d+AFWD?BUh=CMF39WBc z3Hm|0qQF%W7i&&YA|_>~JZs4=n!c6UhNHMgL)ySG+$*rBdA`+xK(FbnPnv#lMPNAj zKQ)icYd9frWJ^RhgVBfk@qmVt20o1k1(I8esU$ZrBu4t=_~W_k?0EkCgg|O*@LL3l zelIcxss0%Ojk!Fl__(VMnxZ>J^_Kefk~X@idm_Y z)&&mKV{9YFnUExk7gGj4k7?$;Y*uDmR=q%GtGqV^qm&CN)L>`~GX~CMR^X1Zxn^Zu zha9|M`zxGPebe!o&BLLEDEy($=#q{vU{1rlfdxD%u(yr3S+`VTmvTMo)K*<~DrZ^X zfvEQEis==sXKI#Hv@#w1Zm1v{U&PZIzGT3}BE4_37KBJk#lWnAh=O*S z(ZCiN>9SNw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.class b/src/out/production/Robot_Factory_PR/infrastructure/Persistenz.class new file mode 100644 index 0000000000000000000000000000000000000000..92e6b243204b0111353aa3d61bc2052673943ecd GIT binary patch literal 1877 zcmai!>r&fB6vzLI0lA8RVC*E2G=TyM28w&XIZaDUXlPAHW7nyZUS_d3K_DcLB-5l% z(ue4W_6y8}nLa=ts?+~kGM2}r{UEJ$uD^5k?Ed}FtG@u;#!n`OkTNiAVFaTB7x(3n zEI87AUf9{)SB+3$^tSEV;T?h0Qod#&EnszwY_G6sJ1WCCriBZz1TG)S16A_eh72Fu z;U2$&P`Y6taC52Li(CnP+kIZl4~k3}7}qEh0=e^CYT9DbLIzVLQ!ng5M<>}6137`2 zE?ES>(+*qhkm-~>G;mqqN>{JRlUfs(Fm57?8J+#Az;v9QRVM9pdFt(qw@Rn}xNW<|0Wnh5`x+sz1mYX2G$yRpNnlzy_v8X}kk=LNhEU5>Y zFze)<$Et<5u_j=$1I;dGb}8BUm{W(GGw?3KZ1`yH31{`>#sj{;V^n0d9OvjdVD(PsBeh4A@^Q1R4cT3LJWK*FxA=a&bd3& zkkavFvybxs&QXFQ>RNY$bqh8La35PSzjX>Xm1C@I^Ho^=gWgeL z5kZELr$~?`K`ucs8yA`59Dj{(m~VzXEt4uqkivE+-UIA#P1EWjpBldBpUJN}p5jML F{|ojz(9r+@ literal 0 HcmV?d00001 diff --git a/src/out/production/Robot_Factory_PR/ui/UI.class b/src/out/production/Robot_Factory_PR/ui/UI.class new file mode 100644 index 0000000000000000000000000000000000000000..6c3769fd5cf29b6a1cb8762a2bb3609e2d60e5d5 GIT binary patch literal 4657 zcmai1340aQ8Ga|*+=LM@AwXDUz@S+OVR0pZh6G9^2}oE9XmxV$N$$X8CeF-FAf;;S zQmeMLt*uL2#igcdH>d_hinMgK`@Z~x{)0Y!tn~fP49TSgo9DT6&dmAFx4hr`edpx8 z4^Eu{upa-YLJ3MulvyZ8g@M@zoe`(ibNs>9?fnN;Ha1YP-u2yhqk+l@Ws$gQa z*u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Ri&p+T#T#;+&!yGX?gFoZ1_&e(U E3oN{mxc~qF literal 0 HcmV?d00001 diff --git a/out/production/Robot_Factory_PR/utility/interfaces/Robot.class b/src/out/production/Robot_Factory_PR/utility/interfaces/Robot.class similarity index 66% rename from out/production/Robot_Factory_PR/utility/interfaces/Robot.class rename to src/out/production/Robot_Factory_PR/utility/interfaces/Robot.class index c5ef4638f498732d8c58e6ef065fa35504ac1ff4..67fb5dcdfb90e0201d4367b0b282139b0d4c0782 100644 GIT binary patch delta 16 YcmX@ec#x6f)W2Q(7#J9ACUWcq06D4#TL1t6 delta 16 YcmX@ec#x6f)W2Q(7#JArCUWcq06DS-T>t<8 diff --git a/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class b/src/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class similarity index 71% rename from out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class rename to src/out/production/Robot_Factory_PR/utility/interfaces/RobotControl.class index 6db39f04fd1479c7ef73a64be4c320b2e578467f..86dccf86f17faae684ae43306c361f5e167e2452 100644 GIT binary patch delta 17 ZcmX@ebdZVT)W2Q(7#J9AHgZ@p0sudx1^xg4 delta 17 ZcmX@ebdZVT)W2Q(7#JArHgZ@p0sud*1^@s6 diff --git a/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class b/src/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class similarity index 68% rename from out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class rename to src/out/production/Robot_Factory_PR/utility/interfaces/RobotInstructions.class index 7e1d54f8af126b0b18876b328c351d8e2149e576..9443f1eda963781782e4aab190b7ac01b2c92bcd 100644 GIT binary patch delta 17 ZcmbQnG>wVl)W2Q(7#J9AHgfPW0suMg1$_Vj delta 17 ZcmbQnG>wVl)W2Q(7#JArHgfPW0suMq1%Chl diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class similarity index 86% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/ArrayEmptyException.class index 19a7b23052ddd542f9f1219cde77ed662086c94f..56d740ef622b2392a08d88b5f3905ac4ca001534 100644 GIT binary patch delta 17 ZcmbQpGLePj)W2Q(7#J9AHga$>0RTCH1#0RTCR1$6)b diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class similarity index 94% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/ExceptionStorage.class index 077567460614ccf74389e88d532eb34fc63adfe6..662da0eeac64b53daef0e48f66f8ceea7a89fe2c 100644 GIT binary patch delta 17 ZcmX@ZafXBA)W2Q(7#J9AHgdSI002SJ1}*>q delta 17 ZcmX@ZafXBA)W2Q(7#JArHgdSI002ST1~32s diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class similarity index 93% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class index b26ffd4070c44708340a96de4fecb5690471ca68..f22d7b353a0178eb31f84605a4c0c35d4225a45d 100644 GIT binary patch delta 23 fcmey$^_7d`)W2Q(7#J9AHgXuTG73+&X0-wUabgFQ delta 23 fcmey$^_7d`)W2Q(7#JArHgXuTGKx&LX0-wUaeW7u diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class similarity index 87% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotIllegalStateException.class index a058331406fb472ca9d6ec41b40943789b1d00c9..d0643ab83753e86d2127975be85a9fbcb113f125 100644 GIT binary patch delta 17 ZcmZ3+vW$h})W2Q(7#J9AHgd=@0RTKp1+oAD delta 17 ZcmZ3+vW$h})W2Q(7#JArHgd=@0RTKz1+)MF diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class similarity index 87% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotMagicValueException.class index 90d2da7735c78897639ffc8198d0417f257885fd..5a41dab87c96b631dbcf66238c8d58869823314d 100644 GIT binary patch delta 17 ZcmZ3$vVeu-)W2Q(7#J9AHgZTX0RTIH1)u-` delta 17 ZcmZ3$vVeu-)W2Q(7#JArHgZTX0RTIR1)=}| diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class b/src/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class similarity index 92% rename from out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class rename to src/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class index d731254ecbdfd946cbf00dae168a91b472306554..a50f2740da265d301cbd18f1a112c02d7adb7214 100644 GIT binary patch delta 17 ZcmX@deU6*s)W2Q(7#J9AHgX(e1pq^E2D< "); + //User options + try{ + int input = Integer.parseInt(sc.nextLine()); + switch(input){ + case 1: + listAllRobots();break; + case 2: buildNewRobot();break; + case 3: useRobot();break; + case 4: break mainloop; + default: + System.out.println("Keine valide Option auswahl"); break; + } + }catch(NumberFormatException e){ + System.out.println("Kein valider Input"); + } + } + System.out.println("Auf Wiedersehen"); + } + /** + * display all existing robots + */ + private void listAllRobots(){ + String[] listOfAll = fs.getAllRobots(); + if(listOfAll.length > 0){ + System.out.println("Diese Roboter existieren bereits:"); + for (String s: listOfAll) { + System.out.println(s); + } + }else{ + System.out.println("Es wurden noch keine Roboter erzeugt"); + } + } + /** + * create a new robot + */ + private void buildNewRobot(){ + System.out.println("Wie soll der neue Roboter heißen"); + System.out.print(" > "); + String name = sc.nextLine(); + System.out.println("Welche Art Roboter wollen Sie"); + System.out.println(" [0] für R2D2 und [1] für C3PO"); + System.out.print(" > "); + //user enters which type of robot he wants + int in = Integer.parseInt(sc.nextLine()); + RobotType type = null; + if(in == 0) { + type = RobotType.R2D2; + } else if(in == 1) { + type = RobotType.C3PO; + } + if(fs.buildNewRobot(name, type)){ + switch (type) { + case R2D2 -> System.out.println("Neuer Roboter vom typ R2D2 mit dem Namen " + name + " wurde erzeugt"); + case C3PO -> System.out.println("Neuer Roboter vom typ C3PO mit dem Namen " + name + " wurde erzeugt"); + } + }else{ + System.out.println("Anlegen des Roboters fehlgeschlagen"); + } + } + /** + * let the robots sort + */ + private void useRobot(){ + System.out.println("Welchen Roboter wollen Sie verwenden"); + listAllRobots(); + System.out.print(" ID > "); + int idInput = Integer.parseInt(sc.nextLine()); + // Change the searchForRobot Methode (safety) + Robot r = fs.searchForRobot(idInput); + System.out.println("Du hast " + r.getName() + " gewählt der vom Typ " + r.getType() + " ist"); + mainloop: + while(true) { + System.out.println(); + System.out.println("_______________________________"); + System.out.println("Sie haben folgende optionen: "); + System.out.println("-1- --- An oder Ausschalten ---"); + System.out.println("-2- -- Sortieren einer Liste --"); + System.out.println("-3- ---------- Exit -----------"); + System.out.print(" > "); + //User options + try { + int input = Integer.parseInt(sc.nextLine()); + switch (input) { + case 1: + listAllRobots(); + break; + case 2: + buildNewRobot(); + break; + case 3: + break; + default: + System.out.println("Keine valide Option auswahl"); break; + } + }catch(NumberFormatException e) { + System.out.println("Kein valider Input"); + } + } + } +} diff --git a/utility/interfaces/Robot.java b/src/utility/interfaces/Robot.java similarity index 70% rename from utility/interfaces/Robot.java rename to src/utility/interfaces/Robot.java index 474b644..62bc4ff 100644 --- a/utility/interfaces/Robot.java +++ b/src/utility/interfaces/Robot.java @@ -1,5 +1,5 @@ /* (c) 2012 Thomas Smits */ -package utility.interfaces; +package src.utility.interfaces; /** @@ -10,6 +10,6 @@ package utility.interfaces; public interface Robot extends RobotControl, RobotInstructions{ - // keine eigenen Methoden + // Don't write methods here } \ No newline at end of file diff --git a/utility/interfaces/RobotControl.java b/src/utility/interfaces/RobotControl.java similarity index 97% rename from utility/interfaces/RobotControl.java rename to src/utility/interfaces/RobotControl.java index b204e0e..764eb01 100644 --- a/utility/interfaces/RobotControl.java +++ b/src/utility/interfaces/RobotControl.java @@ -1,5 +1,5 @@ -package utility.interfaces; -import utility.robot_exceptions.RobotException; +package src.utility.interfaces; +import src.utility.robot_exceptions.RobotException; /** * Das Interface repräsentiert einen einfachen Roboter mit seinen Funktionen. diff --git a/utility/interfaces/RobotInstructions.java b/src/utility/interfaces/RobotInstructions.java similarity index 90% rename from utility/interfaces/RobotInstructions.java rename to src/utility/interfaces/RobotInstructions.java index 8d4d3c4..5837ba3 100644 --- a/utility/interfaces/RobotInstructions.java +++ b/src/utility/interfaces/RobotInstructions.java @@ -1,8 +1,8 @@ -package utility.interfaces; +package src.utility.interfaces; -import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.RobotIllegalStateException; -import utility.robot_exceptions.RobotMagicValueException; +import src.utility.robot_exceptions.RobotException; +import src.utility.robot_exceptions.RobotIllegalStateException; +import src.utility.robot_exceptions.RobotMagicValueException; /** diff --git a/utility/robot_exceptions/ArrayEmptyException.java b/src/utility/robot_exceptions/ArrayEmptyException.java similarity index 82% rename from utility/robot_exceptions/ArrayEmptyException.java rename to src/utility/robot_exceptions/ArrayEmptyException.java index 6ec8001..27263a9 100644 --- a/utility/robot_exceptions/ArrayEmptyException.java +++ b/src/utility/robot_exceptions/ArrayEmptyException.java @@ -1,4 +1,4 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; public class ArrayEmptyException extends RobotException{ public ArrayEmptyException(robotExceptions type,String errorMessage){ diff --git a/utility/robot_exceptions/ExceptionStorage.java b/src/utility/robot_exceptions/ExceptionStorage.java similarity index 88% rename from utility/robot_exceptions/ExceptionStorage.java rename to src/utility/robot_exceptions/ExceptionStorage.java index 103c1b9..aee64b6 100644 --- a/utility/robot_exceptions/ExceptionStorage.java +++ b/src/utility/robot_exceptions/ExceptionStorage.java @@ -1,4 +1,4 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; import java.io.Serializable; import java.time.LocalDateTime; @@ -14,7 +14,9 @@ public class ExceptionStorage implements Serializable { LocalDateTime now = LocalDateTime.now(); this.date = now; } - + /** + * @param message of the exception + */ public void saveLatestErrorMessage(RobotException message){ this.message = message; this.date = LocalDateTime.now(); @@ -23,5 +25,4 @@ public class ExceptionStorage implements Serializable { public RobotException getLastErrorMessage(){ return this.message; } - } diff --git a/utility/robot_exceptions/RobotException.java b/src/utility/robot_exceptions/RobotException.java similarity index 80% rename from utility/robot_exceptions/RobotException.java rename to src/utility/robot_exceptions/RobotException.java index 241289b..3f3cf29 100644 --- a/utility/robot_exceptions/RobotException.java +++ b/src/utility/robot_exceptions/RobotException.java @@ -1,4 +1,4 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; public class RobotException extends Exception{ robotExceptions currentType; @@ -10,6 +10,11 @@ public class RobotException extends Exception{ } + /** + * @param types + * @param name + * @return a combined String of both + */ private static String getMessage(robotExceptions types, String name){ return name + " " + types.getMessage(); } diff --git a/utility/robot_exceptions/RobotIllegalStateException.java b/src/utility/robot_exceptions/RobotIllegalStateException.java similarity index 66% rename from utility/robot_exceptions/RobotIllegalStateException.java rename to src/utility/robot_exceptions/RobotIllegalStateException.java index 5dcd6b7..51316de 100644 --- a/utility/robot_exceptions/RobotIllegalStateException.java +++ b/src/utility/robot_exceptions/RobotIllegalStateException.java @@ -1,7 +1,11 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; public class RobotIllegalStateException extends RobotException{ + /** + * @param type + * @param errormessage + */ public RobotIllegalStateException(robotExceptions type, String errormessage){ super(type, errormessage); } diff --git a/utility/robot_exceptions/RobotMagicValueException.java b/src/utility/robot_exceptions/RobotMagicValueException.java similarity index 65% rename from utility/robot_exceptions/RobotMagicValueException.java rename to src/utility/robot_exceptions/RobotMagicValueException.java index 2fb8d2b..6fc65fa 100644 --- a/utility/robot_exceptions/RobotMagicValueException.java +++ b/src/utility/robot_exceptions/RobotMagicValueException.java @@ -1,6 +1,10 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; public class RobotMagicValueException extends RobotException { + /** + * @param type + * @param errormessage + */ public RobotMagicValueException(robotExceptions type, String errormessage) { super(type, errormessage); } diff --git a/utility/robot_exceptions/robotExceptions.java b/src/utility/robot_exceptions/robotExceptions.java similarity index 89% rename from utility/robot_exceptions/robotExceptions.java rename to src/utility/robot_exceptions/robotExceptions.java index 8ac8e3d..0ba3351 100644 --- a/utility/robot_exceptions/robotExceptions.java +++ b/src/utility/robot_exceptions/robotExceptions.java @@ -1,4 +1,4 @@ -package utility.robot_exceptions; +package src.utility.robot_exceptions; public enum robotExceptions { ILLEGALSTATE("ist in einem illegalen Zustand"), diff --git a/test_factoryFactory.ser b/test_factoryFactory.ser deleted file mode 100644 index 45cdbe0f50cd4e081e18b457b8396e2a52c2534b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmYjNJ4gdT6dW%(e-ZHmb`~O5N)BQpC@2^|2j>UvEYwYINlq@e=ibI#3PmmaV5=Zj z7MAulB8a6n7B*HQBBl^aE5Y3)eu~|FFthV!=KLLcz|m~89C5t(I7th}i?6ZuLf^~8 zg@%ZU+H}9q%%mK6!cLe;OAai>L?F;^t&lZhQGvEfd&;OWFSz4n6efy3UBw1s6|3+C^jRt>7l herbert.think(new int[]{42})); + } @Test void magicValueException(){ int[] input = {3,2,42}; - Herbert.triggerPowerSwitch(); + herbert.triggerPowerSwitch(); String expectedMessage = "Herbert has an unknown error. Code 42."; try{ - int[] solution = Herbert.think(input); + int[] solution = herbert.think(input); }catch(RobotException re){ assertEquals(0, expectedMessage.compareTo(re.getMessage())); } try{ - String test = Herbert.speak(input); + String test = herbert.speak(input); }catch(RobotException re){ assertEquals(0, expectedMessage.compareTo(re.getMessage())); } @@ -104,12 +107,12 @@ class C3POTest { int[] input = {3,2,42}; String expectedMessage = "Herbert is turned off."; try{ - int[] solution = Herbert.think(input); + int[] solution = herbert.think(input); }catch(RobotException re){ assertEquals(0, expectedMessage.compareTo(re.getMessage())); } try{ - String test = Herbert.speak(input); + String test = herbert.speak(input); }catch(RobotException re){ assertEquals(0, expectedMessage.compareTo(re.getMessage())); } @@ -119,16 +122,16 @@ class C3POTest { @Test void arrayEmptyException(){ String expectedMessage = "Herbert got an empty array."; - Herbert.triggerPowerSwitch(); + herbert.triggerPowerSwitch(); try{ - int[] solution = Herbert.think(new int[0]); + int[] solution = herbert.think(new int[0]); }catch(RobotException re){ System.out.println(re); assertEquals(0, expectedMessage.compareTo(re.getMessage())); } try{ - String test = Herbert.speak(new int[0]); + String test = herbert.speak(new int[0]); }catch(RobotException re){ System.out.println(re); assertEquals(0, expectedMessage.compareTo(re.getMessage())); diff --git a/domain/R2D2Test.java b/tests/tests/R2D2Test.java similarity index 95% rename from domain/R2D2Test.java rename to tests/tests/R2D2Test.java index f84f794..31ec999 100644 --- a/domain/R2D2Test.java +++ b/tests/tests/R2D2Test.java @@ -1,5 +1,6 @@ -package domain; +package tests; +import src.domain.R2D2; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; import static org.junit.jupiter.api.Assertions.*; @@ -18,7 +19,6 @@ class R2D2Test { //Tests for basic functions @Test void getId() { - assertEquals(id, Herbert.getId()); } diff --git a/ui/UI.java b/ui/UI.java deleted file mode 100644 index 70080cb..0000000 --- a/ui/UI.java +++ /dev/null @@ -1,108 +0,0 @@ -package ui; - - - -import domain.Robot; -import facade.FactorySystem; -import infrastructure.Persistenz; -import java.util.Scanner; - -public class UI { - - private FactorySystem fs; - private String name; - - Scanner sc = new Scanner(System.in); - public UI (FactorySystem fs){ - this.fs = fs; - hauptmenü(); - - } - public UI (String name){ - this.name = name; - if(Persistenz.existsSavedData(name)){ - try{ - this.fs = (FactorySystem) Persistenz.loadFactoryData(name); - }catch(Exception ignored){ - } - }else{ - this.fs = new FactorySystem(name); - } - } - //starting screen - private void hauptmenü() { - mainloop: - while(true){ - 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- ------- use robot ------"); - System.out.println("-4- --------- Exit ---------"); - System.out.print(" > "); - //User options - try{ - int input = Integer.parseInt(sc.nextLine()); - switch(input){ - case 1: - listAllRobots();break; - case 2: buildNewRobot();break; - case 3: useRobot();break; - case 4: break mainloop; - default: - System.out.println("this is an invalid option"); break; - } - }catch(NumberFormatException e){ - System.out.println("invalid input"); - } - } - System.out.println("Good Bye"); - } - //display all existing robots - private void listAllRobots(){ - String[] listOfAll = fs.getAllRobots(); - if(listOfAll.length > 0){ - System.out.println("These robtos exist right now:"); - for (String s: listOfAll) { - System.out.println(s); - } - }else{ - System.out.println("There are no robots yet."); - } - } - //create a new robot - private void buildNewRobot(){ - System.out.println("What shall the name of the robot be?"); - System.out.print(" > "); - String name = sc.nextLine(); - System.out.println("Which type of robot do u want?"); - System.out.println(" [0] for R2D2 and [1] for C3PO"); - System.out.print(" > "); - //user enters which type of robot he wants - int type = Integer.parseInt(sc.nextLine()); - if(fs.buildNewRobot(name, type)){ - switch (type) { - case 0 -> System.out.println("Created new Robot of type R2D2 with the name " + name); - case 1 -> System.out.println("Created new Robot of type C3PO with the name " + name); - } - }else{ - System.out.println("Anlegen des Roboters fehlgeschlagen"); - } - } - //let the robots sort - private void useRobot(){ - System.out.println("Which robot do you want to use?"); - listAllRobots(); - System.out.print(" ID > "); - int input = Integer.parseInt(sc.nextLine()); - // Change the searchForRobot Methode (safety) - 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){ - - } - } -}