Objektdiagramm erweitert

This commit is contained in:
Maxim Derksen
2022-02-14 09:46:18 +01:00
parent 886f88bb54
commit d34ce44ae8
3 changed files with 193 additions and 149 deletions

View File

@@ -1,33 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="14.3.0"> <diagram program="umlet" version="14.3.0">
<zoom_level>10</zoom_level> <zoom_level>6</zoom_level>
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>180</x> <x>114</x>
<y>400</y> <y>582</y>
<w>450</w> <w>270</w>
<h>160</h> <h>96</h>
</coordinates> </coordinates>
<panel_attributes>_object: WordleServer_ <panel_attributes>_object: WordleServer_
-- --
+ int currentDay
+ int DEFAULT_PORT + int DEFAULT_PORT
+ DatabaseConnector db + DatabaseConnector db
+ String wotd
-- --
+ WordleServer + WordleServer
+ WordleServer(int pPort) + WordleServer(int pPort)
+ processNewConnection(String pClientIP, int pClientPort) + processNewConnection(String pClientIP, int pClientPort)
+ processClosingConnection(String pClientIP, int pClientPort) + processClosingConnection(String pClientIP, int pClientPort)
+ processMessage(String pClientIP, int pClientPort, String pMessage)</panel_attributes> + processMessage(String pClientIP, int pClientPort, String pMessage)
+ checkDay()</panel_attributes>
<additional_attributes/> <additional_attributes/>
</element> </element>
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>290</x> <x>180</x>
<y>250</y> <y>492</y>
<w>210</w> <w>126</w>
<h>70</h> <h>42</h>
</coordinates> </coordinates>
<panel_attributes>_object: Server_ <panel_attributes>_object: Server_
-- --
@@ -39,9 +42,9 @@
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>0</x> <x>0</x>
<y>700</y> <y>786</y>
<w>210</w> <w>126</w>
<h>70</h> <h>42</h>
</coordinates> </coordinates>
<panel_attributes>_object: Queue&lt;ContentType&gt;_ <panel_attributes>_object: Queue&lt;ContentType&gt;_
-- --
@@ -51,10 +54,10 @@
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>300</x> <x>186</x>
<y>700</y> <y>786</y>
<w>210</w> <w>126</w>
<h>70</h> <h>42</h>
</coordinates> </coordinates>
<panel_attributes>_object: DatabaseConnector_ <panel_attributes>_object: DatabaseConnector_
-- --
@@ -64,10 +67,10 @@
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>290</x> <x>180</x>
<y>80</y> <y>390</y>
<w>210</w> <w>126</w>
<h>70</h> <h>42</h>
</coordinates> </coordinates>
<panel_attributes>_object: List&lt;ContentType&gt;_ <panel_attributes>_object: List&lt;ContentType&gt;_
-- --
@@ -77,10 +80,10 @@
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>590</x> <x>360</x>
<y>700</y> <y>786</y>
<w>210</w> <w>126</w>
<h>70</h> <h>42</h>
</coordinates> </coordinates>
<panel_attributes>_object: QueryResult_ <panel_attributes>_object: QueryResult_
-- --
@@ -90,10 +93,10 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>390</x> <x>240</x>
<y>310</y> <y>528</y>
<w>30</w> <w>18</w>
<h>110</h> <h>66</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;&lt;&lt;-</panel_attributes> <panel_attributes>lt=&lt;&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;90.0;10.0;10.0</additional_attributes> <additional_attributes>10.0;90.0;10.0;10.0</additional_attributes>
@@ -101,10 +104,10 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>390</x> <x>240</x>
<y>140</y> <y>426</y>
<w>30</w> <w>18</w>
<h>130</h> <h>78</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;..</panel_attributes> <panel_attributes>lt=&lt;..</panel_attributes>
<additional_attributes>10.0;10.0;10.0;110.0</additional_attributes> <additional_attributes>10.0;10.0;10.0;110.0</additional_attributes>
@@ -112,32 +115,32 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>390</x> <x>240</x>
<y>550</y> <y>750</y>
<w>30</w> <w>18</w>
<h>170</h> <h>48</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;..</panel_attributes> <panel_attributes>lt=&lt;..</panel_attributes>
<additional_attributes>10.0;150.0;10.0;10.0</additional_attributes> <additional_attributes>10.0;60.0;10.0;10.0</additional_attributes>
</element> </element>
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>200</x> <x>120</x>
<y>720</y> <y>798</y>
<w>120</w> <w>78</w>
<h>30</h> <h>18</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;..</panel_attributes> <panel_attributes>lt=&lt;..</panel_attributes>
<additional_attributes>10.0;10.0;100.0;10.0</additional_attributes> <additional_attributes>10.0;10.0;110.0;10.0</additional_attributes>
</element> </element>
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>500</x> <x>306</x>
<y>720</y> <y>798</y>
<w>110</w> <w>66</w>
<h>30</h> <h>18</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;..</panel_attributes> <panel_attributes>lt=&lt;..</panel_attributes>
<additional_attributes>90.0;10.0;10.0;10.0</additional_attributes> <additional_attributes>90.0;10.0;10.0;10.0</additional_attributes>
@@ -145,53 +148,94 @@
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>740</x> <x>186</x>
<y>430</y> <y>696</y>
<w>210</w> <w>126</w>
<h>70</h> <h>60</h>
</coordinates> </coordinates>
<panel_attributes>object: Query <panel_attributes>object: Query
-- --
+getStatistics(String username)</panel_attributes> - pullStats(user)
+ pushStats(user)
+ checkForLogin(String username, String passwort):boolean
+ getWord(int)</panel_attributes>
<additional_attributes/> <additional_attributes/>
</element> </element>
<element> <element>
<id>UMLClass</id> <id>UMLClass</id>
<coordinates> <coordinates>
<x>810</x> <x>462</x>
<y>200</y> <y>570</y>
<w>210</w> <w>126</w>
<h>70</h> <h>120</h>
</coordinates> </coordinates>
<panel_attributes>object: User <panel_attributes>object: User
-- --
+int connection_id</panel_attributes> + final int connectionID
+ final String username
+ final String passwort
+ int timesPlayed
+ int winPercentage
+ int currentStreak
+ int maxStreak
+ int lastDayWOTDFinished
+ int state
+ int[] wonInTurn
</panel_attributes>
<additional_attributes/> <additional_attributes/>
</element> </element>
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>620</x> <x>378</x>
<y>260</y> <y>618</y>
<w>210</w> <w>96</w>
<h>160</h> <h>24</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;.. <panel_attributes>lt=&lt;..
n</panel_attributes> n</panel_attributes>
<additional_attributes>190.0;10.0;10.0;140.0</additional_attributes> <additional_attributes>140.0;20.0;10.0;20.0</additional_attributes>
</element> </element>
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>620</x> <x>240</x>
<y>430</y> <y>672</y>
<w>140</w> <w>24</w>
<h>70</h> <h>36</h>
</coordinates> </coordinates>
<panel_attributes>lt=&lt;.. <panel_attributes>lt=&lt;..
1 1
</panel_attributes> </panel_attributes>
<additional_attributes>120.0;20.0;10.0;30.0</additional_attributes> <additional_attributes>10.0;40.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>684</x>
<y>606</y>
<w>126</w>
<h>54</h>
</coordinates>
<panel_attributes>object: Game
String wotd
--
String randomWord
String[] guesses
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>582</x>
<y>624</y>
<w>114</w>
<h>18</h>
</coordinates>
<panel_attributes>lt=&lt;..</panel_attributes>
<additional_attributes>170.0;10.0;10.0;10.0</additional_attributes>
</element> </element>
</diagram> </diagram>

