From 7c6c6b2c2c5db638b5a6b81c32e4b8b3c3c91dd2 Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Tue, 26 Nov 2024 20:42:04 +0100 Subject: [PATCH] Commented the code --- bin/App.class | Bin 10146 -> 10592 bytes bin/Break.class | Bin 938 -> 938 bytes bin/BreakSchedule.class | Bin 1599 -> 1599 bytes bin/Co2Data.class | Bin 3715 -> 3715 bytes bin/Date.class | Bin 1836 -> 1836 bytes bin/Points.class | Bin 2206 -> 2206 bytes bin/Teacher.class | Bin 1290 -> 2074 bytes bin/TimeTable.class | Bin 2698 -> 2698 bytes src/App.class | Bin 0 -> 9083 bytes src/App.java | 22 +++++++++++++++++----- src/Break.class | Bin 0 -> 714 bytes src/Break.java | 6 ++++-- src/BreakSchedule.class | Bin 0 -> 1205 bytes src/BreakSchedule.java | 4 +++- src/Co2Data.class | Bin 0 -> 2976 bytes src/Co2Data.java | 6 +++++- src/Date.class | Bin 0 -> 1459 bytes src/Date.java | 6 +++++- src/Points.class | Bin 0 -> 1806 bytes src/Points.java | 4 ++-- src/Teacher.class | Bin 0 -> 1823 bytes src/Teacher.java | 27 +++++++++++++++------------ src/TimeTable.class | Bin 0 -> 2333 bytes src/TimeTable.java | 4 ++++ 24 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 src/App.class create mode 100644 src/Break.class create mode 100644 src/BreakSchedule.class create mode 100644 src/Co2Data.class create mode 100644 src/Date.class create mode 100644 src/Points.class create mode 100644 src/Teacher.class create mode 100644 src/TimeTable.class diff --git a/bin/App.class b/bin/App.class index fd1cc97ee232dddde3a6a198cbc8d0b6e9850f7f..08e9a41a456c2befd53a60c82927285b846426c8 100644 GIT binary patch delta 5433 zcmb7Id3+RA@~`TdOm`-ot0xnZ36O!1kPt$+k3f__Ab}h}5^fZlq?3$HW^fJ^R-OGR z>#oP{itPm}Dk26I1cHVTlvQEDb-ma7#2a<-+I1Bcli#;{k_?~U@2?G{^Xk>{zE!WP z-s`@9!Kpg?b3NThiKtX4-C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qv9DrF5^~t>m$uyHWQUS2$>3}H?!GTd15<6CCO|#H&_{cH>2v4du>y@WzrtG ze!-Ak^2fR!Oj}SEzjtDsZKAzfGTreR_6cmYr9;M+^vV5w@~1M@t?oyXTiq=W3)UmE zXCYABcvYd1#L5(!o=IY%wutuA`38|h_9gF|=H6N7^t#IBTGy-*Ia zpAWa*komHZG-N632$V33eLwLB&#DAG#iHGZG(63M-_O<0VH%!CZ4@t{0Wab*yo5zO zX4>!yI`9U&?->@aeJe8gD5{!=c0v&u0?Mp;R#pj4b_u~Ky!jejhk zFnK$$OFot3>^Cd<-=NPpN??<3vLNOzgZ+R-1Kbm~U5x)TC6e&ec%Nf2a z;8g6q)W=y*)p{ma&qT!qo06eqD{hOb#ei-6#xci6x09! delta 103 zcmZ3*zKWgW)W2Q({{Lri-pH|*k&%6}J(K9<(~KId+zhM?Jd+!l#3%DJ=`->J#cf%I xfnp*+F*inWu)4cU8m!VlF&VHrMP@reIR+L6c?M1f1qMC_MFwF8rO5@%Rsg;b7PkNZ diff --git a/bin/BreakSchedule.class b/bin/BreakSchedule.class index 1dc403cea466d231ec45d1ec67226891899a43d4..6e99e650f8f8cb090285c2e565c0412cc8cd8cea 100644 GIT binary patch delta 113 zcmdnbv!93K)W2Q(7#J9AH*z?$7_u_30ii7eD}w_ACxaUU7eg(OZeZYLXl3AI=m*l1 z7z7!nGYBy(1ky_wgeTXqd{q?(>XBgJVUT2y0zyLuX$DUQ8HNZTJBdM_p&TgJ$e=iR H8tX~`!K@RP delta 113 zcmdnbv!93K)W2Q({{Lri-pJw1V#vb4#=y#8%fQ0mz`()a#=yx?3#1zuco5cc1_lP(jT}r|f&vUI41x@t3_=Wi48ja@3?h@IxdIp^C+Be4vdS{B zGRRFnz%4%cD3?B?;^ePDF;$?L8d%JaTc1&LavirVt1eJX4=8rm(U^gQ!HhwG!JI*i z!2)QS6@vzYHG?IC9fJ>pJwqUa6GI4tGeb0k3qt~fD?=ubU(DdaP|o1RP|e`Y(8b`l q`5q4oqiiSxJ3|=ILE#J%3=s@U3{ecaKuvlKF$}g0v6KJvwg3P_HYK9~ delta 200 zcmW;EKW_nX0LJm}H7?E_rwl6O44Q}#E@>N5a{h#nNF$0Ou~;QGgF#|pvi@F4)6LLy zv3L)>i>}Tu#^;kK->tQ^wA1zQ>$)_)wFf<9;vtBSM@&K_2#dJhQzBxaJ8BG-xcD=k z#8J1Eg!q@1l=ghLu3;-Fu`wJqBP}cKT({A9k*!xEyvbUDG)3Mi@j;nSDh#PIrN)dp obGer^SACBtcyUE(SfIPJN(R z20*inCMU7FGMY_}XA_;gmsOq73e5TiWZ8jP=4|SWPC%9oqZ^pNku8qVXR-jh3;1R2~J zgcyPtL>a;u#3swLG|Nf?RZB5&GDri}$uI~r$TCO*^~f_QGAJ`BP2SHkNl*)Dnl?~I z2Pm!!G)sSS600kt@#J_m(aC#R)fvsftY1KuHJD}2rp{;&WZ5t}gZUfT;ut+93$V)o E0D>|f@&Et; diff --git a/bin/Points.class b/bin/Points.class index 0e69398476ef294336f2bc77093875ef3b6893e6..e3767140b12e52221eb613b84f31bfcd54cd43c2 100644 GIT binary patch delta 17 ZcmbOyI8Tt{)W2Q(7#J9AH*!ql002GA20H)% delta 17 ZcmbOyI8Tt{)W2Q({{Lri-pDbH0{~3h2tNP- diff --git a/bin/Teacher.class b/bin/Teacher.class index 69117f61b2742322ea45046dd145ec6fe6116f71..19c1c18c0e6892a6483c76a6fc969823f1f33073 100644 GIT binary patch literal 2074 zcmaJ>Yg5}s6g>ihj1dr?!G)xT05PVC+cfkM2yLOIxHTlLDIrZ?YkLPP$dX5rnaMxt zkLZWKAd_UK)6e};ot|9@EWlIENV|9M>)dni>YsmK{RQ9wq=_yA=B^agy7W!-7`XaO z9EpM>+=Ify$}?FFsdq&~Zi}XYp_10NLfa|uV8uXR**Mkf zE0<5!RE(hR`QZ+e7#O*1VxUI>FwoodY&Q%Hq)LzUj=rhYs$;u$xMrX`x41{!4X?(s zMhpzMv2KZ=PP}OhW6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4c0EOZA!_hu9naBpg)G`ZWG|OrT#(uTv55XH~9|YZjdvOynw-Dl1W*5}H zF2#$;&h~H~IA`pQJ^TCj`Mp@so7uNS&cPvxONup?qL0L|nxVupo8+h|ud{;BDlPJ~ z@#s*9yUv#hidfd!Rr!uG&r}$(!Bp^vDs#3>mYQj@ZTjq(7mDVUdgNL!zE8cIz!z_b zH^ukFTjKlT2jXqhMJA5sX diff --git a/src/App.class b/src/App.class new file mode 100644 index 0000000000000000000000000000000000000000..3c694b30d58ef0168dcd146c052bc9c27b0cbd5b GIT binary patch literal 9083 zcmcIq3wTu3wO(spXJ>K}!hrx29v&1hJn|q))BxJNATg5!GXV{VaF{vCjG4?CXU>4J zwpK-Lwbr(_R@ADcYI<8+CAJVi>Dy|nt$o+3wOZR+`+oW;lKby7lgvbN``z!m-{pgS z_S$Ff_1bIwd+jrP`^1rBM0A$R=cf_+k)R)IAfMHU=~;!I6ZE{G7yQ&mztG4n+^efrCBAZ_q(QoLtf?oC0@8~r@{ht2drx5*7Hh(HY^JhVS5%kw$`WyXS&_4wI zQ_#Nzy)NhtL2n9rOVGas9T)Vrpc8_|1(RSF>=Nu2>=Eo0>=UdA7J`ce`vn&ZRt1*` zE)_gOaGBtlf;GXj1kV;+E_jaMxq{~j4hXIgJYVnv!3za15`2naUGQSTrwTqz@DjmG z1uqkPy5LH|%LT6xyi)Kg!BtS1s}-&(q6fHE603{3j?XBj$M{UytWmgLn)#BPaF(C$ zbGY@IL;yU-k3( z+@WyLPf707$iqE;4skEU@n+d*uTZeF|TVP~mIj@U?E5TW`5(_75Vmmk_*H z@O6T(7kq=@_bdDXg>Ph1(qSW!FjGvkf|nY*jhc)di`Rs*gKH5dwrPZ;W-86(-xlo6 z5*Sx|y1P4fbZzczYV8Rzxwf@4d0QHLTS3g)mSq(;5(70MI~7X|V1;j8ED^KMWpY<8 z-@@c+wjw6ej9@Hbc4dZknW+lxQW+!+EckzYCEexmWbp=H&`jhFs6C%S8r^{bWB*= zzI@U^g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>$<9r)qC7> zL(4t;aceC1);0JrZ+>;aH%8Zw(G3ksKzW=>0?J`}zXZg&;2H4EFI&3v2x3$^X@p)L zr5i`-rhqa=A8Zh#bn_^EC`%N%>;2{afItX!m-|;i;uzf$@ExWPyAX~aX(%rDdv=~Y ztOkl7r+ESOTciYv8`OX(_tyoA1L_!kbgv(NeJIPe=>N#J=$&jwXl{ez7#Kj|^RXlJ z@odC;dE~^4dl~IxV|1I_fvrzC2zmPmogTyrBs8Y)bEZ$cC~YXob^|3}K7gdECzH>h zTPe!5&XagM_k)(ttI+oIZs&OwUoD@xxOp6f6d^qYKCc$j6G)9GQLlUl+@8h>@?Gl1 z)nXS;4wJqQ5dINR@uxtkp93_WLjpaIs__Lx+VhC8UjX-C1VH=}sqr%X5Obcz|CD%z zeoJrCs|cjuaWS4{^ct7rxAzMA1J0d4@e2GzUQ2(6#((8C`0;)teTO^g2@cWgyoKK2 zt@I{urxP5eaai+j9-!mA8}yZ+ufp>NJn_r96U*svHSzI4f#L|EE`L15%} z{bhc65z7I?5_ni5wu;TOaroI|bjO3B3rprt!0+FmgwzZYOa8gwDBamNN_QQiPd-B1 zoXTOclJGt1?{jN+clUX;d%F9)+P&S6&^6*Q>ci-#LKxj2!sw?%eLn5JP@kgRkMiTX zJTBvZRzN@zFwqY$m7vrt1AhGgV=nq3pTN^k%*S1B_#!|*0o{hM_$ieBnbZE 2) { + calculateBonusPoints(calcBreak, teacher, nextTeacher); + } + } + + private static void calculateBonusPoints(Break calcBreak, Teacher teacher, Teacher nextTeacher) { if (teacher.getShortName() != nextTeacher.getShortName()) { teacher.addPoints(0, 0, 5); } @@ -112,6 +119,7 @@ public class App { while (true) { int userInput = getUserInput("Do you want to see how the points were calculated? (1 = Yes, 0 = No)"); if (userInput == 1) { + printTeachers(true); printExplanation(); break; } else if (userInput == 0) { @@ -150,7 +158,7 @@ public class App { (a, b) -> Integer.compare(b.getTotalPoints(), a.getTotalPoints())); } - private static void printTeachers() { + private static void printTeachers(boolean detailed) { int rank = 1; int previousPoints = -1; @@ -162,7 +170,11 @@ public class App { rank = i + 1; previousPoints = teacherPoints; } - System.out.println(rank + ". " + teacher.getName() + " - Points: " + teacherPoints); + if (detailed) { + System.out.println(rank + ". " + teacher.getName() + " - " + teacher.detailedPointString()); + } else { + System.out.println(rank + ". " + teacher.getName() + " - Points: " + teacherPoints); + } } } @@ -233,14 +245,14 @@ public class App { calculateBreakPoints(longBreaks[i], teacher, nextTeacher); } } - } catch (Exception e) { - System.out.println("Error processing data for date: " + date + ". " + e.getMessage()); + } catch (MalformedURLException e) { + System.out.println("Error processing data for date: " + date + ". " + e); } } } sortTeachers(); - printTeachers(); + printTeachers(false); interactWithUser(); } catch (Exception e) { diff --git a/src/Break.class b/src/Break.class new file mode 100644 index 0000000000000000000000000000000000000000..4f922e85f956fd45c2455ce08f8ad2c494735f6d GIT binary patch literal 714 zcmZvY%TB^j5QhKLmKNIL74ZU!;HK25i5nLh7osL4Mi&}3t_n1yUP@A`Pvt@riHQpz zz=tyarw|0=1Jsx z_q%uAvuDFV+D1ki6PAq?RJeNr2+T=j@4*W@dsodnzr}NK!v@N{md+EZP-Hz{ij+t^ zRpX1L;HX0Rk k?gzAFQ@7ZM;_ggT=UE4AkSy`Mo9tBPIu&ZHF|MHS3oL(Ls{jB1 literal 0 HcmV?d00001 diff --git a/src/Break.java b/src/Break.java index 2e182f0..937f5c1 100644 --- a/src/Break.java +++ b/src/Break.java @@ -1,8 +1,10 @@ public class Break { + // #region Fields private int start; private int end; - private Co2Data co2Datas[]; + private Co2Data[] co2Datas; + // #region Getters and Setters public int getStart() { return start; } @@ -27,10 +29,10 @@ public class Break { this.co2Datas = co2Datas; } + // #region Constructor public Break(int start, int end, Co2Data[] co2Datas) { this.start = start; this.end = end; this.co2Datas = co2Datas; } - } diff --git a/src/BreakSchedule.class b/src/BreakSchedule.class new file mode 100644 index 0000000000000000000000000000000000000000..36000fa6c59da6b4de0064ceaed9ca73f8ff04c7 GIT binary patch literal 1205 zcmZuvOHUI~6#i~IGq)`xbkKrT0pGUerT9Q;MFAhF)=pv@lG=q1WyFzMOqm)JHyYjP zMpwF&Xo!gmjZp$BF>$3oz>SGZ|A7lle4Kj=v?MmubIzReeP_ON?*05{VG%$-js(z% zZ5-PqPr^U2g@>zdVDah+ms%9(cK(R@k*;tXptu2q;kV_lVe zjy{gP9Qzpj8E2woxs@_CjsCAoA~iDAcg%9F_+WiQU!qW4k{ZZNRmuhXgd>DC%P(dM zm+bLM(e4q7bgV;&L6sE-zSNInzm5aw*KrVsbPOP_BZ0#LJ*cAzK^=xL&BCljkcL>* zn;|IYEn20CUUTfSU2qwEwUGn)73CzWwwk1Cmo0ay%+Od%ihU8=S*f)|qIK(B=Flej zC2KluUnevj(K$Mzl6+aWjIWa;&=a1lZKUNEspvMu!1MxK#ZV{>3HDPU+NtI4DneypcP9tr&h4j50*Q{5`w_YS%mzh5;?C%|m5)ghL|I7(P&yhxr?D0e*~j84L0Zn#1Z! zWjxF?vwuH!hm^PQ3j1JknWHGv_nZduA@E8QLjw+|Zto^BLL~^A-Hd{1M65B>#fs zFGzmB co2Data) { Break[] breaks = new Break[startTimes.length]; for (int i = 0; i < startTimes.length; i++) { @@ -30,4 +32,4 @@ public class BreakSchedule { } return breaks; } -} \ No newline at end of file +} diff --git a/src/Co2Data.class b/src/Co2Data.class new file mode 100644 index 0000000000000000000000000000000000000000..8dc6a2a3b1488198640bb032d3142e6634529d48 GIT binary patch literal 2976 zcmai0`B&6d6#fDO8DeA;QBV+Z8)i^iy8@O9D1sdn0Y$WnVJ1RkNX8_CqTOq2?PmAd z)$Vrt!S>X_$~kR+^7Qn-=>K7Bzn9Fwu$=anm%R7x`|fw|{q9Tt{O8860Pe&03c}c1 zge`bT3{eG}&?|<0V!B^Op8^?s6?Ec&jQ$`76et)B;$RSm#Osh44$BxWC*C6p%J8U+ z$7CE6>zaa<7*SAxm>A*;G4*9=$8oVcDr2k&22PYiLPEg=%pfcU9Y~7dqyig`3|G)0 zXiA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@ -6,10 +6,12 @@ import java.util.ArrayList; import java.util.List; public class Co2Data { + // #region Fields private Date date; private int time; private int co2Level; + // #region Constructor // Constructor public Co2Data(Date date, int co2Level) { this.date = date; @@ -17,6 +19,7 @@ public class Co2Data { this.time = date.getHour() * 100 + date.getMinute(); } + // #region Getters and Setters // Getters and Setters public Date getDate() { return date; @@ -42,6 +45,7 @@ public class Co2Data { this.time = time; } + // #region Data Fetching // Fetch and parse data from a CSV URL public static List getData(URL url) { List dataList = new ArrayList<>(); @@ -74,6 +78,7 @@ public class Co2Data { return dataList; } + // #region Data Parsing // Helper method to parse CSV data and create a Co2Data object private static Co2Data parseData(String line) { try { @@ -88,5 +93,4 @@ public class Co2Data { return null; } } - } diff --git a/src/Date.class b/src/Date.class new file mode 100644 index 0000000000000000000000000000000000000000..70fddb712e30c49bf6310ca5c52676c9b77c854e GIT binary patch literal 1459 zcmZ`%TTc^V5Ix&&yO*v|D`1g}2qI;nfJH@V6&2)?fF_op=!*+oV3D?@Y&H5veD>W3 zO{@|V{Q>?cp`!V<58aRuL zglP%aBwUwp!(^DzaZ|%BAz?t2zpa7qYg^1ieEa?Lqx1c4$ z)ZnDAJPpuSbTeMy*E@un3p}yELK#bhz976d9?m3Gf`{X3CJ`Z+Rqb>*bBt&Wnw?hb zNVn6GIx_5Twef5cHr`|Q7g(QIT0sxv1Y(Q^RG36DinP#A=_#}$gE(>=WQij@<|1rx z4@6{dL*!Eq6=n8i5oz~`iryM@yRQbr?o?|q?aoLIO&tfJGpCy!FR*V9d-c+QKHl`> zB8?luAnS6^8eN{z3WXV?_U31p>I*4L5Kq2GGPsH-3v$O-LtYITE))#c6?kZKv@y0A zXUQ}Nn`9eE(G=?ruw&iwKAzGi!s^-wg1SM`;BuOAuq9P*rp}N$)RJm6Q?sOAZb>zp zsdJ^>!3d*l(mFkmv2uws`ggQ#hGo2CwC6WfB0WGdvJs#tkr^P3C?@C_ Q@sCYzEVE*YcOi`a24Y?M)&Kwi literal 0 HcmV?d00001 diff --git a/src/Date.java b/src/Date.java index b3f4079..5e71ded 100644 --- a/src/Date.java +++ b/src/Date.java @@ -1,10 +1,12 @@ public class Date { + // #region Fields private int year; private int month; private int day; private int hour; private int minute; + // #region Constructors // Constructor to parse date string public Date(String dateStr) { String[] dateTime = dateStr.split(" "); @@ -33,6 +35,7 @@ public class Date { adjustForSwitzerlandTime(); } + // #region Time Adjustment // Adjust time for Switzerland timezone (UTC+1 or UTC+2 during daylight saving // time) private void adjustForSwitzerlandTime() { @@ -46,7 +49,7 @@ public class Date { } } - // Getter methods + // #region Getters public int getYear() { return year; } @@ -67,6 +70,7 @@ public class Date { return minute; } + // #region String Representation // Method to print date in a readable format public String toString() { return String.format("%04d-%02d-%02d %02d:%02d", year, month, day, hour, minute); diff --git a/src/Points.class b/src/Points.class new file mode 100644 index 0000000000000000000000000000000000000000..1cef4994585c2e1616700d4206ee0643f3e36cfc GIT binary patch literal 1806 zcma)+Z%-3h6vm(189Fc>rhpaEQZ24%84#3p{Re6St4XsUMvMvZ4Fe2VEmKpb#P70+ zZ+){bc9Z=>Hrf3E`=Qo-&b?C^8b~&TbMHO(oZme6oO}DvzkmJ>;2s{kaByP)1=Pe$ zi3waxW2PTB9n89z!!4K2+b-tut%ExX#ofkXwAzR}Nwn0C!uJZQu25*U;=QPydJ0>u zxO4EL)rgY=h5TY8ZX}NttlHFT1$()*6Opshh@JPdm9#S}5<;5!d@aZllUQCc;fs_Mo(tWNICRE^54M+>YPu!+$M zWvVcAtY~fPU9_DzxbNWs9(uTnF$W7C7V(JP>mJBIPFM|-w`}`<_)(#c-IX2u83rPL#<$|f|tI7d5*KH7fR7~r2v zMuC1$lS(P+Gf6h1W;Ch%Bb@SQ*qS)b#kg5mL4}KoS?Dk1GGFjXC{o)HF4Im^;dv5Q zk^e&Jwu6FFe4ZS?(A{0<#Q($pc52b1spzK^og=HFMNj{VoK%3LE&@mUlscTJ%2A&F z0!kReI4%-)fiqLl3P-7EUqISVoR|{kwNo}P;u5VC|GI7y;09&u2z~tYamih+Yl7vz z%INZ`c&isb$iuiyzl~eI{Fa9P&FQ1LiTo|MNHu3Y!x$-sVetP0!`4a|% z4OXbUnI7BR1D^rld$;*(?(cTw8Se`}M*-s~-1ok8E=TAK8d?@5y8NAk{Ja5gMSK0^Qc phAjv^llx=qSw8q312Q{;`!lo5g)-{acn@D-7HjlQaxaJL{{hBaEkFPO literal 0 HcmV?d00001 diff --git a/src/Points.java b/src/Points.java index 7fefe2b..7334c2a 100644 --- a/src/Points.java +++ b/src/Points.java @@ -4,7 +4,7 @@ public class Points { private int longerBreak; private int bonusPoints; - // #region Constructor + // #region Constructors public Points() { this.fiveMinuteBreak = 0; // Default initialization this.longerBreak = 0; // Default initialization @@ -73,7 +73,7 @@ public class Points { return fiveMinuteBreak + longerBreak + bonusPoints; } - // #region String Representation (Optional for debugging or output) + // #region String Representation @Override public String toString() { return String.format("Five Minute Break: %d, Longer Break: %d, Bonus Points: %d, Total: %d", diff --git a/src/Teacher.class b/src/Teacher.class new file mode 100644 index 0000000000000000000000000000000000000000..d8883a69d6e4b328d9363edcd009756cb2c4eda6 GIT binary patch literal 1823 zcmaJ>>uwrH6#fP<3+uIUu$?${oRGv9jFZrtn>ILZYg%eraMD6^Y1&F-7{SKtU9>w` z%A52d`lB~HY9dwr-G{1rW(SA0K}F)6nRC8#pR@n``|2+Mck!c%c@)!_!`q6yGl_Tc zo`Lt(Wz)b1CJe2|dZMRbzm24{?LD%!;9tB~@jzSm` zDglOM&$C?_Fr;b^!xPyiw`|vz+YIyhQOos5WLx&yWSgnkuGs4z?hC)k_Z^a09U&XT zz;pTaQ3q5zp>$@`bZUB%J32N)JilJ0>s95*{y9_ho03toLa0QFh2c3h3 zC0wGNJ)$gbB8GD$p4;cE-upuuoqIOts- zbi?TzgAC7P@nHYCXi0{tp+N|aQ@a>eqf^n)Qnb$l5yLdKamRD}!D%lO`LL4!mk#-XD0^;;%g46t(kYNUe9a5$)l{Qh8ElJzM`{}1 zF)RG>}Vd{6J7=6MHwT2-s+y239zJO~7>%umrl41DOp?{c^8 zh+tV8j#<&jTAVR#zUYZD@MjVHn28Tul)2+HY$-|xeqdM`sc&3v3|IdjhwJpso2O4$ z0+-d=fMJ1dF}lUnE`?`Wmypw<5H|>O4LPFM=~hRakibgeC0JqO7_q`{h;RIfL=1mp z;uy)oYZy;oB6W=PuLNYcLG&Ufh)z;i3u#PIxM?gSL)x3fwd*C~j8GGWKM?!njcGCz z&JtZ23r(Jfs-kGUiK>KE;>v4^yrxfJ{(R2yB5CtjC#ul*skj93%L=`8f=R^}Phcs2 z~B%3Pa&djuq0Yz&CW@Y0Wa4&1h!6!UbShfcCjcjas7?<;n9Z z`QN~;L3%gC-cuuABTGG={T=aPLb_2CG@#oQHikQRO57yV$9RS( nameMap = new HashMap<>(); private String shortName; private String name; - private int totalPoints; + private Points points; - // Constructor public Teacher(String shortName) { this.shortName = shortName; this.name = nameMap.get(shortName); - this.totalPoints = 0; + this.points = new Points(); } - // Getters + // #region Getters public String getShortName() { return shortName; } @@ -24,16 +24,19 @@ public class Teacher { } public int getTotalPoints() { - return totalPoints; + return this.points.getTotalPoints(); } - // Setters - public void setTotalPoints(int points) { - this.totalPoints = points; - } - - // Method to add points + // #region Public Methods public void addPoints(int smallBreakPoints, int longBreakPoints, int bonusPoints) { - this.totalPoints += smallBreakPoints + longBreakPoints + bonusPoints; + points.addBonusPoints(bonusPoints); + points.addFiveMinuteBreakPoints(smallBreakPoints); + points.addLongerBreakPoints(longBreakPoints); + } + + public String detailedPointString() { + return "5 minute points: " + this.points.getFiveMinuteBreak() + "\nlonger break points: " + + this.points.getLongerBreak() + "\nBonus points: " + this.points.getBonusPoints() + + "\nTotal points: " + this.points.getTotalPoints() + "\n-------------\n"; } } diff --git a/src/TimeTable.class b/src/TimeTable.class new file mode 100644 index 0000000000000000000000000000000000000000..2c011d6ff330dc40298cecdde51121542a8ac605 GIT binary patch literal 2333 zcmbtU-%}e^6#jPeV{bx$xIn8-T2rWPhzb@|N{iKopDCeK7SR-cEy*@44G9xMr}oWf z|Aap2OJ{u28Et2Ds!zW7M>&3H*-dB-Zc4r#ROvV0& z3bgyF;YeMpTRTpf0fw^wRb+Gn=Xtcpc>@?+de5&Yzb7zB`z~kG2oV8>a!;Y%uMP>^1xJwe-b*y-!OlpxhIG` zMv6o9F$OspkJ0-(RLP7zMf^|6rbDt_M2t3$G!n?57bDDh2}$I*k1-6ej3FMH)4bN; zJ|gL8G#aBTPt@UdwC{L}MUn<9dWN1-NIgTM6f%3QQrPUXN)fZ)Dn-qtRWi(1EH0ja zM||9T-hV*+2k9T}?(gA4#Eql)Dan6Y^0#s2m(mI0DMhEb_7*WN)k$j}zXBfQy#5C}t;u;~%l@~HWiL}1@b$v_w{0Hogn5DR5@D`Vm_Xd&-1#;*K!$WvEsdzVdw)f#=Y*b GKKvIyg`rje literal 0 HcmV?d00001 diff --git a/src/TimeTable.java b/src/TimeTable.java index d304979..f0b7ffb 100644 --- a/src/TimeTable.java +++ b/src/TimeTable.java @@ -1,11 +1,14 @@ public class TimeTable { + // #region Attributes private String[][] shortTeacher; + // #region Constructor public TimeTable(int roomIndex) { shortTeacher = new String[11][5]; // 11 lessons, 5 weekdays initializeTimeTable(roomIndex); } + // #region Initialization Methods private void initializeTimeTable(int roomIndex) { switch (roomIndex) { case 0: // Room 37 @@ -70,6 +73,7 @@ public class TimeTable { }; } + // #region Public Methods public String getLesson(int lesson, int day) { if (lesson < 0 || lesson >= 11 || day < 0 || day >= 5) { throw new IllegalArgumentException("Invalid lesson or day");