SlideShare a Scribd company logo
Object Oriented Software Modeling and Design  CE 350 Abdel-Karim Al-Tamimi, Ph.D. [email_address] http://faculty.yu.edu.jo/altamimi Al-Tamimi 2011 ©
Overview Interaction Diagrams: Sequence Diagram Collaboration Diagram Al-Tamimi 2011 ©
Interaction Diagrams Scenario modeling describes how the objects in a system interact with each other in a scenario A  scenario  is a sequence of events that occurs during one particular execution path within a use case of a system Each event involves the interaction of objects passing messages between them Al-Tamimi 2011 ©
Interaction Diagrams An interaction diagram can be used to model the collaborating objects in scenarios, showing the  objects involved in the scenario and  the messages sent and received by them  These objects may be external or internal to the system The messages represent the invocation of operations of the receiving objects Two kinds of interaction diagrams:  sequence diagrams  and  collaboration diagrams Sequence diagrams focus on the  time sequencing   of messages Collaboration diagrams focus on the  structural organization  of the links between collaborating objects Al-Tamimi 2011 ©
Interaction in UML Interaction diagram:  models the behavior of a group of objects that work together to achieve a user goal An  interaction  describes a series of messages that a selected set of participants   exchange within a situation limited in time The entire diagram represents one interaction, but can be using several messages Al-Tamimi 2011 ©
Sequence Diagram Sequence diagrams  emphasize the sequence in which messages are exchanged A sequence diagram helps us identify a set of collaborating objects involved in a scenario of a use case A sequence diagram has two dimensions: the vertical dimension and the horizontal dimension Object  icons are placed horizontally at the top of the sequence diagram, and messages are passed between them Al-Tamimi 2011 ©
Sequence Diagram: Example Al-Tamimi 2011 ©
Sequence Diagram: Example Al-Tamimi 2011 ©
Interaction Diagrams Notation in UML Al-Tamimi 2011 © Naming Format Notation An object of an unspecified class. A named object of a specified class. An unnamed object of a specified class.
Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category  Description Graphical Notations  Actor Object An external entity that interacts with the system Entity Object   An object that models the data in the system.  It often represents an object in the problem domain
Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category  Description Graphical Notations  Boundary Object An object that handles the communication between actor objects and the system.  Control Object    An object that models the flow of control and functionality that do not naturally belong to entity objects or boundary objects.
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Procedure call  or other nested flow of control The message sender waits for the completion of the procedure call of the message receiver (waits for a reply) Asynchronous communication The sender dispatches a message and immediately continues with the next step of execution (there are no reply arrows)
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Return message  Message returned from the procedure call Message with travel delay  The message will take a significant amount of time to arrive at the receiving object. (This is only used in sequence diagrams.)
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Lost Message The sender is known, the receiver is not Found Message The sender is unknown, and the receiver is known Create Message A message creates a new  instance
Messages Notations Summary Al-Tamimi 2011 ©
Sequence Diagram: Lifeline and Activation Al-Tamimi 2011 © Object with Lifeline Object with Activation Activation:  show the duration of the execution of a method in response to a message
Sequence Diagram: Branching Al-Tamimi 2011 © Conditional Message Transmission
Sequence Diagram: Iteration Al-Tamimi 2011 ©
Sequence Diagram: Alternate Message Reception Al-Tamimi 2011 ©
Sequence Diagram: Recursion Al-Tamimi 2011 ©
Example Al-Tamimi 2011 © Life line Creation Deletion
Example Al-Tamimi 2011 © Life line Activation iteration
Example Al-Tamimi 2011 © Life line collective iteration
Example Al-Tamimi 2011 © Concurrent Branch
Example Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Tips and Tricks: Return Type Two ways to show return type of a message Al-Tamimi 2011 ©
Tips and Tricks: Object Destruction Al-Tamimi 2011 ©
Tips and Tricks: Iteration (looping) with A Condition Al-Tamimi 2011 ©
Tips and Tricks: Optional/Conditional Messages Al-Tamimi 2011 ©
Tips and Tricks: Conditional Messages (Mutual Exclusive) Al-Tamimi 2011 ©
Tips and Tricks: Looping Using Explicit Notations Al-Tamimi 2011 ©
Tips and Tricks: Looping Using Implicit Notations Al-Tamimi 2011 ©
Tips and Tricks: Nesting of Frames Al-Tamimi 2011 ©
Tips and Tricks: Relating Interaction Diagrams (Using Ref) / Interaction Occurrence Al-Tamimi 2011 ©
Tips and  Tricks: Polymorphic Message Al-Tamimi 2011 ©
Tips and Tricks: State Invariant Al-Tamimi 2011 ©
Tips and Tricks: State Invariant  Al-Tamimi 2011 ©
Tips and Tricks: Parallel Al-Tamimi 2011 ©
Tips and Tricks: Negative Operator/Invalid Operation Al-Tamimi 2011 ©
Tips and Tricks: Critical Region/Atomic Al-Tamimi 2011 ©
Tips and Tricks: Decomposition Al-Tamimi 2011 ©
Tips and Tricks: Continuations Al-Tamimi 2011 ©
Tips and Tricks: Continuations Al-Tamimi 2011 ©
Tips and Tricks: Hard Timing Requirements Al-Tamimi 2011 ©
Tips and Tricks: Break Fragment Al-Tamimi 2011 ©
Collaboration Diagram Collaboration  diagrams provide another way to model a scenario. Shows the roles of objects and associations of objects in an instance of collaboration Focus on  structures of the objects  rather than  temporal sequence  of operations In a collaboration diagram, each object is represented by an object icon, and links are used to indicate communication paths on which messages are transmitted Messages are presented in the same way as those in a sequence diagram; in fact, sequence diagrams and collaboration diagrams  are semantically equivalent  Al-Tamimi 2011 ©
Example: Telephone System Al-Tamimi 2011 ©
Example: Message with Durations Al-Tamimi 2011 ©
Example: Printing Transcripts Al-Tamimi 2011 ©
Example: Printing Transcripts Al-Tamimi 2011 ©
Example: from Java IO API Al-Tamimi 2011 ©
Example: ATM Machine The  ATM  prompts the user to insert a card The  user  inserts an  ATM  card The ATM prompts the user to  input the PIN The user enters the  PIN The ATM asks the  bank consortium  to verify the ATM card number and PIN The bank consortium verifies the ATM card number and PIN with bank The bank notifies the  bank consortium  that the PIN is correct The bank consortium notifies the ATM the PIN is correct The  ATM prompts  the user to select a service The user selects the withdraw cash service The ATM prompts the user to  enter the amount  to withdraw Al-Tamimi 2011 ©
Example: ATM Machine The  user  enters the amount to withdraw. The  ATM  asks the bank consortium to process the request. The  bank consortium  forwards the request to bank. The bank  confirms the successful execution of the request to the bank consortium which in turn notifies the ATM that the request has been approved The ATM  displays  the successful transaction screen,  ejects card  and then  dispenses  cash requested The  ATM shows  the main menu to the user for selecting the next service Al-Tamimi 2011 ©
ATM Machine: Part1 Al-Tamimi 2011 ©
ATM Machine-Part2 Al-Tamimi 2011 ©
Soft-Drink Vending Machine Sequence Diagram Al-Tamimi 2011 ©
Soft-Drink Vending Machine Collaboration Diagram Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Resources Chapter 4, Object-Oriented Technology: From diagram to code with Visual Paradigm for UML UML 2 Certification Guide http://www.informit.com/articles/article.aspx?p=360441&seqNum=5 UML-2 in a nutshell, chapter 10 http://www.tracemodeler.com/gallery/ http://www.agilemodeling.com/artifacts/communicationDiagram.htm Al-Tamimi 2011 ©

