-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_implementation.uml
3526 lines (3428 loc) · 251 KB
/
api_implementation.uml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:UMLLabProfile="http:///schemas/UMLLabProfile/NS/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/UMLLabProfile/NS/0 pathmap://UMLLAB_PROFILES/UMLLab.profile.uml#UMLLabProfile-Annotation_2-UMLLabProfile">
<uml:Model xmi:id="_yeoioBAPEeqLR97vlA6NJg" name="api_implementation">
<eAnnotations xmi:id="_yj1ywBAPEeqLR97vlA6NJg" source="http://ns.yatta.de/umllab">
<contents xmi:type="ecore:EAnnotation" xmi:id="_yj1ywRAPEeqLR97vlA6NJg" source="codegen">
<details xmi:id="_yj1ywhAPEeqLR97vlA6NJg" key="codegenDirectory" value="/FinalProject"/>
<details xmi:id="_1EvCMBAPEeqLR97vlA6NJg" key="AssociatedSourceCode" value="/FinalProject/src/arb19_kpa1/client/controller/ClientController.java;1884552197/1;/FinalProject/src/arb19_kpa1/client/model/Client.java;4289284375/1;/FinalProject/src/arb19_kpa1/client/model/ClientModel.java;698015835/1;/FinalProject/src/arb19_kpa1/client/model/IClientModel2ViewAdpt.java;2545260505/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/controller/GameController.java;3201852196/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/model/GameModel.java;3221782941/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/model/IGameModel2GameViewAdpt.java;3974407255/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/model/TeamMember.java;2089791697/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/view/GameView.java;4166049811/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/view/IGameView2GameModelAdpt.java;3874786295/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/view/ViewTeamContainer.java;3954219764/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/view/ViewTeamMemberContainer.java;564151036/1;/FinalProject/src/arb19_kpa1/client/view/ClientView.java;4043252326/1;/FinalProject/src/arb19_kpa1/client/view/IClientView2ModelAdpt.java;1572676830/1;/FinalProject/src/arb19_kpa1/client/view/ViewContainer.java;1229453585/1;/FinalProject/src/arb19_kpa1/client/view/ViewServerContainer.java;3620339416/1;/FinalProject/src/arb19_kpa1/server/controller/ServerController.java;3979859592/1;/FinalProject/src/arb19_kpa1/server/model/IServerModel2ViewAdpt.java;1968590613/1;/FinalProject/src/arb19_kpa1/server/model/SendMapCmd.java;98296240/1;/FinalProject/src/arb19_kpa1/server/model/ServerDataPacketVisitors.java;3949925550/1;/FinalProject/src/arb19_kpa1/server/model/ServerModel.java;3629849512/1;/FinalProject/src/arb19_kpa1/server/model/Team.java;361275887/1;/FinalProject/src/arb19_kpa1/server/view/IServerView2ModelAdpt.java;3476971798/1;/FinalProject/src/arb19_kpa1/server/view/ViewContainer.java;355706786/1;/FinalProject/src/arb19_kpa1/server/view/ViewTeamMemberContainer.java;1676475450/1;/FinalProject/src/common/msgReceivers/ITeamMember.java;1864160470/1;/FinalProject/src/common/msgReceivers/IClient.java;2751508272/1;/FinalProject/src/common/msgReceivers/IServer.java;36408098/1;/FinalProject/src/common/msgReceivers/IMsgReceiver.java;3080975029/1;/FinalProject/src/common/ICmd2ModelAdapter.java;501520213/1;/FinalProject/src/arb19_kpa1/server/view/ServerViewFrame.java;3424420316/1;/FinalProject/src/common/team/ITeam.java;3721111159/1;/FinalProject/src/arb19_kpa1/client/model/gamemvc/model/msg/IStringMsg.java;2240599781/0;"/>
</contents>
</eAnnotations>
<elementImport xmi:id="_zQKGMBAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#boolean"/>
</elementImport>
<elementImport xmi:id="_zQKGMRAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#byte"/>
</elementImport>
<elementImport xmi:id="_zQKGMhAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#char"/>
</elementImport>
<elementImport xmi:id="_zQKGMxAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
</elementImport>
<elementImport xmi:id="_zQKGNBAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#float"/>
</elementImport>
<elementImport xmi:id="_zQKGNRAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</elementImport>
<elementImport xmi:id="_zQKtQBAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#long"/>
</elementImport>
<elementImport xmi:id="_zQKtQRAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#short"/>
</elementImport>
<elementImport xmi:id="_zQLUUBAPEeqLR97vlA6NJg">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</elementImport>
<packagedElement xmi:type="uml:Package" xmi:id="_zO_BgBAPEeqLR97vlA6NJg" name="arb19_kpa1">
<packagedElement xmi:type="uml:Package" xmi:id="_zO_okBAPEeqLR97vlA6NJg" name="client">
<packagedElement xmi:type="uml:Package" xmi:id="_zPA2sxAPEeqLR97vlA6NJg" name="model">
<packagedElement xmi:type="uml:Package" xmi:id="_zPILcRAPEeqLR97vlA6NJg" name="gamemvc">
<packagedElement xmi:type="uml:Package" xmi:id="_zPILchAPEeqLR97vlA6NJg" name="controller">
<packagedElement xmi:type="uml:Class" xmi:id="_zReU0BAPEeqLR97vlA6NJg" name="GameController">
<ownedComment xmi:id="_zezmMBAPEeqLR97vlA6NJg">
<body>The mini-mvc controller for a game
*</body>
</ownedComment>
<ownedAttribute xmi:id="_zdbGIBAPEeqLR97vlA6NJg" name="model" visibility="private" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfYN8RAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdbtMBAPEeqLR97vlA6NJg" name="view" type="_zRzsABAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfY1ARAPEeqLR97vlA6NJg"/>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zejukRAPEeqLR97vlA6NJg" name="GameController" specification="_zaPPQBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zejukhAPEeqLR97vlA6NJg" name="clientName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zejukxAPEeqLR97vlA6NJg" name="worldwindAPIKey">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zejulBAPEeqLR97vlA6NJg" name="server" type="_zTLlABAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zejulRAPEeqLR97vlA6NJg" type="_zReU0BAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>this.model = new GameModel(new IGameModel2GameViewAdpt() {
@Override
public void setTeams(Collection<ITeam> teams, ITeam playersTeam) {
view.setTeams(teams, playersTeam);
}
@Override
public void displayTeamMsg(String senderName, String text) {
view.displayTeamText(senderName, text);
}
@Override
public void displayGlobalMsg(String senderName, String text) {
view.displayGlobalText(senderName, text);
}
}, new ICmd2ModelAdapter() {
@Override
public void sendMsgToTeam(IGameMsg msg, ITeam team) {
// TODO Auto-generated method stub
}
@Override
public void sendMsgToServer(IServerMsg msg) {
// TODO Auto-generated method stub
}
@Override
public void sendMsgToClient(IGameMsg msg, IClient client) {
// TODO Auto-generated method stub
}
@Override
public <T> void putStateData(String key, T data) {
// TODO Auto-generated method stub
}
@Override
public <T> T getStateData(String key) {
// TODO Auto-generated method stub
return null;
}
@Override
public void displayComponent(Supplier<JComponent> compFac, String title) {
view.addGameTab(compFac.get(), title);
}
@Override
public String getWorldWindAPIKey() {
return worldwindAPIKey;
}
@Override
public void displayText(String text) {
// TODO Auto-generated method stub
}
}, clientName, server);
this.view = new GameView(new IGameView2GameModelAdpt() {
@Override
public void createTeam(String teamName) {
model.createTeam(teamName);
}
@Override
public void joinTeam(ViewTeamContainer teamContainer) {
model.joinTeam(teamContainer.getItem());
}
@Override
public void sendGlobalMessage(String text) {
model.sendMessage(text, false);
}
@Override
public void sendTeamMessage(String text) {
model.sendMessage(text, true);
}
});
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zejulhAPEeqLR97vlA6NJg" name="start" specification="_zRgKABAPEeqLR97vlA6NJg">
<language>java</language>
<body>model.start();
view.start();
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zekVoBAPEeqLR97vlA6NJg" name="getMemberStub" specification="_zRgxEBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zekVoRAPEeqLR97vlA6NJg" type="_zTJIwBAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>return model.getMemberStub();
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zRgKABAPEeqLR97vlA6NJg" name="start" method="_zejulhAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_zezmMhAPEeqLR97vlA6NJg">
<body>Start the controller.</body>
</ownedComment>
</ownedOperation>
<ownedOperation xmi:id="_zRgxEBAPEeqLR97vlA6NJg" name="getMemberStub" method="_zekVoBAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_zezmMxAPEeqLR97vlA6NJg">
<body>@return ITeamMember stub of the game</body>
</ownedComment>
<ownedParameter xmi:id="_zaQdYBAPEeqLR97vlA6NJg" type="_zTJIwBAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
<ownedOperation xmi:id="_zaPPQBAPEeqLR97vlA6NJg" name="GameController" method="_zejukRAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_zaP2UhAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_zaP2UxAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_zezmMRAPEeqLR97vlA6NJg">
<body>Create a new mini-mvc controller
* @param clientName Name of the client
* @param worldwindAPIKey Key to use the world wind API
* @param server Server that the game is connected to</body>
</ownedComment>
<ownedParameter xmi:id="_zaPPQRAPEeqLR97vlA6NJg" name="clientName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zaP2UBAPEeqLR97vlA6NJg" name="worldwindAPIKey">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zaP2URAPEeqLR97vlA6NJg" name="server" type="_zTLlABAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zaP2VBAPEeqLR97vlA6NJg" type="_zReU0BAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfYN8RAPEeqLR97vlA6NJg" name="" memberEnd="_zfYN8hAPEeqLR97vlA6NJg _zdbGIBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfYN8hAPEeqLR97vlA6NJg" name="" type="_zReU0BAPEeqLR97vlA6NJg" association="_zfYN8RAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfY1ARAPEeqLR97vlA6NJg" name="" memberEnd="_zfY1AhAPEeqLR97vlA6NJg _zdbtMBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfY1AhAPEeqLR97vlA6NJg" name="" type="_zReU0BAPEeqLR97vlA6NJg" association="_zfY1ARAPEeqLR97vlA6NJg"/>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="_zPOSEBAPEeqLR97vlA6NJg" name="model">
<packagedElement xmi:type="uml:Package" xmi:id="_zPRVYBAPEeqLR97vlA6NJg" name="msg">
<packagedElement xmi:type="uml:Interface" xmi:id="_zaUHwRAPEeqLR97vlA6NJg" name="IStringMsg"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_zRj0YBAPEeqLR97vlA6NJg" name="GameModel">
<ownedComment xmi:id="_zezmNBAPEeqLR97vlA6NJg">
<body>The mini-mvc model for the game
*</body>
</ownedComment>
<ownedAttribute xmi:id="_zddiYRAPEeqLR97vlA6NJg" name="member" visibility="private" type="_zRvakBAPEeqLR97vlA6NJg" association="_zfZcERAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdeJcRAPEeqLR97vlA6NJg" name="server" visibility="private" type="_zTLlABAPEeqLR97vlA6NJg" association="_zfaDIRAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdewgRAPEeqLR97vlA6NJg" name="memberStub" type="_zTJIwBAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfaqMRAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdfXkBAPEeqLR97vlA6NJg" name="model2view" visibility="private" type="_zRrwMBAPEeqLR97vlA6NJg" association="_zfbRQRAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdfXkhAPEeqLR97vlA6NJg" name="teams" visibility="private" type="_zTgVIBAPEeqLR97vlA6NJg" association="_zfb4URAPEeqLR97vlA6NJg">
<qualifier xmi:id="_zdhMwRAPEeqLR97vlA6NJg" type="_zdglsBAPEeqLR97vlA6NJg"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdf-oBAPEeqLR97vlA6NJg" value="new HashMap<>()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdhMwhAPEeqLR97vlA6NJg" name="myTeamUUID" visibility="private" type="_zaTgsRAPEeqLR97vlA6NJg" association="_zfcfYRAPEeqLR97vlA6NJg"/>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zekVohAPEeqLR97vlA6NJg" name="GameModel" specification="_zaXyIBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zekVoxAPEeqLR97vlA6NJg" name="model2view" type="_zRrwMBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zekVpBAPEeqLR97vlA6NJg" name="cmd2ModelAdpt" type="_zTSSsBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zekVpRAPEeqLR97vlA6NJg" name="clientName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zekVphAPEeqLR97vlA6NJg" name="server" type="_zTLlABAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zekVpxAPEeqLR97vlA6NJg" type="_zRj0YBAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>this.model2view = model2view;
// Create new team member
member = new TeamMember(clientName, cmd2ModelAdpt, this);
// Get stub to send to server
try {
memberStub = (ITeamMember) UnicastRemoteObject.exportObject(member, IRMI_Defs.STUB_PORT_EXTRA);// RMIUtils.BOUND_PORT_SERVER);
} catch (RemoteException e1) {
e1.printStackTrace();
}
this.server = server;
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zek8sBAPEeqLR97vlA6NJg" name="createTeam" specification="_zRmQoRAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zek8sRAPEeqLR97vlA6NJg" name="teamName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>try {
server.receiveMsg(new ServerDataPacket<>(ICreateTeamMsg.make(teamName), memberStub));
} catch (RemoteException e) {
e.printStackTrace();
}
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zek8shAPEeqLR97vlA6NJg" name="joinTeam" specification="_zaYZMRAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zek8sxAPEeqLR97vlA6NJg" name="newTeam" type="_zTgVIBAPEeqLR97vlA6NJg"/>
<language>java</language>
<body>try {
server.receiveMsg(new ServerDataPacket<>(IJoinTeamMsg.make(memberStub, newTeam), memberStub));
} catch (RemoteException e) {
e.printStackTrace();
}
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zek8tBAPEeqLR97vlA6NJg" name="setTeams" specification="_zcR2oBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zek8tRAPEeqLR97vlA6NJg" name="teams" type="_zaSSkRAPEeqLR97vlA6NJg"/>
<language>java</language>
<body>this.teams = teams;
// Find the team we are in
for (Entry<UUID, ITeam> teamEntry : teams.entrySet()) {
if (teamEntry.getValue().getTeamMembers().contains(memberStub)) {
this.myTeamUUID = teamEntry.getKey();
break;
}
}
this.model2view.setTeams(teams.values(), teams.get(myTeamUUID));
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zek8thAPEeqLR97vlA6NJg" name="displayStringMsg" specification="_zcTEwBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zek8txAPEeqLR97vlA6NJg" name="stringMsg" type="_zaUHwRAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zek8uBAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>if (stringMsg.isToTeam()) {
model2view.displayTeamMsg(senderName, stringMsg.getText());
} else {
model2view.displayGlobalMsg(senderName, stringMsg.getText());
}
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zeljwBAPEeqLR97vlA6NJg" name="sendMessage" specification="_zRnewBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zeljwRAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zeljwhAPEeqLR97vlA6NJg" name="isToTeam">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#boolean"/>
</ownedParameter>
<language>java</language>
<body>if (isToTeam) {
teams.get(myTeamUUID).getTeamMembers().forEach((teammate) -> {
try {
teammate.receiveMsg(new GameDataPacket<>(IStringMsg.make(text, isToTeam), memberStub));
} catch (RemoteException e) {
e.printStackTrace();
}
});
} else {
// Send message to every member of the chatroom
teams.values().forEach((team) -> team.getTeamMembers().forEach((member) -> {
try {
member.receiveMsg(new GameDataPacket<>(IStringMsg.make(text, isToTeam), memberStub));
} catch (RemoteException e) {
e.printStackTrace();
}
}));
}
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zRlpkBAPEeqLR97vlA6NJg" name="start"/>
<ownedOperation xmi:id="_zRmQoRAPEeqLR97vlA6NJg" name="createTeam" method="_zek8sBAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_zezmNhAPEeqLR97vlA6NJg">
<body>@param teamName Name of the team being created</body>
</ownedComment>
<ownedParameter xmi:id="_zRmQohAPEeqLR97vlA6NJg" name="teamName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zRnewBAPEeqLR97vlA6NJg" name="sendMessage" method="_zeljwBAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze0NQRAPEeqLR97vlA6NJg">
<body>@param text String message to send
* @param isToTeam Boolean indicating whether message is sent to the team or to the entire game</body>
</ownedComment>
<ownedParameter xmi:id="_zRnewRAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zRnewhAPEeqLR97vlA6NJg" name="isToTeam">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zaXyIBAPEeqLR97vlA6NJg" name="GameModel" method="_zekVohAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_zaXyJRAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_zaXyJhAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_zezmNRAPEeqLR97vlA6NJg">
<body>Create a model for the game
* @param model2view the adapter to the game view
* @param model2clientModel the adapter to the main model
* @param cmd2ModelAdpt adapter from commands to the model
* @param clientName the team member for handling communications in this game
* @param server IServer that the game is connected to</body>
</ownedComment>
<ownedParameter xmi:id="_zaXyIRAPEeqLR97vlA6NJg" name="model2view" type="_zRrwMBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zaXyIhAPEeqLR97vlA6NJg" name="cmd2ModelAdpt" type="_zTSSsBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zaXyIxAPEeqLR97vlA6NJg" name="clientName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zaXyJBAPEeqLR97vlA6NJg" name="server" type="_zTLlABAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zaYZMBAPEeqLR97vlA6NJg" type="_zRj0YBAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
<ownedOperation xmi:id="_zaYZMRAPEeqLR97vlA6NJg" name="joinTeam" method="_zek8shAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_zezmNxAPEeqLR97vlA6NJg">
<body>@param newTeam Team being joined</body>
</ownedComment>
<ownedParameter xmi:id="_zaYZMhAPEeqLR97vlA6NJg" name="newTeam" type="_zTgVIBAPEeqLR97vlA6NJg"/>
</ownedOperation>
<ownedOperation xmi:id="_zcR2oBAPEeqLR97vlA6NJg" name="setTeams" method="_zek8tBAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_zezmOBAPEeqLR97vlA6NJg">
<body>@param teams Map of teams on the game</body>
</ownedComment>
<ownedParameter xmi:id="_zcR2oRAPEeqLR97vlA6NJg" name="teams" type="_zaSSkRAPEeqLR97vlA6NJg"/>
</ownedOperation>
<ownedOperation xmi:id="_zcTEwBAPEeqLR97vlA6NJg" name="displayStringMsg" method="_zek8thAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze0NQBAPEeqLR97vlA6NJg">
<body>@param stringMsg String message to display
* @param senderName String of the name who sent the message</body>
</ownedComment>
<ownedParameter xmi:id="_zcTEwRAPEeqLR97vlA6NJg" name="stringMsg" type="_zaUHwRAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zcTEwhAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Interface" xmi:id="_zRrwMBAPEeqLR97vlA6NJg" name="IGameModel2GameViewAdpt">
<ownedComment xmi:id="_ze0NQhAPEeqLR97vlA6NJg">
<body>Adapter for communication from the game model to the game view</body>
</ownedComment>
<ownedOperation xmi:id="_zRs-UBAPEeqLR97vlA6NJg" name="displayTeamMsg">
<ownedComment xmi:id="_ze0NRBAPEeqLR97vlA6NJg">
<body>@param senderName String of the name of who sent the message
* @param text String of the message sent</body>
</ownedComment>
<ownedParameter xmi:id="_zRs-URAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zRtlYBAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zRuMcBAPEeqLR97vlA6NJg" name="displayGlobalMsg">
<ownedComment xmi:id="_ze0NRRAPEeqLR97vlA6NJg">
<body>@param senderName String of the name of who sent the message
* @param text String of the message sent</body>
</ownedComment>
<ownedParameter xmi:id="_zRuMcRAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zRuMchAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zcUS4BAPEeqLR97vlA6NJg" name="setTeams">
<ownedComment xmi:id="_ze0NQxAPEeqLR97vlA6NJg">
<body>@param allTeams Collection of all the teams in the game
* @param playersTeam Team that the client is in</body>
</ownedComment>
<ownedParameter xmi:id="_zcUS4RAPEeqLR97vlA6NJg" name="allTeams" type="_zaKWwBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zcUS4hAPEeqLR97vlA6NJg" name="playersTeam" type="_zTgVIBAPEeqLR97vlA6NJg"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_zRvakBAPEeqLR97vlA6NJg" name="TeamMember">
<ownedComment xmi:id="_ze0NRhAPEeqLR97vlA6NJg">
<body>Unit for handling game communications
*</body>
</ownedComment>
<ownedAttribute xmi:id="_zdjB8BAPEeqLR97vlA6NJg" name="name" isReadOnly="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdk3IBAPEeqLR97vlA6NJg" name="cmd2ModelAdpt" visibility="private" type="_zTSSsBAPEeqLR97vlA6NJg" association="_zfdGcRAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdleMBAPEeqLR97vlA6NJg" name="model" visibility="private" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfdtgRAPEeqLR97vlA6NJg"/>
<interfaceRealization xmi:id="_zacDkRAPEeqLR97vlA6NJg" client="_zRvakBAPEeqLR97vlA6NJg" supplier="_zTJIwBAPEeqLR97vlA6NJg" contract="_zTJIwBAPEeqLR97vlA6NJg"/>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemK0BAPEeqLR97vlA6NJg" name="TeamMember" specification="_zacqoBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemK0RAPEeqLR97vlA6NJg" name="name">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zemK0hAPEeqLR97vlA6NJg" name="cmd2ModelAdpt" type="_zTSSsBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zemK0xAPEeqLR97vlA6NJg" name="model" type="_zRj0YBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zemK1BAPEeqLR97vlA6NJg" type="_zRvakBAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>this.name = name;
this.cmd2ModelAdpt = cmd2ModelAdpt;
this.model = model;
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemK1RAPEeqLR97vlA6NJg" name="receiveMsg" specification="_zcWvIBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemK1hAPEeqLR97vlA6NJg" name="msg" type="_zaVV4BAPEeqLR97vlA6NJg"/>
<language>java</language>
<body>System.out.println("Receiver msg: " + msg.toString());
if (msg.getData().getID().equals(SendMapCmd.GetID())) {
SendMapCmd cmd = (SendMapCmd) msg.getData();
cmd.getMapCmd().setCmd2ModelAdpt(cmd2ModelAdpt);
cmd.getMapCmd().apply(null, null);
} else if (msg.getData().getID().equals(ISendTeamsMsg.GetID())) {
ISendTeamsMsg sendTeamsMsg = (ISendTeamsMsg) msg.getData();
System.out.println(sendTeamsMsg);
model.setTeams(sendTeamsMsg.getTeams());
} else if (msg.getData().getID().equals(IStringMsg.GetID())) {
IStringMsg stringMsg = (IStringMsg) msg.getData();
model.displayStringMsg(stringMsg, msg.getSender().getName());
}
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zacqoBAPEeqLR97vlA6NJg" name="TeamMember" method="_zemK0BAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_zadRsRAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_zadRshAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_ze0NRxAPEeqLR97vlA6NJg">
<body>Creates a new team member
* 
* @param name the player's name
* @param cmd2ModelAdpt Adapter for the commands to the model
* @param model The game model that this team member is a part of</body>
</ownedComment>
<ownedParameter xmi:id="_zacqoRAPEeqLR97vlA6NJg" name="name">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zacqohAPEeqLR97vlA6NJg" name="cmd2ModelAdpt" type="_zTSSsBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zadRsBAPEeqLR97vlA6NJg" name="model" type="_zRj0YBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zadRsxAPEeqLR97vlA6NJg" type="_zRvakBAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
<ownedOperation xmi:id="_zcWvIBAPEeqLR97vlA6NJg" name="receiveMsg" method="_zemK1RAPEeqLR97vlA6NJg" raisedException="_zZqAcBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zcWvIRAPEeqLR97vlA6NJg" name="msg" type="_zaVV4BAPEeqLR97vlA6NJg"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_zdglsBAPEeqLR97vlA6NJg" name="UUID"/>
<packagedElement xmi:type="uml:Association" xmi:id="_zfZcERAPEeqLR97vlA6NJg" name="" memberEnd="_zfZcEhAPEeqLR97vlA6NJg _zddiYRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfZcEhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfZcERAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfaDIRAPEeqLR97vlA6NJg" name="" memberEnd="_zfaDIhAPEeqLR97vlA6NJg _zdeJcRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfaDIhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfaDIRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfaqMRAPEeqLR97vlA6NJg" name="" memberEnd="_zfaqMhAPEeqLR97vlA6NJg _zdewgRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfaqMhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfaqMRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfbRQRAPEeqLR97vlA6NJg" name="" memberEnd="_zfbRQhAPEeqLR97vlA6NJg _zdfXkBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfbRQhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfbRQRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfb4URAPEeqLR97vlA6NJg" name="" memberEnd="_zfb4UhAPEeqLR97vlA6NJg _zdfXkhAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfb4UhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfb4URAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfcfYRAPEeqLR97vlA6NJg" name="" memberEnd="_zfcfYhAPEeqLR97vlA6NJg _zdhMwhAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfcfYhAPEeqLR97vlA6NJg" name="" type="_zRj0YBAPEeqLR97vlA6NJg" association="_zfcfYRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfdGcRAPEeqLR97vlA6NJg" name="" memberEnd="_zfdGchAPEeqLR97vlA6NJg _zdk3IBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfdGchAPEeqLR97vlA6NJg" name="" type="_zRvakBAPEeqLR97vlA6NJg" association="_zfdGcRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfdtgRAPEeqLR97vlA6NJg" name="" memberEnd="_zfdtghAPEeqLR97vlA6NJg _zdleMBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfdtghAPEeqLR97vlA6NJg" name="" type="_zRvakBAPEeqLR97vlA6NJg" association="_zfdtgRAPEeqLR97vlA6NJg"/>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="_zPOSERAPEeqLR97vlA6NJg" name="view">
<packagedElement xmi:type="uml:Class" xmi:id="_zRzsABAPEeqLR97vlA6NJg" name="GameView">
<ownedComment xmi:id="_ze0NSBAPEeqLR97vlA6NJg">
<body>The mini-mvc view for the game
*</body>
</ownedComment>
<generalization xmi:id="_zceD4RAPEeqLR97vlA6NJg" general="_zZlvARAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdmsUBAPEeqLR97vlA6NJg" name="serialVersionUID" visibility="private" isLeaf="true" isStatic="true" isReadOnly="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#long"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdmsURAPEeqLR97vlA6NJg" value="2448972497688484774L"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdnTYBAPEeqLR97vlA6NJg" name="view2Model" visibility="private" type="_zSC8kBAPEeqLR97vlA6NJg" association="_zfeUkRAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zdn6cRAPEeqLR97vlA6NJg" name="gameTabs" visibility="private" isLeaf="true" type="_zaft8BAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfe7oRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdn6chAPEeqLR97vlA6NJg" value="new JTabbedPane(JTabbedPane.TOP)"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdohgRAPEeqLR97vlA6NJg" name="gameChatPanel" visibility="private" isLeaf="true" type="_zZlvARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zffisRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdohghAPEeqLR97vlA6NJg" value="new JPanel()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdpIkRAPEeqLR97vlA6NJg" name="ctrlPanel" visibility="private" isLeaf="true" type="_zZlvARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfgJwBAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdpvoBAPEeqLR97vlA6NJg" value="new JPanel()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdqWsRAPEeqLR97vlA6NJg" name="createTeamPanel" visibility="private" isLeaf="true" type="_zZlvARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfgw0BAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdqWshAPEeqLR97vlA6NJg" value="new JPanel()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdq9wRAPEeqLR97vlA6NJg" name="joinTeamPanel" visibility="private" isLeaf="true" type="_zZlvARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfh-8BAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdq9whAPEeqLR97vlA6NJg" value="new JPanel()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdrk0RAPEeqLR97vlA6NJg" name="btnLeaveGame" visibility="private" isLeaf="true" type="_zamboRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfimABAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdrk0hAPEeqLR97vlA6NJg" value="new JButton("Leave Game")"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdsL4RAPEeqLR97vlA6NJg" name="teamNameField" visibility="private" isLeaf="true" type="_zanCsRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfimAxAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdsL4hAPEeqLR97vlA6NJg" value="new JTextField()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdtaABAPEeqLR97vlA6NJg" name="btnCreateTeam" visibility="private" isLeaf="true" type="_zamboRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfj0IRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdtaARAPEeqLR97vlA6NJg" value="new JButton("Create Team")"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zduBERAPEeqLR97vlA6NJg" name="teamsComboBox" visibility="private" isLeaf="true" type="_zanpwRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfkbMRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zduoIRAPEeqLR97vlA6NJg" value="new JComboBox<>()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdvPMRAPEeqLR97vlA6NJg" name="btnJoinTeam" visibility="private" isLeaf="true" type="_zamboRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zflCQRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdvPMhAPEeqLR97vlA6NJg" value="new JButton("Join Team")"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdv2QRAPEeqLR97vlA6NJg" name="gameMembersListModel" visibility="private" type="_zalNgRAPEeqLR97vlA6NJg" association="_zflpURAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdwdURAPEeqLR97vlA6NJg" value="new DefaultListModel<>()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdxEYRAPEeqLR97vlA6NJg" name="gameMembersList" visibility="private" isLeaf="true" type="_zaqGARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfmQYRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdxrcRAPEeqLR97vlA6NJg" value="new JList<>(gameMembersListModel)"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdySgRAPEeqLR97vlA6NJg" name="gameChatMessageField" visibility="private" isLeaf="true" type="_zanCsRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfm3cRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdySghAPEeqLR97vlA6NJg" value="new JTextField()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zdzgoBAPEeqLR97vlA6NJg" name="sendGameMessageBtn" visibility="private" isLeaf="true" type="_zamboRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfnegRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zdzgoRAPEeqLR97vlA6NJg" value="new JButton("Send Message")"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd0HsBAPEeqLR97vlA6NJg" name="teamChatPanel" visibility="private" isLeaf="true" type="_zZlvARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfoFkRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd0HsRAPEeqLR97vlA6NJg" value="new JPanel()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd0uwBAPEeqLR97vlA6NJg" name="teamChatMembersListModel" visibility="private" type="_zalNgRAPEeqLR97vlA6NJg" association="_zfosoRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd1V0RAPEeqLR97vlA6NJg" value="new DefaultListModel<>()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd184RAPEeqLR97vlA6NJg" name="teamChatMembersList" visibility="private" isLeaf="true" type="_zaqGARAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfp6wRAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd2j8RAPEeqLR97vlA6NJg" value="new JList<ViewTeamMemberContainer>(teamChatMembersListModel)"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd3LARAPEeqLR97vlA6NJg" name="teamChatMessageField" visibility="private" isLeaf="true" type="_zanCsRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfqh0RAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd3LAhAPEeqLR97vlA6NJg" value="new JTextField()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd3yERAPEeqLR97vlA6NJg" name="sendTeamMessageBtn" visibility="private" isLeaf="true" type="_zamboRAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfrI4RAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd3yEhAPEeqLR97vlA6NJg" value="new JButton("Send Message")"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd4ZIRAPEeqLR97vlA6NJg" name="teamChatTextArea" visibility="private" isLeaf="true" type="_zagVABAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfrv8RAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd4ZIhAPEeqLR97vlA6NJg" value="new JTextArea()"/>
</ownedAttribute>
<ownedAttribute xmi:id="_zd5AMRAPEeqLR97vlA6NJg" name="gameChatTextArea" visibility="private" isLeaf="true" type="_zagVABAPEeqLR97vlA6NJg" isReadOnly="true" association="_zfsXARAPEeqLR97vlA6NJg">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_zd5AMhAPEeqLR97vlA6NJg" value="new JTextArea()"/>
</ownedAttribute>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemx4BAPEeqLR97vlA6NJg" name="GameView" specification="_zauXcBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemx4RAPEeqLR97vlA6NJg" name="view2Model" type="_zSC8kBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zemx4hAPEeqLR97vlA6NJg" type="_zRzsABAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>gameChatMessageField.setColumns(10);
teamNameField.setColumns(10);
this.view2Model = view2Model;
initGUI();
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemx4xAPEeqLR97vlA6NJg" name="initGUI" specification="_zR2vUBAPEeqLR97vlA6NJg">
<language>java</language>
<body>setLayout(new BorderLayout(0, 0));

