From f819d7e3f1309cde6ea1280b42b21f183c3f66fa Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Wed, 10 May 2023 14:54:37 +0200 Subject: [PATCH] diagramme de classe --- Rendu/Diagramme_de_classe.mdj | 628 +++++++++++++++++++++++++++++----- 1 file changed, 535 insertions(+), 93 deletions(-) diff --git a/Rendu/Diagramme_de_classe.mdj b/Rendu/Diagramme_de_classe.mdj index 1574f8f..6ba2489 100644 --- a/Rendu/Diagramme_de_classe.mdj +++ b/Rendu/Diagramme_de_classe.mdj @@ -48,8 +48,7 @@ }, "visible": false, "font": "Arial;13;0", - "left": 640, - "top": 48, + "left": 912, "height": 13 }, { @@ -59,10 +58,11 @@ "$ref": "AAAAAAGHy6V5Ic6ADeI=" }, "font": "Arial;13;1", - "left": 325, - "top": 31, - "width": 387.63232421875, - "height": 13 + "left": 461, + "top": 7, + "width": 479, + "height": 13, + "text": "Game" }, { "_type": "LabelView", @@ -72,8 +72,7 @@ }, "visible": false, "font": "Arial;13;0", - "left": 640, - "top": 48, + "left": 912, "width": 73.67724609375, "height": 13, "text": "(from Model)" @@ -86,16 +85,14 @@ }, "visible": false, "font": "Arial;13;0", - "left": 640, - "top": 48, + "left": 912, "height": 13, "horizontalAlignment": 1 } ], "font": "Arial;13;0", - "left": 320, - "top": 24, - "width": 397.63232421875, + "left": 456, + "width": 489, "height": 25, "stereotypeLabel": { "$ref": "AAAAAAGHy6V5Ic6B5nY=" @@ -130,11 +127,11 @@ "$ref": "AAAAAAGHy6abF86qs+o=" }, "font": "Arial;13;0", - "left": 325, - "top": 54, - "width": 387.63232421875, + "left": 461, + "top": 30, + "width": 479, "height": 13, - "text": "-/Name: string", + "text": "+/Name: string", "horizontalAlignment": 0 }, { @@ -147,11 +144,11 @@ "$ref": "AAAAAAGHy6cPQc60dlU=" }, "font": "Arial;13;0", - "left": 325, - "top": 69, - "width": 387.63232421875, + "left": 461, + "top": 45, + "width": 479, "height": 13, - "text": "-/Description: string", + "text": "+/Description: string", "horizontalAlignment": 0 }, { @@ -164,11 +161,11 @@ "$ref": "AAAAAAGHy6eJCc67SBE=" }, "font": "Arial;13;0", - "left": 325, - "top": 84, - "width": 387.63232421875, + "left": 461, + "top": 60, + "width": 479, "height": 13, - "text": "-/Year: int", + "text": "+/Year: int", "horizontalAlignment": 0 }, { @@ -181,11 +178,11 @@ "$ref": "AAAAAAGHy6eYcc7BwG4=" }, "font": "Arial;13;0", - "left": 325, - "top": 99, - "width": 387.63232421875, + "left": 461, + "top": 75, + "width": 479, "height": 13, - "text": "-/Tags: string[3]", + "text": "+/Tags: string[3]", "horizontalAlignment": 0 }, { @@ -199,8 +196,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 317, - "top": -158, + "left": 589, + "top": -206, "width": 111.6298828125, "height": 13, "text": "+Attribute3", @@ -217,8 +214,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 309, - "top": 130, + "left": 581, + "top": 82, "width": 215, "height": 13, "text": "-", @@ -234,18 +231,18 @@ "$ref": "AAAAAAGHy+nH1M8zEyw=" }, "font": "Arial;13;0", - "left": 325, - "top": 114, - "width": 387.63232421875, + "left": 461, + "top": 90, + "width": 479, "height": 13, - "text": "-/Reviews: List", + "text": "+/Reviews: List", "horizontalAlignment": 0 } ], "font": "Arial;13;0", - "left": 320, - "top": 49, - "width": 397.63232421875, + "left": 456, + "top": 25, + "width": 489, "height": 83 }, { @@ -268,9 +265,9 @@ "$ref": "AAAAAAGHy+pKm887dkE=" }, "font": "Arial;13;0", - "left": 325, - "top": 137, - "width": 387.63232421875, + "left": 461, + "top": 113, + "width": 479, "height": 13, "text": "+Game(name: string, description: string, year: int, tags: string): void", "horizontalAlignment": 0 @@ -285,9 +282,9 @@ "$ref": "AAAAAAGHy+ugws9N77U=" }, "font": "Arial;13;0", - "left": 325, - "top": 152, - "width": 387.63232421875, + "left": 461, + "top": 128, + "width": 479, "height": 13, "text": "+GetAvgRate(void): float", "horizontalAlignment": 0 @@ -302,9 +299,9 @@ "$ref": "AAAAAAGHy/SB/c9qjj4=" }, "font": "Arial;13;0", - "left": 325, - "top": 167, - "width": 387.63232421875, + "left": 461, + "top": 143, + "width": 479, "height": 13, "text": "+AddReview(Review review): void", "horizontalAlignment": 0 @@ -319,19 +316,87 @@ "$ref": "AAAAAAGHy/SYXc9w1RA=" }, "font": "Arial;13;0", - "left": 325, - "top": 182, - "width": 387.63232421875, + "left": 461, + "top": 158, + "width": 479, "height": 13, "text": "+RemoveReview(Review review): void", "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGIBamZ1VD3c9c=", + "_parent": { + "$ref": "AAAAAAGHy6V5Ic6GCng=" + }, + "model": { + "$ref": "AAAAAAGIBamZzVD0nhg=" + }, + "font": "Arial;13;0", + "left": 461, + "top": 173, + "width": 479, + "height": 13, + "text": "+DescChange(string newdesc): void", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGIBaorZ1ED9wk=", + "_parent": { + "$ref": "AAAAAAGHy6V5Ic6GCng=" + }, + "model": { + "$ref": "AAAAAAGIBaorZFEAOk4=" + }, + "font": "Arial;13;0", + "left": 461, + "top": 188, + "width": 479, + "height": 13, + "text": "+NameChange(string newname): void", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGIBaqWmFEQ7Dg=", + "_parent": { + "$ref": "AAAAAAGHy6V5Ic6GCng=" + }, + "model": { + "$ref": "AAAAAAGIBaqWlVENhkI=" + }, + "font": "Arial;13;0", + "left": 461, + "top": 203, + "width": 479, + "height": 13, + "text": "+YearChange(int newyear): void", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGIBasZoFEckBo=", + "_parent": { + "$ref": "AAAAAAGHy6V5Ic6GCng=" + }, + "model": { + "$ref": "AAAAAAGIBasZnVEZB1s=" + }, + "font": "Arial;13;0", + "left": 461, + "top": 218, + "width": 479, + "height": 13, + "text": "+TagChange(string[] newtags): void", + "horizontalAlignment": 0 } ], "font": "Arial;13;0", - "left": 320, - "top": 132, - "width": 397.63232421875, - "height": 68 + "left": 456, + "top": 108, + "width": 489, + "height": 128 }, { "_type": "UMLReceptionCompartmentView", @@ -344,8 +409,7 @@ }, "visible": false, "font": "Arial;13;0", - "left": 320, - "top": 24, + "left": 456, "width": 10, "height": 10 }, @@ -360,18 +424,16 @@ }, "visible": false, "font": "Arial;13;0", - "left": 320, - "top": 24, + "left": 456, "width": 10, "height": 10 } ], "font": "Arial;13;0", "containerChangeable": true, - "left": 320, - "top": 24, - "width": 397.63232421875, - "height": 176, + "left": 456, + "width": 489, + "height": 241, "nameCompartment": { "$ref": "AAAAAAGHy6V5Ic6ADeI=" }, @@ -664,8 +726,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": -96, - "top": -480, + "left": -64, + "top": -304, "height": 13 }, { @@ -675,8 +737,8 @@ "$ref": "AAAAAAGHy/oFvM+ktuA=" }, "font": "Arial;13;1", - "left": 309, - "top": 487, + "left": 325, + "top": 575, "width": 263, "height": 13, "text": "User" @@ -689,8 +751,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": -96, - "top": -480, + "left": -64, + "top": -304, "width": 73.67724609375, "height": 13, "text": "(from Model)" @@ -703,15 +765,15 @@ }, "visible": false, "font": "Arial;13;0", - "left": -96, - "top": -480, + "left": -64, + "top": -304, "height": 13, "horizontalAlignment": 1 } ], "font": "Arial;13;0", - "left": 304, - "top": 480, + "left": 320, + "top": 568, "width": 273, "height": 25, "stereotypeLabel": { @@ -747,17 +809,17 @@ "$ref": "AAAAAAGHy/pB6c/N3KU=" }, "font": "Arial;13;0", - "left": 309, - "top": 510, + "left": 325, + "top": 598, "width": 263, "height": 13, - "text": "+Attribute1", + "text": "+/Username", "horizontalAlignment": 0 } ], "font": "Arial;13;0", - "left": 304, - "top": 505, + "left": 320, + "top": 593, "width": 273, "height": 23 }, @@ -771,8 +833,8 @@ "$ref": "AAAAAAGHy/oFu8+hjrQ=" }, "font": "Arial;13;0", - "left": 304, - "top": 528, + "left": 320, + "top": 616, "width": 273, "height": 10 }, @@ -787,8 +849,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": -48, - "top": -240, + "left": -32, + "top": -152, "width": 10, "height": 10 }, @@ -803,16 +865,16 @@ }, "visible": false, "font": "Arial;13;0", - "left": -48, - "top": -240, + "left": -32, + "top": -152, "width": 10, "height": 10 } ], "font": "Arial;13;0", "containerChangeable": true, - "left": 304, - "top": 480, + "left": 320, + "top": 568, "width": 273, "height": 225, "nameCompartment": { @@ -830,6 +892,220 @@ "templateParameterCompartment": { "$ref": "AAAAAAGHy/oFvM+srqs=" } + }, + { + "_type": "UMLClassView", + "_id": "AAAAAAGIBaUz1lCjUnY=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGIBaUz1lCkfC0=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCjUnY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGIBaUz1lClEog=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCkfC0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -272, + "top": -16, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGIBaUz1lCmdNQ=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCkfC0=" + }, + "font": "Arial;13;1", + "left": 685, + "top": 575, + "width": 327, + "height": 13, + "text": "Admin" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGIBaUz1lCnG7Q=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCkfC0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -272, + "top": -16, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGIBaUz1lCoZ0I=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCkfC0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -272, + "top": -16, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 680, + "top": 568, + "width": 337, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGIBaUz1lClEog=" + }, + "nameLabel": { + "$ref": "AAAAAAGIBaUz1lCmdNQ=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGIBaUz1lCnG7Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAGIBaUz1lCoZ0I=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGIBaUz1lCpI9w=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCjUnY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "subViews": [ + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGIBaWvgVDSF1A=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCpI9w=" + }, + "model": { + "$ref": "AAAAAAGIBaWvdVDPMqA=" + }, + "font": "Arial;13;0", + "left": 685, + "top": 598, + "width": 327, + "height": 13, + "text": "+/Permission", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 680, + "top": 593, + "width": 337, + "height": 23 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGIBaUz11CqxCo=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCjUnY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGIBabHi1DgFo4=", + "_parent": { + "$ref": "AAAAAAGIBaUz11CqxCo=" + }, + "model": { + "$ref": "AAAAAAGIBabHhlDdHYE=" + }, + "font": "Arial;13;0", + "left": 685, + "top": 621, + "width": 327, + "height": 13, + "text": "+DelCom(Game game, Review review): void", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 680, + "top": 616, + "width": 337, + "height": 23 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGIBaUz11CryHs=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCjUnY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -136, + "top": -8, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGIBaUz11CsNM8=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lCjUnY=" + }, + "model": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -136, + "top": -8, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 680, + "top": 568, + "width": 337, + "height": 217, + "nameCompartment": { + "$ref": "AAAAAAGIBaUz1lCkfC0=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGIBaUz1lCpI9w=" + }, + "operationCompartment": { + "$ref": "AAAAAAGIBaUz11CqxCo=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGIBaUz11CryHs=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGIBaUz11CsNM8=" + } } ] }, @@ -839,6 +1115,7 @@ "_parent": { "$ref": "AAAAAAFF+qBWK6M3Z8Y=" }, + "name": "Game", "attributes": [ { "_type": "UMLAttribute", @@ -847,7 +1124,6 @@ "$ref": "AAAAAAGHy6V5H859C3s=" }, "name": "/Name", - "visibility": "private", "type": "string" }, { @@ -857,7 +1133,6 @@ "$ref": "AAAAAAGHy6V5H859C3s=" }, "name": "/Description", - "visibility": "private", "type": "string" }, { @@ -867,7 +1142,6 @@ "$ref": "AAAAAAGHy6V5H859C3s=" }, "name": "/Year", - "visibility": "private", "type": "int" }, { @@ -877,7 +1151,6 @@ "$ref": "AAAAAAGHy6V5H859C3s=" }, "name": "/Tags", - "visibility": "private", "type": "string", "multiplicity": "3" }, @@ -906,7 +1179,6 @@ "$ref": "AAAAAAGHy6V5H859C3s=" }, "name": "/Reviews", - "visibility": "private", "type": "List" } ], @@ -1049,6 +1321,118 @@ "direction": "return" } ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGIBamZzVD0nhg=", + "_parent": { + "$ref": "AAAAAAGHy6V5H859C3s=" + }, + "name": "DescChange", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBaoSHVD8Cbk=", + "_parent": { + "$ref": "AAAAAAGIBamZzVD0nhg=" + }, + "name": "string newdesc", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBaoSHVD9uLw=", + "_parent": { + "$ref": "AAAAAAGIBamZzVD0nhg=" + }, + "type": "void", + "direction": "return" + } + ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGIBaorZFEAOk4=", + "_parent": { + "$ref": "AAAAAAGHy6V5H859C3s=" + }, + "name": "NameChange", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBap6S1EJJUo=", + "_parent": { + "$ref": "AAAAAAGIBaorZFEAOk4=" + }, + "name": "string newname", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBap6S1EKQ3g=", + "_parent": { + "$ref": "AAAAAAGIBaorZFEAOk4=" + }, + "type": "void", + "direction": "return" + } + ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGIBaqWlVENhkI=", + "_parent": { + "$ref": "AAAAAAGHy6V5H859C3s=" + }, + "name": "YearChange", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBasGdVEVs6g=", + "_parent": { + "$ref": "AAAAAAGIBaqWlVENhkI=" + }, + "name": "int newyear", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBasGdVEW5Ik=", + "_parent": { + "$ref": "AAAAAAGIBaqWlVENhkI=" + }, + "type": "void", + "direction": "return" + } + ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGIBasZnVEZB1s=", + "_parent": { + "$ref": "AAAAAAGHy6V5H859C3s=" + }, + "name": "TagChange", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBatebVEhUpA=", + "_parent": { + "$ref": "AAAAAAGIBasZnVEZB1s=" + }, + "name": "string[] newtags", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBatebVEiCi4=", + "_parent": { + "$ref": "AAAAAAGIBasZnVEZB1s=" + }, + "type": "void", + "direction": "return" + } + ] } ] }, @@ -1163,10 +1547,68 @@ "_parent": { "$ref": "AAAAAAGHy/oFu8+hjrQ=" }, - "name": "Attribute1", + "name": "/Username", "type": "" } ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGIBaUz1lChV0U=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Admin", + "attributes": [ + { + "_type": "UMLAttribute", + "_id": "AAAAAAGIBaWvdVDPMqA=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "name": "/Permission", + "type": "" + } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGIBabHhlDdHYE=", + "_parent": { + "$ref": "AAAAAAGIBaUz1lChV0U=" + }, + "name": "DelCom", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBajg+1Dt2sE=", + "_parent": { + "$ref": "AAAAAAGIBabHhlDdHYE=" + }, + "name": "Game game", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBajg+1Du3eg=", + "_parent": { + "$ref": "AAAAAAGIBabHhlDdHYE=" + }, + "name": "Review review", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGIBajg+1Dv7NA=", + "_parent": { + "$ref": "AAAAAAGIBabHhlDdHYE=" + }, + "type": "void", + "direction": "return" + } + ] + } + ] } ] }