From d7684ef387bf20788a4e36b6a77ca04f291f4b47 Mon Sep 17 00:00:00 2001 From: olhag Date: Fri, 17 May 2024 22:55:11 +0200 Subject: [PATCH] fixed version of DeliveryCar: no problems with index --- .../7.1/executionHistory/executionHistory.bin | Bin 89088 -> 80265 bytes .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .gradle/7.1/fileHashes/fileHashes.bin | Bin 23847 -> 21747 bytes .gradle/7.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .../com/example/DeliveryCar$LoadMessage.class | Bin 1772 -> 1772 bytes .../example/DeliveryCar$PickupResponse.class | Bin 1586 -> 1586 bytes .../java/main/com/example/DeliveryCar.class | Bin 8541 -> 8262 bytes .../compileJava/previous-compilation-data.bin | Bin 20789 -> 20799 bytes src/main/java/com/example/AkkaMainSystem.java | 2 +- src/main/java/com/example/AkkaStart.java | 2 +- src/main/java/com/example/Customer.java | 2 +- src/main/java/com/example/DeliveryCar.java | 93 ++++++------------ .../java/com/example/DistributionCenter.java | 2 +- src/main/java/com/example/Paket.java | 1 - 15 files changed, 34 insertions(+), 68 deletions(-) diff --git a/.gradle/7.1/executionHistory/executionHistory.bin b/.gradle/7.1/executionHistory/executionHistory.bin index 075f977f67535055a28b498319b106fa8cbf030f..77bc6be29c7077e3a77387f895510174f35aec02 100644 GIT binary patch delta 3143 zcmZ{m3piAHAIF^>FWZaetr3b;6v@(pZbg|^%?!?<5UD2ZA{+tSe-WfR(Z z-*QWGzjvcnBDF0|Qc;njbQx^C|KERHw&&gEdCv2E&-eGgoO9;${hbq2DsyO%Okyg? zN#Wmj{!&s(oa6--|B{y&qqR~}>SjoX79<~3PR>xFR8@56xMhuv|E9S4b;uSrIbdQHLX4qjXY7dg|YaM+8-CrTm9Qi zME`g10r@VvU?#DMdX`{AS-&@+GRm7Mn-5E<=UMs;+GKct?TXZ`iK0^}QGA;w$~Mf2 z%J@TzKF1~)WOr|R5naV5xa4zCZb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0yWwSZ+H@KnH6PgW1GNVH$$G| zFI~}|K5MJ|(*|6lXO7N*?Myei4Mq?=-UCJOs0T&x*oqZd3ZA+&utGZCbl0NKw!Bz2 zp*HFPPUx8rU&s5ILSvXEu<{rd94phn0#>Gi09K|$j<7NVEMR3OScH|?V8Kcd1jou; zNRpLc9C+MzrunGbSB|$o-|(~SSaNCjmNzjNwTtGLl+1fwvtwPbFo#v<-<$1 zKIMwT3vXv`_}285XUobUNz41ZyNTasM{hqY+wxXg9$dKH`#Dw?V^%u$$DHiMM?t(+ zAq`Q41^I<&RDNRrRXTN8utvRF5F+W?+Ba(HV`U#J`&jwcu=07{EvjTNRW+)1QSPe? zt38bhdI`%D)|&D<=X$Cmtgtrv{S@=R9W29Y?8jKHllvcPlze0zebb|tu*_|05m=rBMPOM5YKo8=$^O#{^Yljufs@u>TW7!b>YVv?%YM9_zIoqu`|~)X zXR6p3D{6wp*TyYH+WHBFU!Ey>*Ll!M_nR;bV{-~?A_6Kyh}k)j^?;CM0idQgNRyis zd(MioWdAL~tJ+_P^{X)(YfTMj^|;>jHnGazCjT95!2!W32o9&sU;$2>Kmbl#AxCi9 z1{UB{4;H~`J6M3z2Uu`8?SLe~X$5#3PDk1eUGto6lymc#3wzEC+&mStbEe7KtNE6v zzlgQ3dF@1vy#!lp&(?M16lq+UImQ=%ZZ>UvmN<1xo_Hj}JL9)G!zVHk2VeFXRn`o% pIo5^KQp9Yxcf3FE+J@vEV`7dt*MudlPCk0*Y$>j}$kjLw`Y#EfO@{yg diff --git a/.gradle/7.1/executionHistory/executionHistory.lock b/.gradle/7.1/executionHistory/executionHistory.lock index 8d906a3d8c585c21c4301a192e128ceec7d97e2a..447d78483b5ef5c752170cf03e7494c3fce6d4ce 100644 GIT binary patch literal 17 VcmZQJ-Ffa%$-@Ly1~6dc1OPX@1ZDsL literal 17 UcmZQJ-Ffa%$-@Ly1_(F}062UFCjbBd diff --git a/.gradle/7.1/fileHashes/fileHashes.bin b/.gradle/7.1/fileHash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Dmq zQKRk@5y4u;>O#48~Fj^*e*>}&6OTgiARe$R@}B? zNz-)x-Pm)rs~%)DtxKU48L(4`PQ83EgGlF^zC+d3@}8vdyi;lCFUyyD5h&A+Gk@7wMArN55+ z(|gi5dnF}q#laX1Rs}=`qunaZaD=SjH!esI*@^~}UB3)j4Kt^|Pz;<%x@MqM7?r%5M~CTfH7#0!P%kLr0LKF1Ol)a%%!R{qT4gDuj4E z9DY)^5vbI$!9rk+m=8*NJm!mX9=DrN%H#G^l<~OrK?#prKCBe7;eg1xOlo6%_(4Mvog-DJ3i>&eO$f2Elp!0u;Amxn83yA8?nYUS7qAax!E9&= zz$_k>UpB}BjnQVs6Rma|yj5=2K~(uA;uo}fKbeaMHy<%f$qtfTZfo3pjRnm1w>Hb?e io3=*8dEK>%JDY><0#4UzG29Y6>T|23h?4mmR{kFa@i12a diff --git a/.gradle/7.1/fileHashes/fileHashes.lock b/.gradle/7.1/fileHashes/fileHashes.lock index 272f2e1ceb25011efb98f3ca194e878a1c5cd888..0f887522d92105f41fa13868da4b68c39b8ece48 100644 GIT binary patch literal 17 VcmZR6t*}YBa<=Ot1~6dj1OPDA1YQ6D literal 17 VcmZR6t*}YBa<=Ot1~6cG3ji@S1i%0Q diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 51928ac4a1dc5a0496517b811827aec60a652895..0704bfec420c0d60cc0af37299b10039b9d51181 100644 GIT binary patch literal 17 VcmZR6_T&GuLYbG|3}C>d2>?a*1#x4FE=g1^)m5 diff --git a/build/classes/java/main/com/example/DeliveryCar$LoadMessage.class b/build/classes/java/main/com/example/DeliveryCar$LoadMessage.class index 1987861058fd8f7485bdf9383e5ac2ff77f6b8a3..2498bf03982ad2848077a3c5a117d0ad13ffae51 100644 GIT binary patch delta 41 pcmaFE`-XReGb^LmWEa+4Ao-D1bn0fg}g39guWqwFi>ztZqQ^9BT>y%ex9H delta 37 ncmdnQvx#TJW)?=t$y->0fg}g39guWqwFi>ztZqQ^9BT>y%n%AM diff --git a/build/classes/java/main/com/example/DeliveryCar.class b/build/classes/java/main/com/example/DeliveryCar.class index 2f80b47d619c97a6836d269657fe911a359b31a9..e0f1c8c5f73a04669fa6e0ccd640a9cce74d03a6 100644 GIT binary patch delta 3218 zcmZ8i3w%>&75|?kP15wHO>f(@rG%EJxDWQs%FMBT)Rj7^=>Z7`iO1a`iAle9l6x!*b8x#$1= z&*MAyjj3lQJI>xZ_8fqT)NlWd&csRx#Y> zv3!+KDDKHDwA!$PP%8Gh^2A147Cj<%*h-Y`_`1XtgqjL**;*tn*xXs$@J$8Z!lMLB zRO{>%=Pmi;7TK|jFl>$%3~8SGwO~|>aHw;-L+!i-L!Ndm;#nB(j%uUQF&E!e@E9H! zPuQzyk9fsiIejfF3D$_VD!i5h z>B0AH_<@3_aey#Xyqhyr1k|5;r2PfP`l)NQo$)45cfGemeYhHLFS@z z2Y!ZL8_w{t{e_;lY=stxN|&E2_yxP1byV1U@Unt)tbFY7(s@yy;hWrpR}{P|<5v*Tf?kZH)T|1sAy?u4d#Eyg|s+d2~mE zoz>03uBaWC2u)(OsZi`ueYOTWE)%Bc`X`X z3-8Fnu9x+DS4#g7`<$Ni_oVnfVbacd70+IC-m*}cSYs*>n-s-NXis2|5Tmk(i?KN^ zCJKrjIh!*bP3r>M>S&NlVxxR9J@-+|U_yz=&Mgqzvuxs4t~=A?prKT1qhSh_QMoA1 zJC%1n%SsgvIH^*>GkDEKKEm{!^D4#58AW2E+gVdBjWr7TaLI*BS!py@Zj4iK99LYp z!W(sRqh7<z28Ic);CAlSH3;tYs=8moH7OFy)V;nPPPQP|IvWx!9aP#8K894)evc z(HyZczp>#19tb8}g^D6%gJ9^_SkFZs>mTa&fAKp7tOFS=ahCY`Z}CxnO$;CL<{()4 zIhYMua4}3CyAQ$;lAIKvLMUgVAb_f{X9jN9gIDN-;vm<9gQxCK>+ZMEoQ8lnUgd5~c8>96r`Y4B%4}(V!crrMOg&N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kd>%o_#e{k+Qa+_08As69BmCK1zd(3IF~Ch9XFx^t76Jg8DSjdnUbx9IIDa}Sh=iXda@B*{x~an{*kIj z3Uvzy*v^jE#=yG%qspThgzsG|=DT^lEYB2-!Oi_eppQc%1Wk;l0=MSTOCwiSP5+xbedI zhk2Y{s2>jF$2(CRSG5=ZLj4)8KdWQytd1$vkDHSz@vM0Y_2*12-cdDXAMd3@{E&b0 zG|b}fI=1lvO|4Aig(OEm?O@?${ik7^*h$-1epUa4Dc{cWFZJJ;@;a8^)ZaE`gXL2p z{asUO^2deo{xN)Do~{Et^@6h>^*maTsA1WH#8j3oNEEPaK_ZjoQ~DnzB9bjcw|SaI z5ijzJDB=e!hoX>gvJ!&v zb7%yT5Bey}|1a)8{de5c8Sw}{YSJ$Z;o>v0b}`qL$85Qfc{|yPD2K*!G35c83D;$m zDF~C>?N+lcVeus_iu`|qMM*Y!yrWdF-P)YTyN1X#p)_eGiX|kxp_$qa%Tqur9}?bOS9%`o94=vC^yn diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index f3fd87780ad0ebdb3309966711099e6e153252ac..155796601e4b892b704c8b884830767750af833b 100644 GIT binary patch delta 116 zcmV-)0E_>%q5;360kCWV5WZIFhuwlD7r97S!}(E>GLw7(C=hBv(572nNRixezDsc) z^VyTM0of2J9l`v!uQ#!{d;vIfZGS$KodQY_LLQg6IJKhU`f037gLQJkv-bisP89|y WFl0rz2vWHSQYX9yEhPZ}000088!$rv delta 106 zcmV-w0G0p0q5-v{0kCWV5MrlpwUtL-UUEdhCUTOMmy>(}C=mXh^+BRZo1R2$ltcUp z=fab;0of3Vpj1{igKX&o(HjK0;Ea-!odQY_x);1`NJ~%aUexWji=pKkv-bisP74Jn MFl0p~0RR91031gxUjP6A diff --git a/src/main/java/com/example/AkkaMainSystem.java b/src/main/java/com/example/AkkaMainSystem.java index 34cd799..1b2b98a 100644 --- a/src/main/java/com/example/AkkaMainSystem.java +++ b/src/main/java/com/example/AkkaMainSystem.java @@ -58,4 +58,4 @@ public class AkkaMainSystem extends AbstractBehavior { */ return this; } -} +} \ No newline at end of file diff --git a/src/main/java/com/example/AkkaStart.java b/src/main/java/com/example/AkkaStart.java index 45339c2..61d6744 100644 --- a/src/main/java/com/example/AkkaStart.java +++ b/src/main/java/com/example/AkkaStart.java @@ -17,4 +17,4 @@ public class AkkaStart { messageMain.terminate(); } } -} +} \ No newline at end of file diff --git a/src/main/java/com/example/Customer.java b/src/main/java/com/example/Customer.java index d6428dc..4e86b7b 100644 --- a/src/main/java/com/example/Customer.java +++ b/src/main/java/com/example/Customer.java @@ -106,4 +106,4 @@ public class Customer extends AbstractBehavior { getContext().getLog().info("Ich habe ein Paket von {} erhalten mit dem Inhalt: {}", pkt.paket.absender, pkt.paket.inhalt); return this; } -} +} \ No newline at end of file diff --git a/src/main/java/com/example/DeliveryCar.java b/src/main/java/com/example/DeliveryCar.java index 4d6d0f2..6e5919d 100644 --- a/src/main/java/com/example/DeliveryCar.java +++ b/src/main/java/com/example/DeliveryCar.java @@ -6,7 +6,6 @@ import akka.actor.typed.javadsl.AbstractBehavior; import akka.actor.typed.javadsl.ActorContext; import akka.actor.typed.javadsl.Behaviors; import akka.actor.typed.javadsl.Receive; -import akka.actor.typed.javadsl.TimerScheduler; import java.util.ArrayList; import java.util.List; @@ -25,7 +24,7 @@ public class DeliveryCar extends AbstractBehavior { public record PickupResponse(Paket paket) implements Message {} public record StartRoute() implements Message {} - + private DeliveryCar(ActorContext context, ArrayList> route) { super(context); this.route = route; @@ -40,9 +39,7 @@ public class DeliveryCar extends AbstractBehavior { return newReceiveBuilder() .onMessage(PickupResponse.class, this::onPickupResponse) .onMessage(LoadMessage.class, this::onLoadMessage) - .onMessage(PickupResponse.class, this::onPickupResponse) - .onMessage(StartRoute.class, msg->{ - onStartRoute();return this;}) + .onMessage(StartRoute.class, this::onStartRoute) .build(); } @@ -53,88 +50,58 @@ public class DeliveryCar extends AbstractBehavior { } private Behavior onPickupResponse(PickupResponse rsp) { - if(rsp.paket.inhalt == null){ + if (rsp.paket == null || rsp.paket.inhalt == null) { globalIndex++; checkNextStop(); - }else { - if(pakete.size()==3){ - checkNextStop(); + } else { + if (pakete.size() < maxCapacity) { + pakete.add(rsp.paket); + getContext().getLog().info("Aktuelle Anzahl der Pakete im Truck: {}", pakete.size()); } - pakete.add(rsp.paket); - getContext().getLog().info("Aktuelle Anzahl der Pakete im Truck: {}", pakete.size()); globalIndex++; checkNextStop(); } return this; } -//Die rekursive Methode,die über alle Addressen iteriert + private void checkNextStop() { - //Wenn Wagen voll ist, dann wird erstmal geguckt ob man ein Paket liefern kann if (pakete.size() >= maxCapacity) { deliverPackages(); - checkNextStop(); - } - //Wenn fertig iteriert so geht der Wagen an den Verteilerzentrum - if(globalIndex==4){ - DistributionCenter.ArriveMessage antwort = new DistributionCenter.ArriveMessage(pakete,getContext().getSelf()); - //ActorRef antwort1; - // antwort1.tell(antwort); - - //Fehlende Antwort an den Verteilerzentrum - - - // - - } - else { - //Guckt ob Paket für Kunden da ist und fragt an ob etwas mitgenommen werden muss - deliverPackages(); + } else if (globalIndex >= route.size()) { + getContext().getLog().info("Wagen kehrt zum Verteilzentrum zurück."); + DistributionCenter.ArriveMessage antwort = new DistributionCenter.ArriveMessage(pakete, getContext().getSelf()); + // Antwort an das Verteilzentrum senden (die genaue Implementierung hängt von Ihrer Systemarchitektur ab) + } else { sendPickupMessage(); } } - public Behavior onStartRoute(){ - /*if(globalIndex==0){ - checkNextStop(); - return this; - }else{ - if(globalIndex==4) { - globalIndex = 0; - onStartRoute(); - } - } - return this;*/ + private Behavior onStartRoute(StartRoute msg) { globalIndex = 0; checkNextStop(); return this; } -//Sendet PickUp Nachricht an den jetztigen Kunden wo der gerade ist. private void sendPickupMessage() { - ActorRef nextCustomer = route.get(globalIndex); - nextCustomer.tell(new Customer.PickUpMessage(getContext().getSelf(), "Wagen kann Paket aufnehmen")); - globalIndex++; + if (globalIndex < route.size()) { + ActorRef nextCustomer = route.get(globalIndex); + nextCustomer.tell(new Customer.PickUpMessage(getContext().getSelf(), "Wagen kann Paket aufnehmen")); + } else { + getContext().getLog().info("Keine weiteren Kunden in der Route."); + } } - - //Prüft ob Paket im Wagen für den Empfänger ist oder nicht, falls ja wird dieser direkt entfernt private void deliverPackages() { - ActorRef nextCustomer = route.get(globalIndex); - //Iteriert über alle Pakete - for (Paket paket : pakete) { - //Falls Empfänger vorhanden so wird dieser aus dem Wagen genommen und geht dann weiter - if(pakete.get(globalIndex).empfaenger == nextCustomer ) { - nextCustomer.tell(new Customer.DeliveryMessage(paket)); - pakete.remove(globalIndex); - // globalIndex++; + if (globalIndex < route.size()) { + ActorRef nextCustomer = route.get(globalIndex); + for (int i = 0; i < pakete.size(); i++) { + Paket paket = pakete.get(i); + if (paket.empfaenger == nextCustomer) { + nextCustomer.tell(new Customer.DeliveryMessage(paket)); + pakete.remove(i); + i--; // Index anpassen, da ein Element entfernt wurde + } } } - } - - private void removeMessage(Paket paket){ - pakete.remove(paket); - } - - -} \ No newline at end of file +} diff --git a/src/main/java/com/example/DistributionCenter.java b/src/main/java/com/example/DistributionCenter.java index f2b6fdd..f79b703 100644 --- a/src/main/java/com/example/DistributionCenter.java +++ b/src/main/java/com/example/DistributionCenter.java @@ -167,4 +167,4 @@ public class DistributionCenter extends AbstractBehavior