add(gameTabs);

gameTabs.addTab("Controls", null, ctrlPanel, null);
GridBagLayout gbl_ctrlPanel = new GridBagLayout();
gbl_ctrlPanel.columnWidths = new int[]{0, 0};
gbl_ctrlPanel.rowHeights = new int[]{0, 0, 0, 0};
gbl_ctrlPanel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
gbl_ctrlPanel.rowWeights = new double[]{1.0, 1.0, 0.0, Double.MIN_VALUE};
ctrlPanel.setLayout(gbl_ctrlPanel);

GridBagConstraints gbc_createTeamPanel = new GridBagConstraints();
gbc_createTeamPanel.insets = new Insets(0, 0, 5, 0);
gbc_createTeamPanel.fill = GridBagConstraints.BOTH;
gbc_createTeamPanel.gridx = 0;
gbc_createTeamPanel.gridy = 0;
createTeamPanel.setBorder(new TitledBorder(null, "Create Team", TitledBorder.LEADING, TitledBorder.TOP, null, null));
ctrlPanel.add(createTeamPanel, gbc_createTeamPanel);
GridBagLayout gbl_createTeamPanel = new GridBagLayout();
gbl_createTeamPanel.columnWidths = new int[]{0, 0, 0};
gbl_createTeamPanel.rowHeights = new int[]{0, 0};
gbl_createTeamPanel.columnWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
gbl_createTeamPanel.rowWeights = new double[]{0.0, Double.MIN_VALUE};
createTeamPanel.setLayout(gbl_createTeamPanel);

