From 7919e434d9e1765133319e4413dd912989cfb8bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 7 Mar 2018 14:41:59 +0100 Subject: [PATCH] Add TD1 UML exercice files. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TD1/exo1.uxf | 316 +++++++++++++++++++++++++++++++++++++++++++++++++++ TD1/exo2.uxf | 117 +++++++++++++++++++ TD1/exo3.uxf | 277 ++++++++++++++++++++++++++++++++++++++++++++ TD1/exo4.uxf | 191 +++++++++++++++++++++++++++++++ 4 files changed, 901 insertions(+) create mode 100644 TD1/exo1.uxf create mode 100644 TD1/exo2.uxf create mode 100644 TD1/exo3.uxf create mode 100644 TD1/exo4.uxf diff --git a/TD1/exo1.uxf b/TD1/exo1.uxf new file mode 100644 index 0000000..8da98fd --- /dev/null +++ b/TD1/exo1.uxf @@ -0,0 +1,316 @@ + + 10 + + UMLClass + + 450 + 360 + 100 + 40 + + Cercle + + + + UMLClass + + 290 + 360 + 100 + 40 + + Image + + + + UMLClass + + 620 + 360 + 100 + 40 + + Segment + + + + UMLClass + + 300 + 660 + 100 + 40 + + Entiers + + + + UMLClass + + 460 + 660 + 100 + 40 + + Liste + + + + Relation + + 420 + 540 + 110 + 140 + + lt=<<- + 10.0;10.0;10.0;80.0;90.0;80.0;90.0;120.0 + + + UMLClass + + 370 + 110 + 280 + 110 + + /Forme/ +-- +-pOri +-- ++getpOri():Point ++deplacer(Point p) +/+dessiner(Piletransformations p)/ + + + + + UMLClass + + 330 + 480 + 220 + 70 + + /Structure/ +-- +-- +/+inserer(int value):boolean/ +/+supprimer(int value):boolean/ + + + + Relation + + 340 + 540 + 110 + 140 + + lt=<<- + 90.0;10.0;90.0;80.0;10.0;80.0;10.0;120.0 + + + Relation + + 490 + 210 + 200 + 170 + + lt=<<- + 10.0;10.0;10.0;90.0;180.0;90.0;180.0;150.0 + + + Relation + + 330 + 210 + 190 + 170 + + lt=<<- + 170.0;10.0;170.0;90.0;10.0;90.0;10.0;150.0 + + + Relation + + 490 + 210 + 30 + 170 + + lt=<<- + 10.0;10.0;10.0;150.0 + + + UMLClass + + 790 + 110 + 180 + 40 + + Piletransformations + + + + UMLClass + + 860 + 250 + 100 + 40 + + Point + + + + Relation + + 640 + 170 + 290 + 100 + + lt=- +m1=* +m2=1 +< debute + 10.0;20.0;270.0;20.0;270.0;80.0 + + + Relation + + 710 + 280 + 220 + 130 + + lt=- +m1=* +m2=1 +< finit + 10.0;100.0;200.0;100.0;200.0;10.0 + + + Relation + + 640 + 120 + 170 + 30 + + lt=<<. + 150.0;10.0;10.0;10.0 + + + Relation + + 300 + 160 + 90 + 220 + + lt=<<<<- +m2=* + 10.0;200.0;10.0;10.0;70.0;10.0 + + + UMLClass + + 690 + 660 + 100 + 40 + + Maillon + + + + Relation + + 550 + 670 + 160 + 40 + + lt=<<<<- +m2=* + 10.0;10.0;140.0;10.0 + + + Relation + + 100 + 330 + 250 + 220 + + lt=<<. + 10.0;10.0;10.0;200.0;230.0;200.0 + + + Relation + + 170 + 170 + 180 + 350 + + lt=<<. + 10.0;10.0;10.0;330.0;160.0;330.0 + + + Relation + + 210 + 150 + 100 + 250 + + lt=<<. + 10.0;10.0;40.0;10.0;40.0;230.0;80.0;230.0 + + + Relation + + 0 + 60 + 440 + 230 + + lt=<<. + 110.0;210.0;110.0;180.0;10.0;180.0;10.0;10.0;420.0;10.0;420.0;50.0 + + + UMLClass + + 60 + 270 + 110 + 70 + + <<Affichable>> +-- +-- +/+afficher()/ + + + + + UMLClass + + 20 + 110 + 200 + 70 + + <<Compactable>> +-- +-- +/+compacter(int nElements)/ + + + + diff --git a/TD1/exo2.uxf b/TD1/exo2.uxf new file mode 100644 index 0000000..bc888f4 --- /dev/null +++ b/TD1/exo2.uxf @@ -0,0 +1,117 @@ + + 10 + + UMLClass + + 290 + 120 + 100 + 40 + + Client + + + + UMLClass + + 650 + 120 + 150 + 140 + + Compte +-- +-numero: int +-solde: double +-- ++crediter() ++debiter() ++verifier() ++rappeler() + + + + UMLClass + + 650 + 330 + 160 + 100 + + Operation +-- +-montant: double +-- + + + + UMLClass + + 500 + 550 + 100 + 30 + + Commande + + + + UMLClass + + 850 + 550 + 100 + 30 + + Paiement + + + + Relation + + 380 + 120 + 290 + 50 + + lt=- +m1=1..2 +m2=* +possède > + 10.0;20.0;270.0;20.0 + + + Relation + + 540 + 490 + 380 + 80 + + lt=- + 10.0;60.0;10.0;10.0;360.0;10.0;360.0;60.0 + + + Relation + + 720 + 420 + 30 + 100 + + lt=<<- + 10.0;10.0;10.0;80.0 + + + Relation + + 720 + 250 + 30 + 100 + + lt=<<<<- +m2=* + 10.0;80.0;10.0;10.0 + + diff --git a/TD1/exo3.uxf b/TD1/exo3.uxf new file mode 100644 index 0000000..10d14d4 --- /dev/null +++ b/TD1/exo3.uxf @@ -0,0 +1,277 @@ + + 10 + + UMLClass + + 620 + 140 + 220 + 100 + + /Composants/ +-- +-longueur:double +-largeur:double +-surface:double +-- + + + + UMLClass + + 50 + 100 + 260 + 190 + + Appartement +-- +-nbComposants:int +-Composants[]:Composants[] +-- ++surface():double ++surfaceAdmissible():double ++estT1():boolean ++estT2():boolean ++estT3():boolean ++estT4():boolean ++estT5():boolean + + + + + + + UMLClass + + 970 + 170 + 100 + 30 + + Balcon + + + + UMLClass + + 640 + 340 + 190 + 60 + + Pièce +-- +-couleurs[]: String[] + + + + + UMLClass + + 540 + 530 + 100 + 30 + + /Habitable/ + + + + UMLClass + + 830 + 520 + 190 + 50 + + /Service/ +-- +-services[]=ServiceType[] + + + + Relation + + 830 + 170 + 160 + 30 + + lt=<<- + 10.0;10.0;140.0;10.0 + + + Relation + + 720 + 230 + 30 + 130 + + lt=<<- + 10.0;10.0;10.0;110.0 + + + UMLClass + + 460 + 610 + 100 + 50 + + Chambre +-- +-nbLits:int + + + + UMLClass + + 620 + 610 + 100 + 50 + + Salon +-- +-nbTVs:int + + + + UMLClass + + 760 + 610 + 100 + 30 + + Couloir + + + + UMLClass + + 870 + 610 + 100 + 30 + + Cuisine + + + + UMLClass + + 980 + 610 + 100 + 30 + + Salle de bain + + + + Relation + + 580 + 490 + 360 + 60 + + lt=- + 10.0;40.0;10.0;10.0;340.0;10.0;340.0;30.0 + + + Relation + + 720 + 390 + 30 + 130 + + lt=<<- + 10.0;10.0;10.0;110.0 + + + Relation + + 500 + 580 + 190 + 50 + + lt=- + 10.0;30.0;10.0;10.0;170.0;10.0;170.0;30.0 + + + Relation + + 800 + 580 + 250 + 50 + + lt=- + 10.0;30.0;10.0;10.0;230.0;10.0;230.0;30.0 + + + Relation + + 910 + 560 + 30 + 70 + + lt=<<- + 10.0;10.0;10.0;50.0 + + + Relation + + 580 + 550 + 30 + 60 + + lt=<<- + 10.0;10.0;10.0;40.0 + + + UMLClass + + 920 + 330 + 100 + 50 + + ServiceType +-- +-nom:String + + + + Relation + + 960 + 370 + 30 + 170 + + lt=<<<<- +m2=* + 10.0;10.0;10.0;150.0 + + + Relation + + 300 + 180 + 340 + 40 + + lt=<<<<- +m2=* + 320.0;10.0;10.0;10.0 + + diff --git a/TD1/exo4.uxf b/TD1/exo4.uxf new file mode 100644 index 0000000..61feeeb --- /dev/null +++ b/TD1/exo4.uxf @@ -0,0 +1,191 @@ + + 10 + + UMLClass + + 150 + 120 + 200 + 90 + + /Route/ +-- +-longeur:double +-vitesseMoyenne:double +-- ++tempsMoyen():double + + + + UMLClass + + 580 + 120 + 200 + 90 + + /Commune/ +-- +-nom:String +-routesEntrantes[]:Route[] +-routesSortantes[]:Route[] + + + + UMLClass + + 40 + 320 + 100 + 30 + + Autoroute + + + + UMLClass + + 190 + 320 + 100 + 30 + + Nationale + + + + UMLClass + + 350 + 320 + 160 + 50 + + Montagne +-- +-denivellation:double + + + + UMLClass + + 850 + 70 + 230 + 50 + + Ville +-- +-tempsMoyenTraverse:double + + + + UMLClass + + 850 + 210 + 100 + 30 + + Village + + + + Relation + + 800 + 80 + 70 + 170 + + lt=- + 50.0;150.0;10.0;150.0;10.0;10.0;50.0;10.0 + + + Relation + + 770 + 150 + 60 + 30 + + lt=<<- + 10.0;10.0;40.0;10.0 + + + Relation + + 80 + 270 + 370 + 70 + + lt=- + 10.0;50.0;10.0;10.0;350.0;10.0;350.0;50.0 + + + Relation + + 230 + 200 + 30 + 140 + + lt=<<- + 10.0;10.0;10.0;120.0 + + + Relation + + 340 + 120 + 260 + 50 + + lt=- +m1=1 +m2=1 +commence > + 10.0;20.0;240.0;20.0 + + + Relation + + 340 + 150 + 260 + 50 + + lt=- +m1=1 +m2=1 +finit > + 10.0;20.0;240.0;20.0 + + + Relation + + 230 + 70 + 470 + 70 + + lt=<<<<- +m2=* +debute + 10.0;50.0;10.0;20.0;450.0;20.0;450.0;50.0 + + + Relation + + 280 + 200 + 420 + 70 + + lt=<<<<- +m2=* +termine + 10.0;10.0;10.0;50.0;400.0;50.0;400.0;10.0 + + -- 2.34.1