View File

@@ -4,8 +4,8 @@
<element> <element>
<id>UMLGeneric</id> <id>UMLGeneric</id>
<coordinates> <coordinates>
<x>584</x> <x>496</x>
<y>160</y> <y>168</y>
<w>80</w> <w>80</w>
<h>24</h> <h>24</h>
</coordinates> </coordinates>
@@ -15,8 +15,8 @@
<element> <element>
<id>UMLGeneric</id> <id>UMLGeneric</id>
<coordinates> <coordinates>
<x>120</x> <x>32</x>
<y>160</y> <y>168</y>
<w>80</w> <w>80</w>
<h>24</h> <h>24</h>
</coordinates> </coordinates>
@@ -26,8 +26,8 @@
<element> <element>
<id>UMLGeneric</id> <id>UMLGeneric</id>
<coordinates> <coordinates>
<x>352</x> <x>264</x>
<y>160</y> <y>168</y>
<w>80</w> <w>80</w>
<h>24</h> <h>24</h>
</coordinates> </coordinates>
@@ -37,8 +37,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>152</x> <x>64</x>
<y>176</y> <y>184</y>
<w>24</w> <w>24</w>
<h>536</h> <h>536</h>
</coordinates> </coordinates>
@@ -48,8 +48,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>384</x> <x>296</x>
<y>176</y> <y>184</y>
<w>24</w> <w>24</w>
<h>536</h> <h>536</h>
</coordinates> </coordinates>
@@ -59,8 +59,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>616</x> <x>528</x>
<y>176</y> <y>184</y>
<w>24</w> <w>24</w>
<h>536</h> <h>536</h>
</coordinates> </coordinates>
@@ -70,8 +70,8 @@
<element> <element>
<id>UMLGeneric</id> <id>UMLGeneric</id>
<coordinates> <coordinates>
<x>376</x> <x>288</x>
<y>240</y> <y>248</y>
<w>16</w> <w>16</w>
<h>56</h> <h>56</h>
</coordinates> </coordinates>
@@ -81,8 +81,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>152</x> <x>64</x>
<y>216</y> <y>224</y>
<w>240</w> <w>240</w>
<h>40</h> <h>40</h>
</coordinates> </coordinates>
@@ -92,8 +92,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>152</x> <x>64</x>
<y>288</y> <y>296</y>
<w>240</w> <w>240</w>
<h>40</h> <h>40</h>
</coordinates> </coordinates>
@@ -103,8 +103,8 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>400</x> <x>312</x>
<y>280</y> <y>288</y>
<w>240</w> <w>240</w>
<h>48</h> <h>48</h>
</coordinates> </coordinates>
@@ -115,41 +115,19 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>400</x> <x>312</x>
<y>352</y>
<w>240</w>
<h>48</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;40.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>UMLGeneric</id>
<coordinates>
<x>392</x>
<y>312</y>
<w>16</w>
<h>48</h>
</coordinates>
<panel_attributes/>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>152</x>
<y>328</y>
<w>240</w>
<h>48</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;40.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>UMLGeneric</id>
<coordinates>
<x>376</x>
<y>360</y> <y>360</y>
<w>240</w>
<h>48</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;40.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>UMLGeneric</id>
<coordinates>
<x>304</x>
<y>320</y>
<w>16</w> <w>16</w>
<h>48</h> <h>48</h>
</coordinates> </coordinates>
@@ -159,8 +137,30 @@
<element> <element>
<id>Relation</id> <id>Relation</id>
<coordinates> <coordinates>
<x>152</x> <x>64</x>
<y>400</y> <y>336</y>
<w>240</w>
<h>48</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;40.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>UMLGeneric</id>
<coordinates>
<x>288</x>
<y>368</y>
<w>16</w>
<h>48</h>
</coordinates>
<panel_attributes/>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>64</x>
<y>408</y>
<w>240</w> <w>240</w>
<h>40</h> <h>40</h>
</coordinates> </coordinates>