GridBagConstraints gbc_teamNameField = new GridBagConstraints();
gbc_teamNameField.insets = new Insets(0, 0, 0, 5);
gbc_teamNameField.fill = GridBagConstraints.HORIZONTAL;
gbc_teamNameField.gridx = 0;
gbc_teamNameField.gridy = 0;
createTeamPanel.add(teamNameField, gbc_teamNameField);

GridBagConstraints gbc_btnCreateTeam = new GridBagConstraints();
gbc_btnCreateTeam.gridx = 1;
gbc_btnCreateTeam.gridy = 0;
btnCreateTeam.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
view2Model.createTeam(teamNameField.getText());
}
});
createTeamPanel.add(btnCreateTeam, gbc_btnCreateTeam);

GridBagConstraints gbc_joinTeamPanel = new GridBagConstraints();
gbc_joinTeamPanel.insets = new Insets(0, 0, 5, 0);
gbc_joinTeamPanel.fill = GridBagConstraints.BOTH;
gbc_joinTeamPanel.gridx = 0;
gbc_joinTeamPanel.gridy = 1;
joinTeamPanel.setBorder(new TitledBorder(null, "Join Team", TitledBorder.LEADING, TitledBorder.TOP, null, null));
ctrlPanel.add(joinTeamPanel, gbc_joinTeamPanel);
GridBagLayout gbl_joinTeamPanel = new GridBagLayout();
gbl_joinTeamPanel.columnWidths = new int[]{0, 0, 0};
gbl_joinTeamPanel.rowHeights = new int[]{0, 0};
gbl_joinTeamPanel.columnWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
gbl_joinTeamPanel.rowWeights = new double[]{0.0, Double.MIN_VALUE};
joinTeamPanel.setLayout(gbl_joinTeamPanel);

