diff --git a/2A/Java/Cours/CoursJava.pdf b/2A/Java/Cours/CoursJava.pdf new file mode 100755 index 0000000..6395db0 Binary files /dev/null and b/2A/Java/Cours/CoursJava.pdf differ diff --git a/2A/Java/tp/1_tp/TP1.mdj b/2A/Java/tp/1_tp/TP1.mdj new file mode 100755 index 0000000..8a0fdf6 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1.mdj @@ -0,0 +1,2392 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true, + "ownedViews": [ + { + "_type": "UMLClassView", + "_id": "AAAAAAGLW588fx/VpWI=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGLW588fx/WqW4=", + "_parent": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGLW588gB/Xvr0=", + "_parent": { + "$ref": "AAAAAAGLW588fx/WqW4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 688, + "top": -16, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW588gB/Y/KM=", + "_parent": { + "$ref": "AAAAAAGLW588fx/WqW4=" + }, + "font": "Arial;13;1", + "left": 525, + "top": 143, + "width": 182.4697265625, + "height": 13, + "text": "Patient" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW588gB/ZHwM=", + "_parent": { + "$ref": "AAAAAAGLW588fx/WqW4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 688, + "top": -16, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW588gR/avgU=", + "_parent": { + "$ref": "AAAAAAGLW588fx/WqW4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 688, + "top": -16, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 136, + "width": 192.4697265625, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGLW588gB/Xvr0=" + }, + "nameLabel": { + "$ref": "AAAAAAGLW588gB/Y/KM=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGLW588gB/ZHwM=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW588gR/avgU=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGLW588gR/bNzg=", + "_parent": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "subViews": [ + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGLW6CzASBYrYk=", + "_parent": { + "$ref": "AAAAAAGLW588gR/bNzg=" + }, + "model": { + "$ref": "AAAAAAGLW6Cy+CBVQk4=" + }, + "font": "Arial;13;0", + "left": 525, + "top": 166, + "width": 182.4697265625, + "height": 13, + "text": "-nom: String", + "horizontalAlignment": 0 + }, + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGLW6Gn6SBgOU0=", + "_parent": { + "$ref": "AAAAAAGLW588gR/bNzg=" + }, + "model": { + "$ref": "AAAAAAGLW6Gn2iBd2Fk=" + }, + "font": "Arial;13;0", + "left": 525, + "top": 181, + "width": 182.4697265625, + "height": 13, + "text": "-prenom: String", + "horizontalAlignment": 0 + }, + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGLW6HhqCBoz10=", + "_parent": { + "$ref": "AAAAAAGLW588gR/bNzg=" + }, + "model": { + "$ref": "AAAAAAGLW6HhoiBl0/4=" + }, + "font": "Arial;13;0", + "left": 525, + "top": 196, + "width": 182.4697265625, + "height": 13, + "text": "-age: Integer", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 161, + "width": 192.4697265625, + "height": 53 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGLW588gR/cd68=", + "_parent": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW6WwyCChjo8=", + "_parent": { + "$ref": "AAAAAAGLW588gR/cd68=" + }, + "model": { + "$ref": "AAAAAAGLW6WwtSCe+OA=" + }, + "font": "Arial;13;0", + "left": 525, + "top": 219, + "width": 182.4697265625, + "height": 13, + "text": "-toString()", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW6cL+iDGDmQ=", + "_parent": { + "$ref": "AAAAAAGLW588gR/cd68=" + }, + "model": { + "$ref": "AAAAAAGLW6cL7SDDA/s=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 525, + "top": 234, + "width": 182.4697265625, + "height": 13, + "text": "-afficherPatients(void): void", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 214, + "width": 192.4697265625, + "height": 23 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGLW588gR/dZMo=", + "_parent": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 344, + "top": -8, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGLW588gh/eaQA=", + "_parent": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "model": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 344, + "top": -8, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 520, + "top": 136, + "width": 192.4697265625, + "height": 105, + "nameCompartment": { + "$ref": "AAAAAAGLW588fx/WqW4=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGLW588gR/bNzg=" + }, + "operationCompartment": { + "$ref": "AAAAAAGLW588gR/cd68=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGLW588gR/dZMo=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGLW588gh/eaQA=" + } + }, + { + "_type": "UMLClassView", + "_id": "AAAAAAGLW6AhwiAriqU=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGLW6AhwyAsvpA=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGLW6AhwyAtdeE=", + "_parent": { + "$ref": "AAAAAAGLW6AhwyAsvpA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -16, + "top": -176, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6AhwyAuu6o=", + "_parent": { + "$ref": "AAAAAAGLW6AhwyAsvpA=" + }, + "font": "Arial;13;1", + "left": 173, + "top": 159, + "width": 80.57080078125, + "height": 13, + "text": "Main" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6AhwyAvQfQ=", + "_parent": { + "$ref": "AAAAAAGLW6AhwyAsvpA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -16, + "top": -176, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6AhwyAwfCw=", + "_parent": { + "$ref": "AAAAAAGLW6AhwyAsvpA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -16, + "top": -176, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 168, + "top": 152, + "width": 90.57080078125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGLW6AhwyAtdeE=" + }, + "nameLabel": { + "$ref": "AAAAAAGLW6AhwyAuu6o=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGLW6AhwyAvQfQ=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW6AhwyAwfCw=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGLW6AhwyAxnh4=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "font": "Arial;13;0", + "left": 168, + "top": 177, + "width": 90.57080078125, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGLW6AhwyAySeE=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW65RKCIMylg=", + "_parent": { + "$ref": "AAAAAAGLW6AhwyAySeE=" + }, + "model": { + "$ref": "AAAAAAGLW65RJCIJ3Sw=" + }, + "font": "Arial;13;0", + "left": 173, + "top": 192, + "width": 80.57080078125, + "height": 13, + "text": "+main(): int", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 168, + "top": 187, + "width": 90.57080078125, + "height": 23 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGLW6AhxCAz7gw=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -8, + "top": -88, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGLW6AhxCA04nc=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "model": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -8, + "top": -88, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 168, + "top": 152, + "width": 90.57080078125, + "height": 58, + "nameCompartment": { + "$ref": "AAAAAAGLW6AhwyAsvpA=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGLW6AhwyAxnh4=" + }, + "operationCompartment": { + "$ref": "AAAAAAGLW6AhwyAySeE=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGLW6AhxCAz7gw=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGLW6AhxCA04nc=" + } + }, + { + "_type": "UMLClassView", + "_id": "AAAAAAGLW6z5ESD6A20=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGLW6z5ESD7ae0=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGLW6z5ESD8fb4=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD7ae0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -336, + "top": -656, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6z5ESD9fpE=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD7ae0=" + }, + "font": "Arial;13;1", + "left": 253, + "top": 23, + "width": 200.509765625, + "height": 13, + "text": "Saisisseur" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6z5ESD+36Q=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD7ae0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -336, + "top": -656, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6z5ESD/ZdQ=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD7ae0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -336, + "top": -656, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 248, + "top": 16, + "width": 210.509765625, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGLW6z5ESD8fb4=" + }, + "nameLabel": { + "$ref": "AAAAAAGLW6z5ESD9fpE=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGLW6z5ESD+36Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW6z5ESD/ZdQ=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGLW6z5ESEAvSA=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "font": "Arial;13;0", + "left": 248, + "top": 41, + "width": 210.509765625, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGLW6z5ESEBWXI=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW61KACEl1/o=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESEBWXI=" + }, + "model": { + "$ref": "AAAAAAGLW61J4CEiOxI=" + }, + "font": "Arial;13;0", + "left": 253, + "top": 56, + "width": 200.509765625, + "height": 13, + "text": "+saisirPatient(): Collection", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 248, + "top": 51, + "width": 210.509765625, + "height": 23 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGLW6z5ESECNFY=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -168, + "top": -328, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGLW6z5ESED51o=", + "_parent": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "model": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -168, + "top": -328, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 248, + "top": 16, + "width": 210.509765625, + "height": 58, + "nameCompartment": { + "$ref": "AAAAAAGLW6z5ESD7ae0=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGLW6z5ESEAvSA=" + }, + "operationCompartment": { + "$ref": "AAAAAAGLW6z5ESEBWXI=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGLW6z5ESECNFY=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGLW6z5ESED51o=" + } + }, + { + "_type": "UMLDependencyView", + "_id": "AAAAAAGLW63XoCFLI7o=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW63XoCFJ+Ak=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW63XoCFMu58=", + "_parent": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "model": { + "$ref": "AAAAAAGLW63XoCFJ+Ak=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 270, + "top": 95, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW63XoCFNwMY=", + "_parent": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "model": { + "$ref": "AAAAAAGLW63XoCFJ+Ak=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 260, + "top": 84, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW63XoCFOxtQ=", + "_parent": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "model": { + "$ref": "AAAAAAGLW63XoCFJ+Ak=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 291, + "top": 116, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW63XoCFLI7o=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGLW6z5ESD6A20=" + }, + "tail": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "lineStyle": 1, + "points": "242:151;321:74", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAGLW63XoCFMu58=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGLW63XoCFNwMY=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW63XoCFOxtQ=" + } + }, + { + "_type": "UMLDependencyView", + "_id": "AAAAAAGLW64xISH68Kg=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW64xISH4xO4=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW64xIiH7ILQ=", + "_parent": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "model": { + "$ref": "AAAAAAGLW64xISH4xO4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 389, + "top": 162, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW64xIiH8liA=", + "_parent": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "model": { + "$ref": "AAAAAAGLW64xISH4xO4=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 389, + "top": 147, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW64xIiH9zgo=", + "_parent": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "model": { + "$ref": "AAAAAAGLW64xISH4xO4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 388, + "top": 191, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW64xISH68Kg=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "tail": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "lineStyle": 1, + "points": "259:181;519:186", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAGLW64xIiH7ILQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGLW64xIiH8liA=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW64xIiH9zgo=" + } + }, + { + "_type": "UMLClassView", + "_id": "AAAAAAGLW6+k0yIW5qs=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGLW6+k1CIX8pw=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGLW6+k1CIY+Jg=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIX8pw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -400, + "top": -160, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6+k1CIZ/1U=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIX8pw=" + }, + "font": "Arial;13;1", + "left": 213, + "top": 375, + "width": 164.41064453125, + "height": 13, + "text": "Patientheque" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6+k1CIaswc=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIX8pw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -400, + "top": -160, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW6+k1CIboNc=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIX8pw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -400, + "top": -160, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 208, + "top": 368, + "width": 174.41064453125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGLW6+k1CIY+Jg=" + }, + "nameLabel": { + "$ref": "AAAAAAGLW6+k1CIZ/1U=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGLW6+k1CIaswc=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW6+k1CIboNc=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGLW6+k1CIcLPk=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "font": "Arial;13;0", + "left": 208, + "top": 393, + "width": 174.41064453125, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGLW6+k1CIdsgg=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW7DaVyVjHRw=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIdsgg=" + }, + "model": { + "$ref": "AAAAAAGLW7DaQSVgJXU=" + }, + "font": "Arial;13;0", + "left": 213, + "top": 408, + "width": 164.41064453125, + "height": 13, + "text": "+addPatient(p: Patient): void", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW7PN7izRtQ4=", + "_parent": { + "$ref": "AAAAAAGLW6+k1CIdsgg=" + }, + "model": { + "$ref": "AAAAAAGLW7PN2SzOuyo=" + }, + "font": "Arial;13;0", + "left": 213, + "top": 423, + "width": 164.41064453125, + "height": 13, + "text": "+toString(p: Patient)", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 208, + "top": 403, + "width": 174.41064453125, + "height": 38 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGLW6+k1CIemBI=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -200, + "top": -80, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGLW6+k1SIfB50=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "model": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -200, + "top": -80, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 208, + "top": 368, + "width": 174.41064453125, + "height": 73, + "nameCompartment": { + "$ref": "AAAAAAGLW6+k1CIX8pw=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGLW6+k1CIcLPk=" + }, + "operationCompartment": { + "$ref": "AAAAAAGLW6+k1CIdsgg=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGLW6+k1CIemBI=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGLW6+k1SIfB50=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAGLW7APLyJG1C0=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJH0DQ=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "font": "Arial;13;0", + "left": 273, + "top": 335, + "width": 71.1826171875, + "height": 13, + "alpha": 0.46898349054797916, + "distance": 79.02531240052139, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 1, + "text": "-lesPatients" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJIIBw=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 279, + "top": 271, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJJypc=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 236, + "top": 287, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJKpOo=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJDx2Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 245, + "top": 223, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJLBBQ=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJDx2Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 259, + "top": 220, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJM5yk=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJDx2Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 218, + "top": 228, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJNmIY=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJEvHA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 285, + "top": 331, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJOJns=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJEvHA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 296, + "top": 324, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7APLyJP7NQ=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJEvHA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 260, + "top": 344, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAGLW7APLyJQ40Y=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJDx2Q=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAGLW7APLyJR1iA=", + "_parent": { + "$ref": "AAAAAAGLW7APLyJG1C0=" + }, + "model": { + "$ref": "AAAAAAGLW7APLiJEvHA=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "tail": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "lineStyle": 1, + "points": "223:210;280:367", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAGLW7APLyJH0DQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGLW7APLyJIIBw=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW7APLyJJypc=" + }, + "showEndOrder": "hide", + "tailRoleNameLabel": { + "$ref": "AAAAAAGLW7APLyJKpOo=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAGLW7APLyJLBBQ=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAGLW7APLyJM5yk=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAGLW7APLyJNmIY=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAGLW7APLyJOJns=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAGLW7APLyJP7NQ=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAGLW7APLyJQ40Y=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAGLW7APLyJR1iA=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAGLW7Bo6yPrkY4=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPs+4U=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "font": "Arial;13;0", + "left": 503, + "top": 240, + "width": 13.83154296875, + "height": 13, + "alpha": 0.12306859015170946, + "distance": 88.61715409558128, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 1, + "text": "+*" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPtlYs=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 425, + "top": 273, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPu8qY=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 310, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPvPF0=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPosTM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 362, + "top": 334, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPwNLw=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPosTM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 356, + "top": 321, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPxnAE=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPosTM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 373, + "top": 359, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPyWCY=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPp7cg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 506, + "top": 237, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yPz0XY=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPp7cg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 496, + "top": 227, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7Bo6yP0wds=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPp7cg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 525, + "top": 257, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAGLW7Bo7CP1KOs=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPosTM=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAGLW7Bo7CP29qE=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6yPrkY4=" + }, + "model": { + "$ref": "AAAAAAGLW7Bo6iPp7cg=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGLW588fx/VpWI=" + }, + "tail": { + "$ref": "AAAAAAGLW6+k0yIW5qs=" + }, + "lineStyle": 1, + "points": "349:367;536:241", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAGLW7Bo6yPs+4U=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGLW7Bo6yPtlYs=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW7Bo6yPu8qY=" + }, + "showEndOrder": "hide", + "tailRoleNameLabel": { + "$ref": "AAAAAAGLW7Bo6yPvPF0=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAGLW7Bo6yPwNLw=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAGLW7Bo6yPxnAE=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAGLW7Bo6yPyWCY=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAGLW7Bo6yPz0XY=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAGLW7Bo6yP0wds=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAGLW7Bo7CP1KOs=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAGLW7Bo7CP29qE=" + } + }, + { + "_type": "UMLClassView", + "_id": "AAAAAAGLW7IJnids8uI=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGLW7IJnidtmBg=", + "_parent": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGLW7IJniduTrg=", + "_parent": { + "$ref": "AAAAAAGLW7IJnidtmBg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -80, + "top": 16, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW7IJnidv+VY=", + "_parent": { + "$ref": "AAAAAAGLW7IJnidtmBg=" + }, + "font": "Arial;13;1", + "left": 197, + "top": 543, + "width": 187.9921875, + "height": 13, + "text": "Afficheur" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW7IJnidwJ4Q=", + "_parent": { + "$ref": "AAAAAAGLW7IJnidtmBg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -80, + "top": 16, + "width": 73.67724609375, + "height": 13, + "text": "(from Model)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGLW7IJnidx7Xg=", + "_parent": { + "$ref": "AAAAAAGLW7IJnidtmBg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -80, + "top": 16, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 192, + "top": 536, + "width": 197.9921875, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAGLW7IJniduTrg=" + }, + "nameLabel": { + "$ref": "AAAAAAGLW7IJnidv+VY=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGLW7IJnidwJ4Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW7IJnidx7Xg=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAGLW7IJnidydco=", + "_parent": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "font": "Arial;13;0", + "left": 192, + "top": 561, + "width": 197.9921875, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAGLW7IJnidzSZw=", + "_parent": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGLW7IxCChdft8=", + "_parent": { + "$ref": "AAAAAAGLW7IJnidzSZw=" + }, + "model": { + "$ref": "AAAAAAGLW7Iw8ChUmxU=" + }, + "font": "Arial;13;0", + "left": 197, + "top": 576, + "width": 187.9921875, + "height": 13, + "text": "+afficher(lesPatient: String): void", + "horizontalAlignment": 0 + } + ], + "font": "Arial;13;0", + "left": 192, + "top": 571, + "width": 197.9921875, + "height": 23 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAGLW7IJnyd0NEI=", + "_parent": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -40, + "top": 8, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAGLW7IJnyd1FXQ=", + "_parent": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "model": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": -40, + "top": 8, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 192, + "top": 536, + "width": 197.9921875, + "height": 58, + "nameCompartment": { + "$ref": "AAAAAAGLW7IJnidtmBg=" + }, + "attributeCompartment": { + "$ref": "AAAAAAGLW7IJnidydco=" + }, + "operationCompartment": { + "$ref": "AAAAAAGLW7IJnidzSZw=" + }, + "receptionCompartment": { + "$ref": "AAAAAAGLW7IJnyd0NEI=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAGLW7IJnyd1FXQ=" + } + }, + { + "_type": "UMLDependencyView", + "_id": "AAAAAAGLW7OY9Sp+YaY=", + "_parent": { + "$ref": "AAAAAAFF+qBtyKM79qY=" + }, + "model": { + "$ref": "AAAAAAGLW7OY9Sp8Fco=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7OY9Sp/Z0o=", + "_parent": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "model": { + "$ref": "AAAAAAGLW7OY9Sp8Fco=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 120, + "top": 421, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7OY9SqAhwE=", + "_parent": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "model": { + "$ref": "AAAAAAGLW7OY9Sp8Fco=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 129, + "top": 409, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGLW7OY9iqBXHQ=", + "_parent": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "model": { + "$ref": "AAAAAAGLW7OY9Sp8Fco=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 103, + "top": 446, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAGLW7OY9Sp+YaY=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGLW7IJnids8uI=" + }, + "tail": { + "$ref": "AAAAAAGLW6AhwiAriqU=" + }, + "lineStyle": 1, + "points": "200:210;112:440;248:535", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAGLW7OY9Sp/Z0o=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGLW7OY9SqAhwE=" + }, + "propertyLabel": { + "$ref": "AAAAAAGLW7OY9iqBXHQ=" + } + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW588ex/TTbE=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Patient", + "attributes": [ + { + "_type": "UMLAttribute", + "_id": "AAAAAAGLW6Cy+CBVQk4=", + "_parent": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "name": "nom", + "visibility": "private", + "type": "String" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGLW6Gn2iBd2Fk=", + "_parent": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "name": "prenom", + "visibility": "private", + "type": "String" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGLW6HhoiBl0/4=", + "_parent": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "name": "age", + "visibility": "private", + "type": "Integer" + } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW6WwtSCe+OA=", + "_parent": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "name": "toString", + "visibility": "private" + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW6cL7SDDA/s=", + "_parent": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "name": "afficherPatients", + "visibility": "private", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6dG2iDKqGQ=", + "_parent": { + "$ref": "AAAAAAGLW6cL7SDDA/s=" + }, + "name": "void", + "type": "" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6dG2iDLMZE=", + "_parent": { + "$ref": "AAAAAAGLW6cL7SDDA/s=" + }, + "type": "void", + "direction": "return" + } + ] + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW5/eSR/9LVg=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Medecin", + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW6Kq9CB21vc=", + "_parent": { + "$ref": "AAAAAAGLW5/eSR/9LVg=" + }, + "name": "AjouterPatient", + "visibility": "private", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6NsdSCHvm8=", + "_parent": { + "$ref": "AAAAAAGLW6Kq9CB21vc=" + }, + "type": "void", + "direction": "return" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6Pp9CCMSic=", + "_parent": { + "$ref": "AAAAAAGLW6Kq9CB21vc=" + }, + "name": "p", + "type": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + } + ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW6L5oiB9JDo=", + "_parent": { + "$ref": "AAAAAAGLW5/eSR/9LVg=" + }, + "name": "AfficherPatient", + "visibility": "private", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6NRpSCEpVA=", + "_parent": { + "$ref": "AAAAAAGLW6L5oiB9JDo=" + }, + "type": "void", + "direction": "return" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW6QEByCPpkE=", + "_parent": { + "$ref": "AAAAAAGLW6L5oiB9JDo=" + }, + "name": "p", + "type": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + } + ] + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW6AhwiApLVs=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "ownedElements": [ + { + "_type": "UMLDependency", + "_id": "AAAAAAGLW62/kyEvdaQ=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "source": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "target": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + } + }, + { + "_type": "UMLDependency", + "_id": "AAAAAAGLW63XoCFJ+Ak=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "source": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "target": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + } + }, + { + "_type": "UMLDependency", + "_id": "AAAAAAGLW64xISH4xO4=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "source": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "target": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + }, + { + "_type": "UMLAssociation", + "_id": "AAAAAAGLW7APLiJCYe4=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "name": "lesPatients", + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW7APLiJDx2Q=", + "_parent": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "reference": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW7APLiJEvHA=", + "_parent": { + "$ref": "AAAAAAGLW7APLiJCYe4=" + }, + "reference": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "navigable": "navigable" + }, + "visibility": "private" + }, + { + "_type": "UMLDependency", + "_id": "AAAAAAGLW7OY9Sp8Fco=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "source": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "target": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + } + } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW65RJCIJ3Sw=", + "_parent": { + "$ref": "AAAAAAGLW6AhwiApLVs=" + }, + "name": "main", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW66AMSIQ5xo=", + "_parent": { + "$ref": "AAAAAAGLW65RJCIJ3Sw=" + }, + "type": "int", + "direction": "return" + } + ] + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW6z5ECD4Sg8=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Saisisseur", + "ownedElements": [ + { + "_type": "UMLDependency", + "_id": "AAAAAAGLW632iCFagak=", + "_parent": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "source": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "target": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + }, + { + "_type": "UMLAssociation", + "_id": "AAAAAAGLW64UQSFzT1U=", + "_parent": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW64UQiF0Fog=", + "_parent": { + "$ref": "AAAAAAGLW64UQSFzT1U=" + }, + "reference": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW64UQiF1Fv0=", + "_parent": { + "$ref": "AAAAAAGLW64UQSFzT1U=" + }, + "reference": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "navigable": "navigable" + } + } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW61J4CEiOxI=", + "_parent": { + "$ref": "AAAAAAGLW6z5ECD4Sg8=" + }, + "name": "saisirPatient", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW62JGSEp+XI=", + "_parent": { + "$ref": "AAAAAAGLW61J4CEiOxI=" + }, + "type": "Collection", + "direction": "return" + } + ] + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW6+k0yIUSUI=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Patientheque", + "ownedElements": [ + { + "_type": "UMLAssociation", + "_id": "AAAAAAGLW7Bo6iPnQ7I=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "name": "*", + "ownedElements": [ + { + "_type": "UMLConstraint", + "_id": "AAAAAAGLW7Ha7yaqIR4=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "name": "Constraint1" + } + ], + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW7Bo6iPosTM=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "reference": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAGLW7Bo6iPp7cg=", + "_parent": { + "$ref": "AAAAAAGLW7Bo6iPnQ7I=" + }, + "reference": { + "$ref": "AAAAAAGLW588ex/TTbE=" + }, + "navigable": "navigable" + } + } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW7DaQSVgJXU=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "name": "addPatient", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW7GleiX3d3o=", + "_parent": { + "$ref": "AAAAAAGLW7DaQSVgJXU=" + }, + "name": "p", + "type": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW7GleiX41Is=", + "_parent": { + "$ref": "AAAAAAGLW7DaQSVgJXU=" + }, + "type": "void", + "direction": "return" + } + ] + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW7PN2SzOuyo=", + "_parent": { + "$ref": "AAAAAAGLW6+k0yIUSUI=" + }, + "name": "toString", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW8r4g0Atc1M=", + "_parent": { + "$ref": "AAAAAAGLW7PN2SzOuyo=" + }, + "name": "p", + "type": { + "$ref": "AAAAAAGLW588ex/TTbE=" + } + } + ] + } + ] + }, + { + "_type": "UMLClass", + "_id": "AAAAAAGLW7IJnSdqiQ8=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Afficheur", + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGLW7Iw8ChUmxU=", + "_parent": { + "$ref": "AAAAAAGLW7IJnSdqiQ8=" + }, + "name": "afficher", + "parameters": [ + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW7N2fyivEtg=", + "_parent": { + "$ref": "AAAAAAGLW7Iw8ChUmxU=" + }, + "name": "lesPatient", + "type": "String" + }, + { + "_type": "UMLParameter", + "_id": "AAAAAAGLW7N2fyiws20=", + "_parent": { + "$ref": "AAAAAAGLW7Iw8ChUmxU=" + }, + "type": "void", + "direction": "return" + } + ] + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/.idea/.gitignore b/2A/Java/tp/1_tp/TP1/.idea/.gitignore new file mode 100755 index 0000000..26d3352 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/2A/Java/tp/1_tp/TP1/.idea/misc.xml b/2A/Java/tp/1_tp/TP1/.idea/misc.xml new file mode 100755 index 0000000..5295b2c --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/.idea/modules.xml b/2A/Java/tp/1_tp/TP1/.idea/modules.xml new file mode 100755 index 0000000..a465866 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/.idea/uiDesigner.xml b/2A/Java/tp/1_tp/TP1/.idea/uiDesigner.xml new file mode 100755 index 0000000..2b63946 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/.idea/vcs.xml b/2A/Java/tp/1_tp/TP1/.idea/vcs.xml new file mode 100755 index 0000000..bc59970 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/TP1.iml b/2A/Java/tp/1_tp/TP1/TP1.iml new file mode 100755 index 0000000..c90834f --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/TP1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/out/production/TP1/main/Main.class b/2A/Java/tp/1_tp/TP1/out/production/TP1/main/Main.class new file mode 100755 index 0000000..a8fdfe5 Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/out/production/TP1/main/Main.class differ diff --git a/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patient.class b/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patient.class new file mode 100755 index 0000000..42b5629 Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patient.class differ diff --git a/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patientheque.class b/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patientheque.class new file mode 100755 index 0000000..44aed39 Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/out/production/TP1/models/Patientheque.class differ diff --git a/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Afficheur.class b/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Afficheur.class new file mode 100755 index 0000000..c6324fe Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Afficheur.class differ diff --git a/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Saisisseur.class b/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Saisisseur.class new file mode 100755 index 0000000..7cbdd9e Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/out/production/TP1/utilitaires/Saisisseur.class differ diff --git a/2A/Java/tp/1_tp/TP1/src/main/Main.class b/2A/Java/tp/1_tp/TP1/src/main/Main.class new file mode 100755 index 0000000..1505c40 Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/src/main/Main.class differ diff --git a/2A/Java/tp/1_tp/TP1/src/main/Main.java b/2A/Java/tp/1_tp/TP1/src/main/Main.java new file mode 100755 index 0000000..f34ff41 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/src/main/Main.java @@ -0,0 +1,11 @@ +package main; + +import models.Patientheque; + +public class Main { + private Patientheque lesPatients = new Patientheque(); + public int main(){ + + return 0; + } +} diff --git a/2A/Java/tp/1_tp/TP1/src/models/Patient.class b/2A/Java/tp/1_tp/TP1/src/models/Patient.class new file mode 100755 index 0000000..c364827 Binary files /dev/null and b/2A/Java/tp/1_tp/TP1/src/models/Patient.class differ diff --git a/2A/Java/tp/1_tp/TP1/src/models/Patient.java b/2A/Java/tp/1_tp/TP1/src/models/Patient.java new file mode 100755 index 0000000..17e8d42 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/src/models/Patient.java @@ -0,0 +1,3 @@ +package models; + +public record Patient(String nom, String prenom, int age) {} \ No newline at end of file diff --git a/2A/Java/tp/1_tp/TP1/src/models/Patientheque.java b/2A/Java/tp/1_tp/TP1/src/models/Patientheque.java new file mode 100755 index 0000000..30c47f1 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/src/models/Patientheque.java @@ -0,0 +1,19 @@ +package models; + +import java.util.ArrayList; + +public class Patientheque { + public ArrayList listDePatients; + public void addPatient(Patient p){ + listDePatients.add(p); + } + public StringBuilder toString(Patient patient) { + StringBuilder total = new StringBuilder(listDePatients.get(0).toString()); + for (int i = 1; i < listDePatients.size(); ++i) { + total.append(listDePatients.get(i).toString()); + total.append("\n"); + //= new StringBuilder(listDePatients.get(i).toString()); + } + return total; + } +} diff --git a/2A/Java/tp/1_tp/TP1/src/utilitaires/Afficheur.java b/2A/Java/tp/1_tp/TP1/src/utilitaires/Afficheur.java new file mode 100755 index 0000000..abbebfc --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/src/utilitaires/Afficheur.java @@ -0,0 +1,11 @@ +package utilitaires; + +import models.Patient; + +import java.util.ArrayList; + +public class Afficheur { + public void afficherLesPatients(String string){ + System.out.println(); + } +} diff --git a/2A/Java/tp/1_tp/TP1/src/utilitaires/Saisisseur.java b/2A/Java/tp/1_tp/TP1/src/utilitaires/Saisisseur.java new file mode 100755 index 0000000..39b1019 --- /dev/null +++ b/2A/Java/tp/1_tp/TP1/src/utilitaires/Saisisseur.java @@ -0,0 +1,12 @@ +package utilitaires; + +import java.util.ArrayList; +import java.util.Scanner; + +public class Saisisseur { + public ArrayList saisirPatient(void){ + Scanner saisiePatient = new Scanner(System.in); + Afficheur.afficher("") + return saisiePatient; + } +} diff --git a/2A/Java/tp/2_tp/.idea/.gitignore b/2A/Java/tp/2_tp/.idea/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/2A/Java/tp/2_tp/.idea/2_tp.iml b/2A/Java/tp/2_tp/.idea/2_tp.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/2A/Java/tp/2_tp/.idea/2_tp.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/.idea/misc.xml b/2A/Java/tp/2_tp/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/2A/Java/tp/2_tp/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/.idea/modules.xml b/2A/Java/tp/2_tp/.idea/modules.xml new file mode 100644 index 0000000..5be316b --- /dev/null +++ b/2A/Java/tp/2_tp/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/.idea/vcs.xml b/2A/Java/tp/2_tp/.idea/vcs.xml new file mode 100644 index 0000000..4fce1d8 --- /dev/null +++ b/2A/Java/tp/2_tp/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/.idea/workspace.xml b/2A/Java/tp/2_tp/.idea/workspace.xml new file mode 100644 index 0000000..e339c70 --- /dev/null +++ b/2A/Java/tp/2_tp/.idea/workspace.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + 1698394730221 + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/Sujet.txt b/2A/Java/tp/2_tp/Sujet.txt new file mode 100644 index 0000000..0f7ce53 --- /dev/null +++ b/2A/Java/tp/2_tp/Sujet.txt @@ -0,0 +1,2 @@ +developper une app permettant a un gestionnaire de zoo de gerer les entrées sorties d'animaux dans son zoo. Il pourra a tout moment afficher l'etat (les infos) des animaux. En hiver, les animaux hiverne. + les oiseaux (cigogne, peroquet, ...) migrent du nord au sud du zoo. Les animaux à fourrure (ours, loups, ...) augmentent la densité de leur pelage. diff --git a/2A/Java/tp/2_tp/TP2.mdj b/2A/Java/tp/2_tp/TP2.mdj new file mode 100644 index 0000000..65e8560 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2.mdj @@ -0,0 +1,26 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true + } + ] + } + ] +} \ No newline at end of file diff --git a/2A/Java/tp/2_tp/TP2/.idea/.gitignore b/2A/Java/tp/2_tp/TP2/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/2A/Java/tp/2_tp/TP2/.idea/misc.xml b/2A/Java/tp/2_tp/TP2/.idea/misc.xml new file mode 100644 index 0000000..5295b2c --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/TP2/.idea/modules.xml b/2A/Java/tp/2_tp/TP2/.idea/modules.xml new file mode 100644 index 0000000..8fa7630 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/TP2/.idea/vcs.xml b/2A/Java/tp/2_tp/TP2/.idea/vcs.xml new file mode 100644 index 0000000..bc59970 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/TP2/TP2.iml b/2A/Java/tp/2_tp/TP2/TP2.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/TP2.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Animal.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Animal.class new file mode 100644 index 0000000..dd5ec02 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Animal.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalFourrure.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalFourrure.class new file mode 100644 index 0000000..03f9233 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalFourrure.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalTheque.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalTheque.class new file mode 100644 index 0000000..d755abe Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/AnimalTheque.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Oiseau.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Oiseau.class new file mode 100644 index 0000000..3c947cd Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/models/Oiseau.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Afficheur.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Afficheur.class new file mode 100644 index 0000000..88fd0a8 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Afficheur.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Menu.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Menu.class new file mode 100644 index 0000000..5a6d132 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Menu.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Saisisseur.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Saisisseur.class new file mode 100644 index 0000000..8661776 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Saisisseur.class differ diff --git a/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Suppresseur.class b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Suppresseur.class new file mode 100644 index 0000000..8e41266 Binary files /dev/null and b/2A/Java/tp/2_tp/TP2/out/production/TP2/utilitaires/Suppresseur.class differ diff --git a/2A/Java/tp/2_tp/TP2/src/main/Main.java b/2A/Java/tp/2_tp/TP2/src/main/Main.java new file mode 100644 index 0000000..6e8dccf --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/main/Main.java @@ -0,0 +1,26 @@ +package main; + +import models.Animal; +import models.AnimalFourrure; +import models.AnimalTheque; +import models.Oiseau; +import utilitaires.Afficheur; + +public class Main { + public static void testOiseau(){ + Animal oiseau = new Oiseau("sozio", 1); + System.out.println(oiseau.getNom()); + System.out.println(oiseau.getZone()); + System.out.println(oiseau.getClass()); + } + public static void testAnimalFourrure(){ + Animal af = new AnimalFourrure("ours", 1, 0); + System.out.println(af.getNom()); + System.out.println(af.getZone()); + System.out.println(af.getClass()); + } + + public static void main(String[] args){ + testAnimalFourrure(); + } +} diff --git a/2A/Java/tp/2_tp/TP2/src/models/Animal.java b/2A/Java/tp/2_tp/TP2/src/models/Animal.java new file mode 100644 index 0000000..55174d7 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/models/Animal.java @@ -0,0 +1,26 @@ +package models; + +import com.sun.management.UnixOperatingSystemMXBean; + +public abstract class Animal { + protected String nom; + protected int zone; + protected Animal(String nomAnimal, int zoneAnimal){ + this.nom = nomAnimal; + this.zone = zoneAnimal; + } + + public int getZone() { + return zone; + } + + public String getNom() { + return nom; + } + + protected void setZone(int zone) { + this.zone = zone; + } + + protected abstract void hiverner(); +} diff --git a/2A/Java/tp/2_tp/TP2/src/models/AnimalFourrure.java b/2A/Java/tp/2_tp/TP2/src/models/AnimalFourrure.java new file mode 100644 index 0000000..94be8a1 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/models/AnimalFourrure.java @@ -0,0 +1,23 @@ +package models; + +public class AnimalFourrure extends Animal { + private int densiteFourrure; + + public AnimalFourrure(String nomAnimal, int zoneAnimal, int densite) { + super(nomAnimal, zoneAnimal); + this.densiteFourrure = densite; + } + + public void setFourrure(int densite){ + this.densiteFourrure = densite; + } + + public void hiverner() { + if(this.densiteFourrure == 1){ + setFourrure(0); + } + else { + setFourrure(1); + } + } +} diff --git a/2A/Java/tp/2_tp/TP2/src/models/AnimalTheque.java b/2A/Java/tp/2_tp/TP2/src/models/AnimalTheque.java new file mode 100644 index 0000000..8ec0225 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/models/AnimalTheque.java @@ -0,0 +1,9 @@ +package models; + +import java.util.ArrayList; +import java.util.List; + +public class AnimalTheque { + public List lesAnimaux = new ArrayList<>(); + +} diff --git a/2A/Java/tp/2_tp/TP2/src/models/Oiseau.java b/2A/Java/tp/2_tp/TP2/src/models/Oiseau.java new file mode 100644 index 0000000..21ddaab --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/models/Oiseau.java @@ -0,0 +1,17 @@ +package models; + +public class Oiseau extends Animal{ + + public Oiseau(String nomAnimal, int zoneAnimal){ + super(nomAnimal, zoneAnimal); + } + + public void hiverner() { + if(this.zone == 0) { + super.setZone(1); + } + else { + super.setZone(0); + } + } +} diff --git a/2A/Java/tp/2_tp/TP2/src/utilitaires/Afficheur.java b/2A/Java/tp/2_tp/TP2/src/utilitaires/Afficheur.java new file mode 100644 index 0000000..912eca9 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/utilitaires/Afficheur.java @@ -0,0 +1,4 @@ +package utilitaires; + +public class Afficheur { +} diff --git a/2A/Java/tp/2_tp/TP2/src/utilitaires/Menu.java b/2A/Java/tp/2_tp/TP2/src/utilitaires/Menu.java new file mode 100644 index 0000000..f306a3d --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/utilitaires/Menu.java @@ -0,0 +1,4 @@ +package utilitaires; + +public class Menu { +} diff --git a/2A/Java/tp/2_tp/TP2/src/utilitaires/Saisisseur.java b/2A/Java/tp/2_tp/TP2/src/utilitaires/Saisisseur.java new file mode 100644 index 0000000..a415c05 --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/utilitaires/Saisisseur.java @@ -0,0 +1,4 @@ +package utilitaires; + +public class Saisisseur { +} diff --git a/2A/Java/tp/2_tp/TP2/src/utilitaires/Suppresseur.java b/2A/Java/tp/2_tp/TP2/src/utilitaires/Suppresseur.java new file mode 100644 index 0000000..ccccdde --- /dev/null +++ b/2A/Java/tp/2_tp/TP2/src/utilitaires/Suppresseur.java @@ -0,0 +1,4 @@ +package utilitaires; + +public class Suppresseur { +}