View File

@@ -1,30 +1,30 @@
#BlueJ package file #BlueJ package file
dependency1.from=DatabaseConnector dependency1.from=WordleServer
dependency1.to=QueryResult dependency1.to=DatabaseConnector
dependency1.type=UsesDependency dependency1.type=UsesDependency
dependency2.from=DatabaseConnector dependency2.from=DatabaseConnector
dependency2.to=Queue dependency2.to=QueryResult
dependency2.type=UsesDependency dependency2.type=UsesDependency
dependency3.from=Server dependency3.from=DatabaseConnector
dependency3.to=List dependency3.to=Queue
dependency3.type=UsesDependency dependency3.type=UsesDependency
dependency4.from=WordleServer dependency4.from=Server
dependency4.to=DatabaseConnector dependency4.to=List
dependency4.type=UsesDependency dependency4.type=UsesDependency
editor.fx.0.height=0 editor.fx.0.height=0
editor.fx.0.width=0 editor.fx.0.width=0
editor.fx.0.x=0 editor.fx.0.x=0
editor.fx.0.y=0 editor.fx.0.y=0
objectbench.height=132 objectbench.height=66
objectbench.width=656 objectbench.width=814
package.divider.horizontal=0.6 package.divider.horizontal=0.6
package.divider.vertical=0.8320288982540638 package.divider.vertical=0.920392584514722
package.editor.height=671 package.editor.height=824
package.editor.width=546 package.editor.width=703
package.editor.x=419 package.editor.x=833
package.editor.y=46 package.editor.y=0
package.frame.height=927 package.frame.height=1017
package.frame.width=693 package.frame.width=854
package.numDependencies=4 package.numDependencies=4
package.numTargets=6 package.numTargets=6
package.showExtends=true package.showExtends=true
@@ -32,7 +32,7 @@ package.showUses=true
project.charset=UTF-8 project.charset=UTF-8
readme.height=60 readme.height=60
readme.name=@README readme.name=@README
readme.width=48 readme.width=49
readme.x=10 readme.x=10
readme.y=10 readme.y=10
target1.height=70 target1.height=70
@@ -40,15 +40,15 @@ target1.name=DatabaseConnector
target1.showInterface=false target1.showInterface=false
target1.type=ClassTarget target1.type=ClassTarget
target1.width=150 target1.width=150
target1.x=770 target1.x=680
target1.y=330 target1.y=360
target2.height=70 target2.height=70
target2.name=QueryResult target2.name=QueryResult
target2.showInterface=false target2.showInterface=false
target2.type=ClassTarget target2.type=ClassTarget
target2.width=120 target2.width=120
target2.x=990 target2.x=820
target2.y=420 target2.y=450
target3.height=70 target3.height=70
target3.name=Server target3.name=Server
target3.showInterface=false target3.showInterface=false
@@ -61,19 +61,19 @@ target4.name=WordleServer
target4.showInterface=false target4.showInterface=false
target4.type=ClassTarget target4.type=ClassTarget
target4.width=120 target4.width=120
target4.x=670 target4.x=600
target4.y=550 target4.y=540
target5.height=70 target5.height=70
target5.name=List target5.name=List
target5.showInterface=false target5.showInterface=false
target5.type=ClassTarget target5.type=ClassTarget
target5.width=150 target5.width=150
target5.x=290 target5.x=410
target5.y=540 target5.y=540
target6.height=70 target6.height=70
target6.name=Queue target6.name=Queue
target6.showInterface=false target6.showInterface=false
target6.type=ClassTarget target6.type=ClassTarget
target6.width=160 target6.width=160
target6.x=1000 target6.x=790
target6.y=520 target6.y=540