More Related Content

What's hot (19)

PPT
UML Diagrams
Kartik Raghuvanshi
 
PPT
Usecase Presentation
Rungsun Promprasith
 
PPTX
Unified Modeling Language
Khushboo Wadhwani
 
PPT
Intro to UML - Use Case diagrams
jsm1979
 
PPTX
Use case model
Ashwani Kumar
 
PPT
Introducing Uml And Development Process
Terry Cho
 
PPT
Domain model
Eagle Eyes
 
PDF
UML Diagrams- Unified Modeling Language Introduction
Ramakant Soni
 
PPTX
Use case diagram
City University
 
PPTX
Unified modelling language (UML)
Hirra Sultan
 
PPT
Uml Omg Fundamental Certification 1
Ricardo Quintero
 
PPTX
Uml
Vishwa Mohan
 
PPT
Unified Modeling Language
Debajyoti Biswas
 
PPTX
Uml Diagrams
Nirmal Sharma
 
PPT
Object Oriented Modeling and Design with UML
Malek Sumaiya
 
PPTX
UML Diagrams
Rahul Pola
 
PDF
Lecture02
artgreen
 
PDF
Design UML diagrams
Neeraj Kaushik
 
PPT
UML diagrams and symbols
Kumar
 
UML Diagrams
Kartik Raghuvanshi
 