GridBagConstraints gbc_teamsComboBox = new GridBagConstraints();
gbc_teamsComboBox.insets = new Insets(0, 0, 0, 5);
gbc_teamsComboBox.fill = GridBagConstraints.HORIZONTAL;
gbc_teamsComboBox.gridx = 0;
gbc_teamsComboBox.gridy = 0;
joinTeamPanel.add(teamsComboBox, gbc_teamsComboBox);

GridBagConstraints gbc_btnJoinTeam = new GridBagConstraints();
gbc_btnJoinTeam.gridx = 1;
gbc_btnJoinTeam.gridy = 0;
btnJoinTeam.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
view2Model.joinTeam(teamsComboBox.getItemAt(teamsComboBox.getSelectedIndex()));
}
});
joinTeamPanel.add(btnJoinTeam, gbc_btnJoinTeam);

GridBagConstraints gbc_btnLeaveGame = new GridBagConstraints();
gbc_btnLeaveGame.gridx = 0;
gbc_btnLeaveGame.gridy = 2;
ctrlPanel.add(btnLeaveGame, gbc_btnLeaveGame);

gameTabs.addTab("Game Chat", null, gameChatPanel, null);
GridBagLayout gbl_gameChatPanel = new GridBagLayout();
gbl_gameChatPanel.columnWidths = new int[] {50, 130};
gbl_gameChatPanel.rowHeights = new int[] {50, 0};
gbl_gameChatPanel.columnWeights = new double[]{1.0, 0.0};
gbl_gameChatPanel.rowWeights = new double[]{1.0, 0.0};
gameChatPanel.setLayout(gbl_gameChatPanel);

