From b439030fee95452b034cb70d52fe064c3a2ac83d Mon Sep 17 00:00:00 2001 From: peet Date: Tue, 18 Jun 2024 12:55:21 +0000 Subject: [PATCH] Ich hasse Minas --- .../uebung/uebung09/collection/SetTest.class | Bin 3094 -> 0 bytes bin/uebung09/collection/BigSet$1.class | Bin 1163 -> 0 bytes bin/uebung09/collection/BigSet.class | Bin 2825 -> 0 bytes bin/uebung09/collection/EmptySet$1.class | Bin 866 -> 0 bytes bin/uebung09/collection/EmptySet.class | Bin 2334 -> 0 bytes bin/uebung09/collection/SetFactory.class | Bin 1361 -> 1018 bytes bin/uebung09/collection/SingeltonSet$1.class | Bin 1053 -> 0 bytes bin/uebung09/collection/SingeltonSet.class | Bin 2410 -> 0 bytes bin/uebung10/logo/Go.class | Bin 849 -> 849 bytes .../logo/HanselGretelVisitor$DownState.class | Bin 0 -> 795 bytes .../logo/HanselGretelVisitor$LongUpSate.class | Bin 0 -> 798 bytes .../HanselGretelVisitor$ShortUpState.class | Bin 0 -> 804 bytes .../logo/HanselGretelVisitor$State.class | Bin 0 -> 676 bytes bin/uebung10/logo/HanselGretelVisitor.class | Bin 1952 -> 3255 bytes bin/uebung10/logo/Sequence.class | Bin 810 -> 860 bytes src/uebung10/logo/Go.java | 3 +- src/uebung10/logo/HanselGretelVisitor.java | 75 +++++++++++++++++- src/uebung10/logo/Sequence.java | 2 +- 18 files changed, 75 insertions(+), 5 deletions(-) delete mode 100644 bin/test/uebung/uebung09/collection/SetTest.class delete mode 100644 bin/uebung09/collection/BigSet$1.class delete mode 100644 bin/uebung09/collection/BigSet.class delete mode 100644 bin/uebung09/collection/EmptySet$1.class delete mode 100644 bin/uebung09/collection/EmptySet.class delete mode 100644 bin/uebung09/collection/SingeltonSet$1.class delete mode 100644 bin/uebung09/collection/SingeltonSet.class create mode 100644 bin/uebung10/logo/HanselGretelVisitor$DownState.class create mode 100644 bin/uebung10/logo/HanselGretelVisitor$LongUpSate.class create mode 100644 bin/uebung10/logo/HanselGretelVisitor$ShortUpState.class create mode 100644 bin/uebung10/logo/HanselGretelVisitor$State.class diff --git a/bin/test/uebung/uebung09/collection/SetTest.class b/bin/test/uebung/uebung09/collection/SetTest.class deleted file mode 100644 index 1aa1f927983e176e95ef8adb7c446aa7f6522484..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3094 zcmb7GTUQ%Z6#fng83+TVfl_I;(kp~pdbKS<loI2 zk{elmasoB|In%HVcR(Q25uXwWkJxj14eI$Meb+)@pNeWkYOr6RTFTB!VUr3)3J(Or zb5eLvMGYc6kv1%SqLk0-&ZL$#bs2=6)66N&G34(+80q(1M-jryDh?qkoh}$ffp~h4 zzzHRs*9=RbrQ`N?pdKR4nWxF73flr|DqnC{0u}{YZ%^(O{fImSww|B$@^q z)3!68SS*pPgycLKMLXgOIs}gR8QPYbQ7z}%&WegobO}Uqj;^^R<8Vhjy~BxQ9eR*Z z&`UCRP*HIjXP7y|)g6uICG@xtz2q8ZVl0r;)Hz&GaGvaY6|iYn#cQ}Ipe$&`34NKR z!t~EZaT!SkeFVFKb*Na>9alv^UKgm-ykDc5StO8f$83B`!5ac?8y+U?OewdJGWEP} zxvAxxUXTRJBoC<=#t1{7*WD45mY9|G(7m$tgvl5iAf;jyR~eO4Vs4WimGH&O5^}F( z`3*6-;MfmY<4mL_OO08&j4>5&;ySbKNAKy-`FLQq%=ey525fuBJX@Y4nYnQl6SzTy zIoonsmUMEU+=<_p$@r{PzNz9CGGwu6JR+G)z*rP-V_E_Gux%p&i=~3hbwVo`2|pRK zAXU7BnHP{!_e)F(d$D6|EIuWz-&XOimtmvm)wty0u8Q|$7NY?VPKkb7cdSK@2t%N` z689{+%^kf`Snukdo$U2*@6Q4DZ>8MspxT&WW_8oGt)OFN3ogj^Vw^pdh~6m{uQ`@f zn8-5$me&Ezn`$vgl|X&Q)pASYS|ONP(P3l$#n`>SY3%yrRR+cMbb?*gyJ;$|r+>$& zn3{}Ta&r2pA*ZGq`0171MNh-F?G{}}D~#*zf<0G^Vg(;4cqDLaW5yfS1A9qNq_uo@ zPNSlBZ+!}Vh>zI8`3;f4-{qtQCw=4BG;7Y(izm{yy;LeBx96@*vgzO?OQBqS@0-5M z-OrZyUSN4dGtCS;B)KnwsZY=lYkY!OtoaFA9#d9@ zm-yY_*=wS;W}Z5LR&NJ9$2&5xlHe-sRCoS{!y885*b1l zKk~5Hda$+Zpdhkip5k$Ot-=XDOYP8^AMkgaTOyZ^$JN% zVVSQRpHcEXuHi?F;TOIzJjV4hvR4DL58;P^?4$T@3)%jjB-`IxC%Xxe=jdA}`|zOP iKWQy7tSUUfL$0z}Kc?&xe9AyRr$l!87x)U_p!Gk7lHQ5{ diff --git a/bin/uebung09/collection/BigSet$1.class b/bin/uebung09/collection/BigSet$1.class deleted file mode 100644 index 5479c6d61a86d0bdfd2b36debbed05ccfd17d771..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1163 zcmaJ=+fEZv6kVqmhPH#PwSp8ZcWtLgLGgk`h!Tw?1rtknAn{>ZPRiggV`iqtZ}A&^ zz@)_BgCF2W8P}N>(nzt%x$U!Nowe8A{r%_XF90vGsUadT*_MsA(^_7uG+o=4&A@V< z$}6i?m%;pshL}L+*!*l(Y}08~-ZhSi&@d#B4WsSAvMbwx^vuBZ1cp5sv^_^23Wx)N zxF`K!TOe1v3a$zy>Q>7!`GFJ|9{^e3+pBI6HxwLM{`@kv)~*+;aO;+11seiW#s2|I z`vS2o_fRGva7)JsZX^-KZ5?Th3Pg*geRXq3hlb$<@|e^xA&|fRZ5?+}AgM}Mr7{Rf zKdUKBV^+hAz}Phq9dnqckJhE7qs7tyYpP1&Jsk-o1=2Okk-P1ahV=H#hD|rKHMeQn z`=)29b1xWEHVPC5%DbpIZPboTe^-8CCbZ%pg*cXUl(EPJoiLockkr=`{4QQBv0%!u zM>HCsa4DYgFZ(ToNU6?ILoO49go&S)Ca+k4G zxYsio)hXOZInv1R<|cRViHmTZG|Fel8b6RTqGuR0${mcKV@lu*3*UJk!F|qI#KJj& z9Jxj@!AOx2oowVl2?kdtip3uPDpz%vG&)!~#{+?HJayTI!kc^_L-LY=))Lj#z7i_^ zz_Vg1kZJ5IGDb}4>>%60!_zMN6M<7AqJ3JY=*Bel%~0`N-%EwwOV2{Q$kDpBP}uX{ ZqgAZ)9Ai7o;stlgO7*<@ZE!@8{|h>H^9ld} diff --git a/bin/uebung09/collection/BigSet.class b/bin/uebung09/collection/BigSet.class deleted file mode 100644 index 9997eb49eeb5c5ad452166e7d16a1d3a03989d80..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2825 zcmbVOU2_v<7(MT1OWJe`we~|OLV;@Y0hBKlNR2{iwVJkSO0^Y{ZSqCE~76viDS(J$ZLa4-l*;ZV`@^-61JOE=cstt#gn zDb~tvb=_@v@*ElM;I7wHI2zmAkk7%!_ohCmx6@C&BCpL#KljjZgIa@i(iuZcEAXnb zOOc%oCSx6@LK3G4Fm5dd-}LzuPU0s4GT5zz4k0^9s-{&qy z+p_3->+>n9{DNFQk(D2k!bJz~;9c&p7Tnd;S;DPU6wbu0Ds~n_@+o-<VxCuM{*$Zm8$}W^1ddgVpc2-JUYZXDH(y?}iMQEij@V zw;2=b0fz5}YO9*NyqA z+iYsSl!GfgyqC2cc1=uC8VP>-VDXp7BEJvt?~H{MKRg^e&qK5;(Gcw>Vi>P6@+Uqg zct4bVhLLRU3C6OgpJ3uwni4q7>j-RKQ@lD%9Ab%sI6}*mNy8+L@`(ka_VP^{TX=I% z)Ui&K=-EUKF^XGYtv09=A*h9LC}7|PPHqs`^kXI%I0wSykr0AR$Djy;wA-~vJBk!( zUS-bPY+>;}Y|l+*f5XIcWEAeqO+KQ{R6ZCElw;Isj(9fgFm7_94i@b>dQ~`@=`~EB z>2-!VrdNS?L1ra(s~g-GyKr0kaEry%;^7+Asz$iSazs7$3;OIw0zda0=PgKiJKT~1 zf0+Wf!d>ONz>h_3fH7PQ1+q(&_@v>bkOU=*;n~8DMj`Ko%sma&1r&3?<1ztcALsr? z;UO|vg7{G3Ij$=_#m7Hm;sw-3myw%WdMq}99-;o!f>=Ai$5~zeFG}J%yUz2k+YKUE z>>8lh8K8*eaKkcy*^KyP0HULBi1=j`8`gkqX$7mDSw0JAX^D>!quCr0Ka^oY%puY+ zQzUQ5ERw8clDXQ2Wwe836rXp;ZUQCs0;P?So6qp&UwrBo z`FdC5RHt!j9|__!jm0M=%B LyZlu6vE}(csT4IZ diff --git a/bin/uebung09/collection/EmptySet$1.class b/bin/uebung09/collection/EmptySet$1.class deleted file mode 100644 index d2706cf4bc1d2f262f206c4abecf508feaba85da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 866 zcmaJ<(M}UV6g{)scDL(dD2m~=NYJNM??bI#nmfBydX1>h|j4lIV{O!PA~*nHCr<0ulLma%HK zMyL8qSLphdg91bKgn#DEh^s;Kuzx}r2PKBtJez45H4n5%xQ-Ksk{-&mzDd08X~a8( z+?7h|J%-g_I<#@bP}q-;MHvh;J{-6nY*c)dQDv|L1E{p65}j<+7fFxzBSH4samb@1 zo=6jqlLcdsp*B^qzD4$&Ax}HvOy>fh$brg(xuDU$-3>yQyKNSo-8f4^@lG1!GgsYzWvUrA{ujK=+-UtSY3`Ae zN=t=NoJuwLAoMUkcJP#8Y1%A&Ji~JaS6&Zs{_2u96o}kEP)a2G5l>S=ZFD;#)$ij} zqei2#X%)e$RWl*_!)#h*c$B?Er)^mD0^a(@clhh)xciMF3-@R*5eAsYEbV@N_HZ9_ z6fr!Y{3XLn`Wl>Ne>M9=<-$azbzS)oj|lZR$1da^UQ=us+@Dzdc#bE(Z}F^5@VH~1 eB9?R1%9yE!Rf-E(Lme;ZWbS7;%@feFuyz6W+`DZ6 diff --git a/bin/uebung09/collection/EmptySet.class b/bin/uebung09/collection/EmptySet.class deleted file mode 100644 index 73456b779458cdd08f90250d32622adbc4f8a1f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2334 zcmbVOU2h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9iCp>6EHW!eVK+p&PE!U3=B-#7)L?CsMhv$ zq-ev!7&Dq)AY1WaM@G9&$CuRK3|+_Hb0SaQ2ToH97N`v6udGtA)pPnSd8`sTJ~!J| zj{9!MIXXuRl3=k~YyRItR;SxuH*nZ4iW#Zac6Zm(n8SSw^8)2z?Xpq90z2R-d8prV z4d228!d%R#6}Dryx8=)28K|veS03qcXRwG#flND$BUirgbYmtjufVcK5LmiS@Yi!? z{_A|h249xj3S2+zbCY(Y>V^9@meJsHQ0!n&rq5e)rJkksb`Z#D(|7uP$w7>@WM91u z`wC?a)8H9FiYv^S0{Oh2I&TKgIBZ6<$$F=foLqhB6chC`r0p=`(3(HxR=O$OH1RHH10==G%1qy#0kn@zGLzA8LB`3(G+0Pp5enw)H;hIQ7&|s kE>W^cMe^1Xs``L(2@iQUxnGa4LMuaRO|E~dJSoim0eHdUlK=n! diff --git a/bin/uebung09/collection/SingeltonSet.class b/bin/uebung09/collection/SingeltonSet.class deleted file mode 100644 index 8624d52a7593c1ca0347425aa884e758940d0acf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2410 zcma)6ZF3V<6n<{9ZIUHGi2@?DL|)8Gp`n5zGz6ixT1n}QDIJTSHpw+z-0WtuH;(wl zf8!@U;EYaY?2LZ*M>(9cH`y*p){>dceL44>=RD6j_x}6eUw;F5gzXd(0{MY#4&2VI zdzF^wII^W|&#g3Uw<8_pxecjOFa#D}SU*`6$8tNBo#qQVmBPHh`I){_2^hALU4dME z(r-;5)37_Pr3QT|klfv+o%yQm+NvgSwm9uj+M@$SI>!@Z-D^t|Ni1Y>0%s^dv9y@Uk}! zQaIMTN@>?9M4II2TgvNGv|>qf94OnVY>oEm%*B}o9U+A!O7^&1udSL`M4pxTNZ@+$ z*z~ldzWobVqFCAzNZI~Ix2IkP>*ths%X5`wyQJ03+R%}NbOcT|l-2ri+v<(vg(W5MSCF>B&BKIhpzft4AV#Nh;`O-V;~rAzlQYrE8GzP{cm zJP;@x-OOjMKj`(mzLM>o9``AgZsX^c?C~Uxhs5cbYj=A(m~7{}QXP2hd?6aNV4{jg zoay6yG97k}k`Mr_xv3lAj?Td8%fTzB&35 z{7li9p(i*2lSVp>EY0=KNt_}}lhz3u&GHbZ%gcWv_dBhUc%S}H(MT2;?#Jv>YZUlJ(nL{k@6ZYlToyxGRNmI8)?)h%N=)b>Uo#J9A|HBE>~QSU}z z#zJs++{6m`9My0viMCb9CU6U@ANmuPAJ6YMM#aVg)lKp ze6l6{pdtMLTbzo{*G##biiS@HG!+fkQ;d!oX}o7jo&r+u|?rA|ftC`ZOXE<}e?LEnsmdQD#A9MSmq~zr24Wmg0%^F+?59 b?4e-=tI-E&?74;wuIRjP8XBji-miTDiBz2n literal 0 HcmV?d00001 diff --git a/bin/uebung10/logo/HanselGretelVisitor$LongUpSate.class b/bin/uebung10/logo/HanselGretelVisitor$LongUpSate.class new file mode 100644 index 0000000000000000000000000000000000000000..7127ca37ced012dd1026d6bd22352fb158b4ac10 GIT binary patch literal 798 zcma)3%TB^T6g{^s?<$Bdd}}0%U_ckHd?W_qBOz{3_C+SOrglgl`du!Ji3>l#k22m? zqQsEYMQ7&R-gC~KGasLC?*LA*k%B_l4MZ<+%>BKFElt_DFdR?V=dSRD-L*W+mu|T& z9rI?;F?^ANM%a#LbbM|mB>g+fEAJ6D+p(NOZa=ad%ReD(RsPYx((kpiGgQTOv(0@RyYOq z`D<}47!cG-G+19gIfQIS2JWpmvqJyUm~89!#-l;dFC9m?P22E1;ia%b*oX~`)qfv` zkQip3z7n2)Aw3`KoQujYO@%@j4xcnAVK`jRFgjqQ@SdyIUXZQUUZFoTR4~bFlAC}- z4!*|!E7WphxwsIjRiw1`YUlf;{7X8iYK0o eA*xtl4+V=@iY}nA=Q38gqVm3`DV$dLfB6eOsGZRO literal 0 HcmV?d00001 diff --git a/bin/uebung10/logo/HanselGretelVisitor$ShortUpState.class b/bin/uebung10/logo/HanselGretelVisitor$ShortUpState.class new file mode 100644 index 0000000000000000000000000000000000000000..c4c6307b45f61fcd3c28fd0a24e48f61bcd37231 GIT binary patch literal 804 zcma)3%TB^T6g{`CAW#)wh>8!QQG`Ts;Ywp-FbamaLD?6XKuztKcB$k-S` zA`KH`Hj)@6Of+3zoJThu5nMPOkKIf)<(1>Loxs)gplNA~gz9j?A3?BNqbJ!w=~(-q zE`P_|i*5;KDYn*?_dX%rl2LFaPF(FE|3|*t*Up_oup7QFf|}=qp$L;$A{2*4#;EU) zLl}u4i7dFh>m=*ts?9k*yaIeEqMvXwkv5YfVC2Wn&h%hn8n=sju zvA$BVwm13pDgHCc=S>9M*|0c*NuFmJ)friQI{OE&T;AZmFtU*2nr04AL!PTU=pD?W zU?ebyd7c6bm>DS@Ffx4lEpYThfQAB0TO7Yw|6?(QC0@2r#4?`_I}%o~W?NVv%vZhv D9a4%Y literal 0 HcmV?d00001 diff --git a/bin/uebung10/logo/HanselGretelVisitor.class b/bin/uebung10/logo/HanselGretelVisitor.class index 8d4715895923e4612913cd2b2f3525700c4694cf..5484ad8ae660fc6f2fb43ec171aa62d4a79baaec 100644 GIT binary patch literal 3255 zcma)8YgZFj6x}xo84?DufDf!zL?9u&)LLIrDvF>jsBI9n_Tdo57!4WBOtf$Nu)jF3!5?P6ul&7HINd7tq2zkfagFo_=wL=^T^?Zs-j zuz%lp$tgJFXRWepmu4!qXO|X=Zqaip24V`EZ&`P(@sd?8j9*y1W#>HuafL07U>~3m zEm$iGYKk9MA?{TxUddM2I@_o}ukW+exZzZ6*HhRL(3r9+x2N?xYPGnY<&kD6pcLYB ze@;}1G2EL@#k)jrVoT1wGEJ47azVbwj~B~DZ$jZg((B4nXSg!h`Nb0Xk`!_#uCdhgL4MXDs(q#a_CIFhS%Aw9&r@uDQVsAfP2~p zg-kH&oPDQim-BXW*a=*~8wM_NrW>t3ftYv`InIP@-(i}s1q|lAWiQ)?OSo)+{sdx_ zwj{=j|1idN}BtziS#?t8FGueJjms&lR=@O+Sf=*|1CYa&tDca|-Pom;CKH zYejd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EARK&LI zPyar{$BU=GEe&z2CIi*vTf(%GshHQeY#t3mwkBG>qXR{-%`*?_xcinPE#l-+M%>45 zw7gNqEVZ;GeFI1#fiyDo3rLu*7h39hp{0&Tc93wFFhb)ftvrewAUjb!!sX(^A;ybK zhnOr*rw%doEexBXaWVv1lzxcPniepOaT>4DUXi?%0M~JYteKgESvWICC&QUJJT=O2 z6SsOt&(ThT_N*VUUyscl;r1_D(O-f_LlQ`a_=Q+}zAwHQi@(?OHePgYMj?C4`oefVSQG48ccm=c)=Sx)3*R z1mD1C5vLVI4$RE=&&)sPR{zqikMEaP-~>OnZWNTWUnq+n7LeFkDjd!#xD`78f_LYY`m6^_~(!DDk U1BMEW { +public class HanselGretelVisitor implements Visitor { private double gap; private double s; private Turtle turtle; private DarkForest forest; + private State state; public HanselGretelVisitor(double s, Turtle turtle, DarkForest forest) { this.s = s; @@ -13,6 +14,76 @@ public class HanselGretelVisitor implements Visitor { this.forest = forest; } - + @Override + public Void visit(PenUp penUp) { + up(); + return null; + } + @Override + public Void visit(PenDown penDown) { + down(); + return null; + } + + @Override + public Void visit(Turn turn) { + turtle.turn(turn.angle); + return null; + } + + @Override + public Void visit(Sequence sequence) { + for(Stmt elem :sequence.seq) { + elem.accept(this); + } + return null; + } + + @Override + public Void visit(Go go) { + go(go.dist); + return null; + } + + private abstract class State { + abstract void go(double dist); + void up() {} + void down() {} + } + + private final State shortUp = new ShortUpState();// muss nicht geschrieben werden + private final State down = new DownState();// muss nicht geschrieben werden + private final State longUp = new LongUpSate(); + + private class LongUpSate extends State{ + void go(double d) {} + void up(){} + void down(){} + } + + private class DownState extends State{ + void go(double d){} + void up(){} + void down(){} + } + + private class ShortUpState extends State { + void go(double d){} + void up(){} + void down(){} + } + + + private void go(double d) { + state.go(d); + } + + private void down() { + state.down(); + } + + private void up() { + state.up(); + } } diff --git a/src/uebung10/logo/Sequence.java b/src/uebung10/logo/Sequence.java index c367701..5358041 100644 --- a/src/uebung10/logo/Sequence.java +++ b/src/uebung10/logo/Sequence.java @@ -5,7 +5,7 @@ public class Sequence implements Stmt { public final Stmt[] seq; public Sequence(Stmt... seq) { - this.seq = seq; + this.seq = seq.clone(); } @Override