Usecase Presentation
Rungsun Promprasith
 
Unified Modeling Language
Khushboo Wadhwani
 
Intro to UML - Use Case diagrams
jsm1979
 
Use case model
Ashwani Kumar
 
Introducing Uml And Development Process
Terry Cho
 
Domain model
Eagle Eyes
 
UML Diagrams- Unified Modeling Language Introduction
Ramakant Soni
 
Use case diagram
City University
 
Unified modelling language (UML)
Hirra Sultan
 
Uml Omg Fundamental Certification 1
Ricardo Quintero
 
Unified Modeling Language
Debajyoti Biswas
 
Uml Diagrams
Nirmal Sharma
 
Object Oriented Modeling and Design with UML
Malek Sumaiya
 
UML Diagrams
Rahul Pola
 
Lecture02
artgreen
 
Design UML diagrams
Neeraj Kaushik
 
UML diagrams and symbols
Kumar
 

Similar to Lecture07 (20)

PPTX
The Ultimate Sequence Diagram Tutorial
Creately
 
PPTX
The Unified Language Modeling from APSI Course
hilman49208
 
PPT
Software Engineering Lec 7-uml-
Taymoor Nazmy
 
PPTX
An introduction to uml
Tony Huynh
 
PPT
OOAD with UML (Interaction Diagramming)
jsm1979
 
PPTX
Lecture 17 -18 - Sequence Diagram - Class Diagram.pptx
i210865
 
PDF
UML-Advanced Software Engineering
Amit Singh
 
PPTX
08.Sequence Diagrams.pptx in cS to describe
bashar4041
 
PPT
Lecture09
artgreen
 
PPT
Lecture09
artgreen
 
PPT
Slide 4 Interaction Diagram
Niloy Rocker
 
PPTX
Interaction Modeling
Hemant Sharma
 
PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
PPT
Uml diagrams
suganya2411
 
PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
PPT
07 interaction diagrams
Baskarkncet
 
PPTX
Basic Behavioral Modeling
AMITJain879
 
PPT
Lecture11 use case sequence diagram
Shahid Riaz
 
PDF
Object-Oriented Analysis and Design report
ritikapoudel2017
 
The Ultimate Sequence Diagram Tutorial
Creately
 
The Unified Language Modeling from APSI Course
hilman49208
 
Software Engineering Lec 7-uml-
Taymoor Nazmy
 
An introduction to uml
Tony Huynh
 
OOAD with UML (Interaction Diagramming)
jsm1979
 
Lecture 17 -18 - Sequence Diagram - Class Diagram.pptx
i210865
 
UML-Advanced Software Engineering
Amit Singh
 
08.Sequence Diagrams.pptx in cS to describe
bashar4041
 
Lecture09
artgreen
 
Lecture09
artgreen
 
Slide 4 Interaction Diagram
Niloy Rocker
 
Interaction Modeling
Hemant Sharma
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
Uml diagrams
suganya2411
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
07 interaction diagrams
Baskarkncet
 
Basic Behavioral Modeling
AMITJain879
 
Lecture11 use case sequence diagram
Shahid Riaz
 
Object-Oriented Analysis and Design report
ritikapoudel2017
 
Ad

More from artgreen (12)

PDF
Ce350 class project_spring2011_v1.5
artgreen
 
PPT
Lecture10.5
artgreen
 
PPT
Lecture10
artgreen
 
PPT
Lecture08 examples
artgreen
 
PPT
Lecture08
artgreen
 
PPT
Lecture07 examples
artgreen
 
PPT
Lecture06
artgreen
 
PPT
Lecture05
artgreen
 
PPT
Lecture05
artgreen
 
PPT
Lecture05
artgreen
 
PPT
Lecture04- Use Case Diagrams
artgreen
 
PPT
Lecture01
artgreen
 
Ce350 class project_spring2011_v1.5
artgreen
 
Lecture10.5
artgreen
 
Lecture10
artgreen
 
Lecture08 examples
artgreen
 
Lecture08
artgreen
 
Lecture07 examples
artgreen
 
Lecture06
artgreen
 
Lecture05
artgreen
 
Lecture05
artgreen
 
Lecture05
artgreen
 
Lecture04- Use Case Diagrams
artgreen
 
Lecture01
artgreen
 
Ad