GridBagConstraints gbc_gameChatTextArea = new GridBagConstraints();
gbc_gameChatTextArea.insets = new Insets(0, 0, 5, 5);
gbc_gameChatTextArea.fill = GridBagConstraints.BOTH;
gbc_gameChatTextArea.gridx = 0;
gbc_gameChatTextArea.gridy = 0;
gameChatPanel.add(gameChatTextArea, gbc_gameChatTextArea);

GridBagConstraints gbc_gameMembersList = new GridBagConstraints();
gbc_gameMembersList.insets = new Insets(0, 0, 5, 0);
gbc_gameMembersList.fill = GridBagConstraints.BOTH;
gbc_gameMembersList.gridx = 1;
gbc_gameMembersList.gridy = 0;
gameMembersList.setBorder(new TitledBorder(null, "Game Members", TitledBorder.LEADING, TitledBorder.TOP, null, null));
gameChatPanel.add(gameMembersList, gbc_gameMembersList);

GridBagConstraints gbc_gameChatMessageField = new GridBagConstraints();
gbc_gameChatMessageField.insets = new Insets(0, 0, 0, 5);
gbc_gameChatMessageField.fill = GridBagConstraints.BOTH;
gbc_gameChatMessageField.gridx = 0;
gbc_gameChatMessageField.gridy = 1;
gameChatPanel.add(gameChatMessageField, gbc_gameChatMessageField);

