Www.ddss.arch.tue.nl 7M822 UML Sequence Diagrams 2 December 2010.

Slides:



Advertisements
Similar presentations
Interaction Diagrams (Sequence & Collaboration Diagram) © copyright 2001 SNU OOPSLA Lab.
Advertisements

Object-Oriented Software Engineering Visual OO Analysis and Design
System Sequence Diagrams
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Assess A Claim Object Interaction Diagrams. Object sequence Diagrams - Use case Sequence of events that occur during one particular execution of a system.
Software Engineering COMP 201
Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 5: Restaurant.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
Essentials of interaction diagrams Lecture 23 & 24.
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
Part 1 Structural Modeling Use case modeling
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
IELM 511: Information System design
© Copyright Eliyahu Brutman Programming Techniques Course.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Lab 6 CPIT 250 System Analysis and Design.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
7M822 UML Interaction Diagrams 25 November 2010.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
SE-565 Software System Requirements More UML Diagrams.
7M822 UML Sequence Diagrams 5 October 2009.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
Unified Modeling Language
SEQUENCE DIAGRAM Prepared by: T. Fatimah Alageel.
Interactions. 2 Objects communicate with each other by sending messages. Sending a message is another name for a member function call. –Some C++ examples.
Class, Sequence and UML Model.  Has actors and use cases.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction diagrams Sequence and collaboration diagrams.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 9: Interaction.
Object-Oriented Analysis and Design NGSSC Object-Oriented Scientific Programming, June 2012.
Computer Science 340 Software Design & Testing UML Sequence Diagrams.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
© 2008 Prentice Hall, Ovidiu Noran Lecture 7b 1 Modelling OO Logic Requirements: Sequence Diagrams and Activity Diagrams (Textbook Chapter 8, Appendix)
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Sequence Diagrams Sequence; Interaction Diagrams Behavioral Diagrams
Interaction Diagram Notation
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour UML Sequence Diagram.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
Design Jon Walker. More UML ● What is UML again?
(c) Addison Wesley Copyright © 2000 by Addison Wesley Version 1.0
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
(14-2) UML Instructor - Andrew O’Fallon CptS 122 (December 2, 2015) Washington State University.
Systems Analysis and Design in a Changing World, Fourth Edition
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
Chapter 3: Introducing the UML
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
1 Kyung Hee University Interaction Diagrams Spring 2001.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
Project 2: Phase 1 Submission 7 Late submissions 10% 10 No submissions 14% Better than project 1 phase 3 submissions 10-point bonus: If you catch the deadline.
CompSci 280 S Introduction to Software Development
Systems Analysis and Design in a Changing World, Fourth Edition
Embedded Systems Software Engineering
Dynamic Modeling of Banking System Case Study - I
Interactions.
Interaction diagrams.
Unified Modelling Language
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Interaction Diagrams Chapter 18.
CHAPTER 2 Object-Oriented Modeling Using UML (Continued)
Presentation transcript:

7M822 UML Sequence Diagrams 2 December 2010

7M822 UML Diagrams Structure diagram –Class diagram –Object diagram –Component diagram –Deployment diagram –Package diagram Behaviour diagram –Use Case diagram –Activity diagram –Interaction diagram Sequence diagram Communication diagram 2

7M822 In a nutshell: what are interactions? A collection of communications between instances, including all ways to affect instances, like operation invocation, as well as creation and destruction of instances The communications are partially ordered (in time) 3

7M822 Interaction Diagram Guide Show interactions between instances in the model –graph of instances (possibly including links) and stimuli –existing instances –creation and deletion of instances Kinds –Sequence diagram (temporal focus)  –Communication diagram (structural focus) 4

7M822 Interaction Diagrams 5 xyz Sequence Diagram a b c Communication Diagram xy z 1.1: a 1.2: c 1.1.1: b

7M822 Different Kinds of Arrows 6

7M822 Lifeline & Messages The vertical line is called the object’s lifeline. The lifeline represents the object’s life during the interaction. Each message is represented by an arrow between the lifelines of two objects. The order in which these messages occur is shown top to bottom. Each message is labeled at minimum with the message name; also arguments and some control information can be included. A self-back is a message that an object sends to itself, by sending the message arrow back to the same lifeline. 7

7M822 Sequence Diagram / Communication Diagram 8

7M822 Sequence Diagram vs. Communication Diagram Sequence diagrams are used when you want to look at the behavior of several objects within a single use case. Sequence diagrams are good at showing collaborations among the objects. Communication diagrams emphasize the data links between the various participants in the interaction. With communication diagrams we can show how the participants are linked together. 9

7M822 Elements Sequence Diagrams 10

7M822 Next Concepts Sequence Diagrams 1of2 11 control guard

7M822 Next Concepts Sequence Diagrams 2of2 12 { a b-a < 5 sec b b'-b < 1 sec b' } constraint

7M : Order Entry Window : Order Line: Order: Stock Item : Reorder Item : Delivery Item SEQUENCE DIAGRAM

7M : Transaction : Transaction Coordinator : first Transaction Checker : second Transaction Checker Concurrent Processes and Activations

7M : Transaction : Transaction Coordinator : first Transaction Checker : second Transaction Checker SEQUENCE DIAGRAM: Check Failure

7M Example: A Booking System

7M Use Case Description: Change Flt Itinerary Actors: traveler, client account db, airline reservation system Preconditions: Traveler has logged in Basic course: –Traveler selects ‘change flight itinerary’ option –System retrieves traveler’s account and flight itinerary from client account database –System asks traveler to select itinerary segment she wants to change; traveler selects itinerary segment. –System asks traveler for new departure and destination information; traveler provides information. –If flights are available then … –…–… –System displays transaction summary. Alternative course: –If no flights are available then…

7M Sequence Diagram: Change Flight Itinerary : Booking SystemTravelerAirline Reservation System change flight itinerary get customer account get itinerary present itinerary select segment present detailed info update information available flight Client Account DBMS

7M Collaboration Diagram: Change Flt Itinerary TravelerClient Account DBMSAirline Reservation System : Booking System 7: update information 2: get customer account 3: get itinerary 4: present itinerary 8: available flight 1: change flight itinerary 5: select segment 6: present detailed info