Recently uploaded (20)

PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
PDF
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
PPTX
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
PDF
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
PDF
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
PPTX
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PDF
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
PPTX
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PDF
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
PDF
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
PDF
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
PPTX
Matatag Curriculum English 8-Week 1 Day 1-5.pptx
KirbieJaneGasta1
 
PPTX
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
PPT
21st Century Literature from the Philippines and the World QUARTER 1/ MODULE ...
isaacmendoza76
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
Matatag Curriculum English 8-Week 1 Day 1-5.pptx
KirbieJaneGasta1
 
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
21st Century Literature from the Philippines and the World QUARTER 1/ MODULE ...
isaacmendoza76
 

Lecture07

  • 1. Object Oriented Software Modeling and Design CE 350 Abdel-Karim Al-Tamimi, Ph.D. [email_address] http://faculty.yu.edu.jo/altamimi Al-Tamimi 2011 ©
  • 2. Overview Interaction Diagrams: Sequence Diagram Collaboration Diagram Al-Tamimi 2011 ©
  • 3. Interaction Diagrams Scenario modeling describes how the objects in a system interact with each other in a scenario A scenario is a sequence of events that occurs during one particular execution path within a use case of a system Each event involves the interaction of objects passing messages between them Al-Tamimi 2011 ©
  • 4. Interaction Diagrams An interaction diagram can be used to model the collaborating objects in scenarios, showing the objects involved in the scenario and the messages sent and received by them These objects may be external or internal to the system The messages represent the invocation of operations of the receiving objects Two kinds of interaction diagrams: sequence diagrams and collaboration diagrams Sequence diagrams focus on the time sequencing of messages Collaboration diagrams focus on the structural organization of the links between collaborating objects Al-Tamimi 2011 ©
  • 5. Interaction in UML Interaction diagram: models the behavior of a group of objects that work together to achieve a user goal An interaction describes a series of messages that a selected set of participants exchange within a situation limited in time The entire diagram represents one interaction, but can be using several messages Al-Tamimi 2011 ©
  • 6. Sequence Diagram Sequence diagrams emphasize the sequence in which messages are exchanged A sequence diagram helps us identify a set of collaborating objects involved in a scenario of a use case A sequence diagram has two dimensions: the vertical dimension and the horizontal dimension Object icons are placed horizontally at the top of the sequence diagram, and messages are passed between them Al-Tamimi 2011 ©
  • 7. Sequence Diagram: Example Al-Tamimi 2011 ©
  • 8. Sequence Diagram: Example Al-Tamimi 2011 ©
  • 9. Interaction Diagrams Notation in UML Al-Tamimi 2011 © Naming Format Notation An object of an unspecified class. A named object of a specified class. An unnamed object of a specified class.
  • 10. Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category Description Graphical Notations Actor Object An external entity that interacts with the system Entity Object   An object that models the data in the system. It often represents an object in the problem domain
  • 11. Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category Description Graphical Notations Boundary Object An object that handles the communication between actor objects and the system. Control Object   An object that models the flow of control and functionality that do not naturally belong to entity objects or boundary objects.
  • 12. UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Procedure call or other nested flow of control The message sender waits for the completion of the procedure call of the message receiver (waits for a reply) Asynchronous communication The sender dispatches a message and immediately continues with the next step of execution (there are no reply arrows)
  • 13. UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Return message Message returned from the procedure call Message with travel delay The message will take a significant amount of time to arrive at the receiving object. (This is only used in sequence diagrams.)
  • 14. UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Lost Message The sender is known, the receiver is not Found Message The sender is unknown, and the receiver is known Create Message A message creates a new instance
  • 15. Messages Notations Summary Al-Tamimi 2011 ©
  • 16. Sequence Diagram: Lifeline and Activation Al-Tamimi 2011 © Object with Lifeline Object with Activation Activation: show the duration of the execution of a method in response to a message
  • 17. Sequence Diagram: Branching Al-Tamimi 2011 © Conditional Message Transmission
  • 18. Sequence Diagram: Iteration Al-Tamimi 2011 ©
  • 19. Sequence Diagram: Alternate Message Reception Al-Tamimi 2011 ©
  • 20. Sequence Diagram: Recursion Al-Tamimi 2011 ©
  • 21. Example Al-Tamimi 2011 © Life line Creation Deletion
  • 22. Example Al-Tamimi 2011 © Life line Activation iteration
  • 23. Example Al-Tamimi 2011 © Life line collective iteration
  • 24. Example Al-Tamimi 2011 © Concurrent Branch
  • 28. Tips and Tricks: Return Type Two ways to show return type of a message Al-Tamimi 2011 ©
  • 29. Tips and Tricks: Object Destruction Al-Tamimi 2011 ©
  • 30. Tips and Tricks: Iteration (looping) with A Condition Al-Tamimi 2011 ©
  • 31. Tips and Tricks: Optional/Conditional Messages Al-Tamimi 2011 ©
  • 32. Tips and Tricks: Conditional Messages (Mutual Exclusive) Al-Tamimi 2011 ©
  • 33. Tips and Tricks: Looping Using Explicit Notations Al-Tamimi 2011 ©
  • 34. Tips and Tricks: Looping Using Implicit Notations Al-Tamimi 2011 ©
  • 35. Tips and Tricks: Nesting of Frames Al-Tamimi 2011 ©
  • 36. Tips and Tricks: Relating Interaction Diagrams (Using Ref) / Interaction Occurrence Al-Tamimi 2011 ©
  • 37. Tips and Tricks: Polymorphic Message Al-Tamimi 2011 ©
  • 38. Tips and Tricks: State Invariant Al-Tamimi 2011 ©
  • 39. Tips and Tricks: State Invariant Al-Tamimi 2011 ©
  • 40. Tips and Tricks: Parallel Al-Tamimi 2011 ©
  • 41. Tips and Tricks: Negative Operator/Invalid Operation Al-Tamimi 2011 ©
  • 42. Tips and Tricks: Critical Region/Atomic Al-Tamimi 2011 ©
  • 43. Tips and Tricks: Decomposition Al-Tamimi 2011 ©
  • 44. Tips and Tricks: Continuations Al-Tamimi 2011 ©
  • 45. Tips and Tricks: Continuations Al-Tamimi 2011 ©
  • 46. Tips and Tricks: Hard Timing Requirements Al-Tamimi 2011 ©
  • 47. Tips and Tricks: Break Fragment Al-Tamimi 2011 ©
  • 48. Collaboration Diagram Collaboration diagrams provide another way to model a scenario. Shows the roles of objects and associations of objects in an instance of collaboration Focus on structures of the objects rather than temporal sequence of operations In a collaboration diagram, each object is represented by an object icon, and links are used to indicate communication paths on which messages are transmitted Messages are presented in the same way as those in a sequence diagram; in fact, sequence diagrams and collaboration diagrams are semantically equivalent Al-Tamimi 2011 ©
  • 49. Example: Telephone System Al-Tamimi 2011 ©
  • 50. Example: Message with Durations Al-Tamimi 2011 ©
  • 51. Example: Printing Transcripts Al-Tamimi 2011 ©
  • 52. Example: Printing Transcripts Al-Tamimi 2011 ©
  • 53. Example: from Java IO API Al-Tamimi 2011 ©
  • 54. Example: ATM Machine The ATM prompts the user to insert a card The user inserts an ATM card The ATM prompts the user to input the PIN The user enters the PIN The ATM asks the bank consortium to verify the ATM card number and PIN The bank consortium verifies the ATM card number and PIN with bank The bank notifies the bank consortium that the PIN is correct The bank consortium notifies the ATM the PIN is correct The ATM prompts the user to select a service The user selects the withdraw cash service The ATM prompts the user to enter the amount to withdraw Al-Tamimi 2011 ©
  • 55. Example: ATM Machine The user enters the amount to withdraw. The ATM asks the bank consortium to process the request. The bank consortium forwards the request to bank. The bank confirms the successful execution of the request to the bank consortium which in turn notifies the ATM that the request has been approved The ATM displays the successful transaction screen, ejects card and then dispenses cash requested The ATM shows the main menu to the user for selecting the next service Al-Tamimi 2011 ©
  • 56. ATM Machine: Part1 Al-Tamimi 2011 ©
  • 58. Soft-Drink Vending Machine Sequence Diagram Al-Tamimi 2011 ©
  • 59. Soft-Drink Vending Machine Collaboration Diagram Al-Tamimi 2011 ©
  • 61. Resources Chapter 4, Object-Oriented Technology: From diagram to code with Visual Paradigm for UML UML 2 Certification Guide http://www.informit.com/articles/article.aspx?p=360441&seqNum=5 UML-2 in a nutshell, chapter 10 http://www.tracemodeler.com/gallery/ http://www.agilemodeling.com/artifacts/communicationDiagram.htm Al-Tamimi 2011 ©