GridBagConstraints gbc_sendGameMessageBtn = new GridBagConstraints();
gbc_sendGameMessageBtn.fill = GridBagConstraints.BOTH;
gbc_sendGameMessageBtn.gridx = 1;
gbc_sendGameMessageBtn.gridy = 1;
sendGameMessageBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
view2Model.sendGlobalMessage(gameChatMessageField.getText());
}
});
gameChatPanel.add(sendGameMessageBtn, gbc_sendGameMessageBtn);

gameTabs.addTab("Team Chat", null, teamChatPanel, null);
GridBagLayout gbl_teamChatPanel = new GridBagLayout();
gbl_teamChatPanel.columnWidths = new int[]{50, 130, 0};
gbl_teamChatPanel.rowHeights = new int[]{50, 0, 0};
gbl_teamChatPanel.columnWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
gbl_teamChatPanel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
teamChatPanel.setLayout(gbl_teamChatPanel);

GridBagConstraints gbc_teamChatTextArea = new GridBagConstraints();
gbc_teamChatTextArea.insets = new Insets(0, 0, 5, 5);
gbc_teamChatTextArea.fill = GridBagConstraints.BOTH;
gbc_teamChatTextArea.gridx = 0;
gbc_teamChatTextArea.gridy = 0;
teamChatPanel.add(teamChatTextArea, gbc_teamChatTextArea);

