SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
Université Sultan My Slimane
Ecole Nationale des Sciences Appliquées
ENSA Khouribga
UML 1 2020-2021
TD3: Diagramme d'activités, diagramme d'objet et diagrammes d'interaction
Exercice1: Diagramme d'activités
Une agence de voyage organise des voyages et gère le transport, l’hébergement et offre la
possibilité à ses clients de disposer d’un taxi à l’arrivée du voyage pour se rendre à l’hôtel.
Certains clients demandent des factures détaillées. Les voyages peuvent se faire soit par train,
soit par avion.
Elaborer le diagramme d'activités de tous les cas d'utilisation
Exercice2: Diagramme d'objet
L'hôtel "Sofitel" dont le gérant s'appelle Mr "Ahmed X" possède 200 chambres. L'une des
chambres est occupée par Mr "Yassir Y".
Question: Modéliser cette situation à l'aide d'un diagramme d'objets
Exercice3: Diagramme de séquence
Le déroulement normal d'utilisation d'une caisse enregistreuse est le suivant :
1. Un client arrive à la caisse avec des articles
2. Le caissier enregistre le numéro d'identification de chaque article, ainsi que la quantité
si celle-ci est supérieure à 1
3. La caisse affiche le prix de chaque article et son libellé
4. Lorsque tous les articles ont été enregistrés, le caissier signale la fin de la vente
5. La caisse affiche le total des achats
6. Le client paye en liquide
7. Le caissier encaisse l'argent et la caisse indique le montant éventuel à rendre au client.
8. La caisse enregistre la vente et imprime un ticket
9. Le caissier transmet le ticket imprimé au client
Question1: Modéliser ce déroulement à l'aide d'un diagramme de séquence.
On suppose que le client peut présenter des coupons de réduction avant le paiement. Lorsque
le paiement est terminé, la caisse transmet les informations relatives aux articles vendus au
système de gestion des stocks. Tous les matins, le responsable du magasin initialise les caisses
pour la journée.
Question 2: Modifier le diagramme de séquence pour prendre en considération les nouvelles
informations.
Université Sultan My Slimane
Ecole Nationale des Sciences Appliquées
ENSA Khouribga
UML 2 2020-2021
Exercice4: Diagramme de communication
On s'intéresse à la modélisation des différents objets qui concourent à l'activité d'un magasin
de vente de glace. Le processus est le suivant:
1. Le client demande au caissier des renseignements sur les différentes compositions des
parfums de glace.
2. Le caissier lui donne toutes les informations nécessaires.
3. Le client commande la composition de son choix et le caissier imprime le ticket de la
commande pour le donner au glacier.
4. Le caissier édite le reçu correspondant
5. Le glacier prépare la composition de parfums et archive en même temps le ticket de la
commande, puis remet la composition au caissier.
6. Le caissier remet le reçu au client pour règlement.
7. Une fois la commande réglée, le client récupère sa glace et quitte le magasin.
Question: Modéliser cette situation à l'aide d'un diagramme de communication

Contenu connexe

En vedette

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

En vedette (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Td3 uml zero to hero

  • 1. Université Sultan My Slimane Ecole Nationale des Sciences Appliquées ENSA Khouribga UML 1 2020-2021 TD3: Diagramme d'activités, diagramme d'objet et diagrammes d'interaction Exercice1: Diagramme d'activités Une agence de voyage organise des voyages et gère le transport, l’hébergement et offre la possibilité à ses clients de disposer d’un taxi à l’arrivée du voyage pour se rendre à l’hôtel. Certains clients demandent des factures détaillées. Les voyages peuvent se faire soit par train, soit par avion. Elaborer le diagramme d'activités de tous les cas d'utilisation Exercice2: Diagramme d'objet L'hôtel "Sofitel" dont le gérant s'appelle Mr "Ahmed X" possède 200 chambres. L'une des chambres est occupée par Mr "Yassir Y". Question: Modéliser cette situation à l'aide d'un diagramme d'objets Exercice3: Diagramme de séquence Le déroulement normal d'utilisation d'une caisse enregistreuse est le suivant : 1. Un client arrive à la caisse avec des articles 2. Le caissier enregistre le numéro d'identification de chaque article, ainsi que la quantité si celle-ci est supérieure à 1 3. La caisse affiche le prix de chaque article et son libellé 4. Lorsque tous les articles ont été enregistrés, le caissier signale la fin de la vente 5. La caisse affiche le total des achats 6. Le client paye en liquide 7. Le caissier encaisse l'argent et la caisse indique le montant éventuel à rendre au client. 8. La caisse enregistre la vente et imprime un ticket 9. Le caissier transmet le ticket imprimé au client Question1: Modéliser ce déroulement à l'aide d'un diagramme de séquence. On suppose que le client peut présenter des coupons de réduction avant le paiement. Lorsque le paiement est terminé, la caisse transmet les informations relatives aux articles vendus au système de gestion des stocks. Tous les matins, le responsable du magasin initialise les caisses pour la journée. Question 2: Modifier le diagramme de séquence pour prendre en considération les nouvelles informations.
  • 2. Université Sultan My Slimane Ecole Nationale des Sciences Appliquées ENSA Khouribga UML 2 2020-2021 Exercice4: Diagramme de communication On s'intéresse à la modélisation des différents objets qui concourent à l'activité d'un magasin de vente de glace. Le processus est le suivant: 1. Le client demande au caissier des renseignements sur les différentes compositions des parfums de glace. 2. Le caissier lui donne toutes les informations nécessaires. 3. Le client commande la composition de son choix et le caissier imprime le ticket de la commande pour le donner au glacier. 4. Le caissier édite le reçu correspondant 5. Le glacier prépare la composition de parfums et archive en même temps le ticket de la commande, puis remet la composition au caissier. 6. Le caissier remet le reçu au client pour règlement. 7. Une fois la commande réglée, le client récupère sa glace et quitte le magasin. Question: Modéliser cette situation à l'aide d'un diagramme de communication