Chapitre IV Autres diagrammes UML
Transcription
Chapitre IV Autres diagrammes UML
Chapitre IV Autres diagrammes UML 1 Plan du chapitre IV IV. Autres diagrammes UML 1. Object diagrams 2. State machine diagram 3. Deployment diagram 4. Composite structure diagram 5. Component diagram 6. Interaction overview diagram 7. Timing diagrams 2 IV. Autres diagrammes UML 1. Object diagrams 3 IV.1. Object diagrams : exemple Groupe * localisation enfants 0..1 Individu parent Organisation R&D : Organisation localisation = "Paris" parent outils : Organization localisation = "Nantes" apps : Organisation localisation = "Lyon" parent Jean : Individu localisation = "Angers" Robert : Individu localisation = "Angers" 4 IV. Autres diagrammes UML 2. State machine diagram 5 IV.2. State machine diagram : exemple Initial state State décrocher Inactif Actif raccrocher Event Transition 6 IV.2. State machine diagram : exemple Ouvert coffre fermé Clé tournée [bougie en place] / ouvrir coffre Attente bougie retirée [porte fermée] / révéler serrure Serrure Clé tournée [bougie sortie] / envoyer monstre Event Guard Activity 7 IV.2. State machine diagram : super-état Montrer connexions sauver nouvelle annuler Entrer détails connexion next Entrer numéro Choisir Seul next Entrer nom téléphone ou Partagé back back 8 IV. Autres diagrammes UML 3. Deployment diagram 9 IV.3. Deployment diagram : exemple BrowserClient Rich Client {OS = Windows} browser Application server herculesClient.exe EJB Container Deployed artifact Communication path herculesBase.ear herculesAR.ear http/Internet Tagged value http/LAN Web server {OS = Solaris} {web server = apache} {number deployed = 3} Execution environment node JDBC Java RMI/LAN Oracle DBMS Device node herculesWeb.war 10 IV. Autres diagrammes UML 4. Composite structure diagram 11 IV.4. Composite structure diagram : exemple TV control UI TV control API Provided interface TV viewer diplay tuning picture stream Required interface 12 IV. Autres diagrammes UML 5. Interaction overview diagram 13 IV.5. Interaction overview diagram : exemple sd :Client :DataBase new :RapportComm Formatter le rapport [donnée interne] select ... sd :XmlParser load parse ref [donnée externe] :Client getInfos ... new :RapportComm 14 IV. Autres diagrammes UML 6. Timing diagram 15 IV.6. Timing diagram : exemple State Event PlaqueChauffante Pompe eauVide On Off State change On Off {<15m} {>10s} Object Timing constraint 16 IV.6. Timing diagram : exemple State Event PlaqueChauffante Pompe eauVide Off On Off State change Off On Off {<15m} {>10s} Object Timing constraint 17