GridBagConstraints gbc_teamChatMembersList = new GridBagConstraints();
gbc_teamChatMembersList.fill = GridBagConstraints.BOTH;
gbc_teamChatMembersList.insets = new Insets(0, 0, 5, 0);
gbc_teamChatMembersList.gridx = 1;
gbc_teamChatMembersList.gridy = 0;
teamChatMembersList.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), "Team Members", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));
teamChatPanel.add(teamChatMembersList, gbc_teamChatMembersList);

GridBagConstraints gbc_teamChatMessageField = new GridBagConstraints();
gbc_teamChatMessageField.fill = GridBagConstraints.BOTH;
gbc_teamChatMessageField.insets = new Insets(0, 0, 0, 5);
gbc_teamChatMessageField.gridx = 0;
gbc_teamChatMessageField.gridy = 1;
teamChatMessageField.setColumns(10);
teamChatPanel.add(teamChatMessageField, gbc_teamChatMessageField);

GridBagConstraints gbc_sendTeamMessageBtn = new GridBagConstraints();
gbc_sendTeamMessageBtn.fill = GridBagConstraints.BOTH;
gbc_sendTeamMessageBtn.gridx = 1;
gbc_sendTeamMessageBtn.gridy = 1;
sendTeamMessageBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
view2Model.sendTeamMessage(teamChatMessageField.getText());
}
});
teamChatPanel.add(sendTeamMessageBtn, gbc_sendTeamMessageBtn);
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemx5BAPEeqLR97vlA6NJg" name="addGameTab" specification="_zccOsBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemx5RAPEeqLR97vlA6NJg" name="component" type="_zaML8RAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zemx5hAPEeqLR97vlA6NJg" name="title">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>gameTabs.addTab(title, component);
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemx5xAPEeqLR97vlA6NJg" name="setTeams" specification="_zcc1wBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemx6BAPEeqLR97vlA6NJg" name="teams" type="_zaKWwBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zemx6RAPEeqLR97vlA6NJg" name="playersTeam" type="_zTgVIBAPEeqLR97vlA6NJg"/>
<language>java</language>
<body>this.teamsComboBox.removeAllItems();
teams.forEach((t) -> this.teamsComboBox.addItem(new ViewTeamContainer(t)));


teamChatMembersListModel.clear();
playersTeam.getTeamMembers().forEach((p) -> teamChatMembersListModel.addElement(new ViewTeamMemberContainer(p)));

gameMembersListModel.clear();
teams.forEach((team) -> team.getTeamMembers().forEach((p) -> gameMembersListModel.addElement(new ViewTeamMemberContainer(p))));
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zemx6hAPEeqLR97vlA6NJg" name="displayTeamText" specification="_zR4kgBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zemx6xAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zemx7BAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>teamChatTextArea.append(senderName + ": " + text + "\n");
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zenY8BAPEeqLR97vlA6NJg" name="displayGlobalText" specification="_zR5LkRAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zenY8RAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zenY8hAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>gameChatTextArea.append(senderName + ": " + text + "\n");
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zR2vUBAPEeqLR97vlA6NJg" name="initGUI" visibility="private" method="_zemx4xAPEeqLR97vlA6NJg"/>
<ownedOperation xmi:id="_zR3WYBAPEeqLR97vlA6NJg" name="start"/>
<ownedOperation xmi:id="_zR4kgBAPEeqLR97vlA6NJg" name="displayTeamText" method="_zemx6hAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze00UxAPEeqLR97vlA6NJg">
<body>@param senderName String of the name of who sent the message
* @param text String of the message sent</body>
</ownedComment>
<ownedParameter xmi:id="_zR4kgRAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zR5LkBAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zR5LkRAPEeqLR97vlA6NJg" name="displayGlobalText" method="_zenY8BAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze00VBAPEeqLR97vlA6NJg">
<body>@param senderName String of the name of who sent the message
* @param text String of the message sent</body>
</ownedComment>
<ownedParameter xmi:id="_zR5yoBAPEeqLR97vlA6NJg" name="senderName">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_zR5yoRAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zauXcBAPEeqLR97vlA6NJg" name="GameView" method="_zemx4BAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_zau-gRAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_zau-ghAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_ze00UBAPEeqLR97vlA6NJg">
<body>Create the view for the game
* @param view2Model the adapter for communication with the game model</body>
</ownedComment>
<ownedParameter xmi:id="_zau-gBAPEeqLR97vlA6NJg" name="view2Model" type="_zSC8kBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zau-gxAPEeqLR97vlA6NJg" type="_zRzsABAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
<ownedOperation xmi:id="_zccOsBAPEeqLR97vlA6NJg" name="addGameTab" method="_zemx5BAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze00URAPEeqLR97vlA6NJg">
<body>@param component JComponent to add to the tabbed pane
* @param title String title of the component added</body>
</ownedComment>
<ownedParameter xmi:id="_zccOsRAPEeqLR97vlA6NJg" name="component" type="_zaML8RAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zccOshAPEeqLR97vlA6NJg" name="title">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zcc1wBAPEeqLR97vlA6NJg" name="setTeams" method="_zemx5xAPEeqLR97vlA6NJg">
<ownedComment xmi:id="_ze00UhAPEeqLR97vlA6NJg">
<body>@param teams Collection of teams in the game
* @param playersTeam Team that the player is currently on</body>
</ownedComment>
<ownedParameter xmi:id="_zcc1wRAPEeqLR97vlA6NJg" name="teams" type="_zaKWwBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zcdc0BAPEeqLR97vlA6NJg" name="playersTeam" type="_zTgVIBAPEeqLR97vlA6NJg"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Interface" xmi:id="_zSC8kBAPEeqLR97vlA6NJg" name="IGameView2GameModelAdpt">
<ownedComment xmi:id="_ze00VRAPEeqLR97vlA6NJg">
<body>Adapter for communication from the game view to the game model
*</body>
</ownedComment>
<ownedOperation xmi:id="_zSEKsBAPEeqLR97vlA6NJg" name="createTeam">
<ownedParameter xmi:id="_zSEKsRAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zSExwBAPEeqLR97vlA6NJg" name="sendGlobalMessage">
<ownedParameter xmi:id="_zSExwRAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_zSExwhAPEeqLR97vlA6NJg" name="sendTeamMessage">
<ownedParameter xmi:id="_zSFY0BAPEeqLR97vlA6NJg" name="text">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_za0eEBAPEeqLR97vlA6NJg" name="joinTeam">
<ownedParameter xmi:id="_za0eERAPEeqLR97vlA6NJg" name="itemAt" type="_zSF_4BAPEeqLR97vlA6NJg"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_zSF_4BAPEeqLR97vlA6NJg" name="ViewTeamContainer">
<ownedComment xmi:id="_ze00VhAPEeqLR97vlA6NJg">
<body>Container for the view to hold the server object
*</body>
</ownedComment>
<generalization xmi:id="_za2TQBAPEeqLR97vlA6NJg" general="_zTDCIBAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zd6OUBAPEeqLR97vlA6NJg" name="name" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zeoAABAPEeqLR97vlA6NJg" name="ViewTeamContainer" specification="_za1FIBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zeoAARAPEeqLR97vlA6NJg" name="team" type="_zTgVIBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zeoAAhAPEeqLR97vlA6NJg" type="_zSF_4BAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>super(team);
this.name = team.getName();
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zeonEBAPEeqLR97vlA6NJg" name="toString" specification="_zSGm8BAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zeonERAPEeqLR97vlA6NJg" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>return name;
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zSGm8BAPEeqLR97vlA6NJg" name="toString" method="_zeonEBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zSHOABAPEeqLR97vlA6NJg" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_za1FIBAPEeqLR97vlA6NJg" name="ViewTeamContainer" method="_zeoAABAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_za1sMBAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_za1sMRAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_ze00VxAPEeqLR97vlA6NJg">
<body>Creates a new view container for a given server
* @param team the server object</body>
</ownedComment>
<ownedParameter xmi:id="_za1FIRAPEeqLR97vlA6NJg" name="team" type="_zTgVIBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_za1sMhAPEeqLR97vlA6NJg" type="_zSF_4BAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_zSIcIBAPEeqLR97vlA6NJg" name="ViewTeamMemberContainer">
<ownedComment xmi:id="_ze00WBAPEeqLR97vlA6NJg">
<body>Container for the view to hold the server object
*</body>
</ownedComment>
<generalization xmi:id="_za4IcxAPEeqLR97vlA6NJg" general="_zTDCIBAPEeqLR97vlA6NJg"/>
<ownedAttribute xmi:id="_zd61YRAPEeqLR97vlA6NJg" name="name" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zeonEhAPEeqLR97vlA6NJg" name="ViewTeamMemberContainer" specification="_za3hYBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zeonExAPEeqLR97vlA6NJg" name="team" type="_zTJIwBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_zeonFBAPEeqLR97vlA6NJg" type="_zSIcIBAPEeqLR97vlA6NJg" direction="return"/>
<language>java</language>
<body>super(team);
try {
this.name = team.getName();
} catch (RemoteException e) {
e.printStackTrace();
}
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_zeonFRAPEeqLR97vlA6NJg" name="toString" specification="_zSJqQBAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zeonFhAPEeqLR97vlA6NJg" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<language>java</language>
<body>return name;
</body>
</ownedBehavior>
<ownedOperation xmi:id="_zSJqQBAPEeqLR97vlA6NJg" name="toString" method="_zeonFRAPEeqLR97vlA6NJg">
<ownedParameter xmi:id="_zSKRUBAPEeqLR97vlA6NJg" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_za3hYBAPEeqLR97vlA6NJg" name="ViewTeamMemberContainer" method="_zeonEhAPEeqLR97vlA6NJg">
<eAnnotations xmi:id="_za4IcBAPEeqLR97vlA6NJg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<details xmi:id="_za4IcRAPEeqLR97vlA6NJg" key="create"/>
</eAnnotations>
<ownedComment xmi:id="_ze00WRAPEeqLR97vlA6NJg">
<body>Creates a new view container for a given server
* @param team the server object</body>
</ownedComment>
<ownedParameter xmi:id="_za3hYRAPEeqLR97vlA6NJg" name="team" type="_zTJIwBAPEeqLR97vlA6NJg"/>
<ownedParameter xmi:id="_za4IchAPEeqLR97vlA6NJg" type="_zSIcIBAPEeqLR97vlA6NJg" direction="return"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfeUkRAPEeqLR97vlA6NJg" name="" memberEnd="_zfeUkhAPEeqLR97vlA6NJg _zdnTYBAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfeUkhAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfeUkRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfe7oRAPEeqLR97vlA6NJg" name="" memberEnd="_zfe7ohAPEeqLR97vlA6NJg _zdn6cRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfe7ohAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfe7oRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zffisRAPEeqLR97vlA6NJg" name="" memberEnd="_zffishAPEeqLR97vlA6NJg _zdohgRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zffishAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zffisRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfgJwBAPEeqLR97vlA6NJg" name="" memberEnd="_zfgJwRAPEeqLR97vlA6NJg _zdpIkRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfgJwRAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfgJwBAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfgw0BAPEeqLR97vlA6NJg" name="" memberEnd="_zfgw0RAPEeqLR97vlA6NJg _zdqWsRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfgw0RAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfgw0BAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfh-8BAPEeqLR97vlA6NJg" name="" memberEnd="_zfh-8RAPEeqLR97vlA6NJg _zdq9wRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfh-8RAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfh-8BAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfimABAPEeqLR97vlA6NJg" name="" memberEnd="_zfimARAPEeqLR97vlA6NJg _zdrk0RAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfimARAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfimABAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfimAxAPEeqLR97vlA6NJg" name="" memberEnd="_zfjNEBAPEeqLR97vlA6NJg _zdsL4RAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfjNEBAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfimAxAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfj0IRAPEeqLR97vlA6NJg" name="" memberEnd="_zfj0IhAPEeqLR97vlA6NJg _zdtaABAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfj0IhAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfj0IRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zfkbMRAPEeqLR97vlA6NJg" name="" memberEnd="_zfkbMhAPEeqLR97vlA6NJg _zduBERAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zfkbMhAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zfkbMRAPEeqLR97vlA6NJg"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="_zflCQRAPEeqLR97vlA6NJg" name="" memberEnd="_zflCQhAPEeqLR97vlA6NJg _zdvPMRAPEeqLR97vlA6NJg">
<ownedEnd xmi:id="_zflCQhAPEeqLR97vlA6NJg" name="" type="_zRzsABAPEeqLR97vlA6NJg" association="_zflCQRAPEeqLR97vlA6NJg"/>
</packagedElement>