Www.ddss.arch.tue.nl 7M822 UML Sequence Diagrams 5 October 2009.

Slides:



Advertisements
Similar presentations
UML Use Case Diagram / Use Case Text / Activity Diagram
Advertisements

Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Jan 15, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration: a simple cash-only success scenario of Process Sale.
Assess A Claim Object Interaction Diagrams. Object sequence Diagrams - Use case Sequence of events that occur during one particular execution of a system.
Jan Ron McFadyen1 Consider a simple cash-only Process Sale scenario 1. Customer arrives at a POS checkout with goods and/or services to purchase.
Software Engineering COMP 201
Systems Analysis and Design in a Changing World, Fourth Edition
Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
7M822 UML Sequence Diagrams 2 December 2010.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Bouwkundige Informatiesystemen ADMS 2004 UML part 1 Jan Dijkstra - 2 augustus 2004.
Class Diagram & Object Diagram
Use Case Modelling.
ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 1 Jan Dijkstra - 9 oktober 2006 ADMS-BIS.
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
7M822 UML Activity Diagrams 6 October 2008.
Lab 6 CPIT 250 System Analysis and Design.
Use Case Diagrams. Use Case Use case A view to system seen from outside(user) User’s requirements on system A set of scenario for an actor to achieve.
7M822 UML Interaction Diagrams 25 November 2010.
03/12/2001 © Bennett, McRobb and Farmer Use Case Diagrams Based on Chapter 6 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
SE-565 Software System Requirements More UML Diagrams.
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
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP. MOST students WILL be able to Explain.
Sequence Diagram Tutorial
1 Object Oriented Analysis and Design. 2 Object-Oriented Analysis  Statement of what our client wants Object-Oriented Design  How to provide it using.
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 Sequence Diagrams (Based on Stevens and Pooley (2006, Chapters 9, 10) and Fowler (2004, Chapter 4)) David Meredith Aalborg University.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
1 A Student Guide to Object- Oriented Development Chapter 6 Identifying Functionality.
1 UML Sequence Diagrams UML Distilled, Third Edition, Chapter 4 M. Fowler.
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
(c) Addison Wesley Copyright © 2000 by Addison Wesley Version 1.0
Michael Schloh von Bennewitz 1. Oktober 2002 The Unified Modeling Language Overview of theory and practice of the OMG Unified Modeling.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
Systems Analysis and Design in a Changing World, Fourth Edition
A Well Designed Web Application The Benefits of Object Oriented Analysis and Design Simone Becker
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
Chapters 10, 11 SSD (Revision) SD DCD Exam Object-Oriented Design.
UML (Unified Modeling Language)
Chapter 3: Introducing the UML
More on UML 1. 1.Use-case diagram 2.Class diagram [Object diagram] (static) 1.1 Domain/analysis model – of reality 1.2 Design model – of decisions 3.
Sequence Diagram Lecture # 1. Sequence Diagram Definition A Sequence diagram is an interaction diagram that shows how the objects and classes involved.
Introduction to UML.
Embedded Systems Software Engineering
Evolution of UML.
UML Modeling Sequence diagram
Unified Modeling Language
COMP 2710 Software Construction Sequence Diagrams (cont.)
Prepared By Sidra Noureen
UML dynamic Modeling (Behavior Diagram)
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
Princess Nourah bint Abdulrahman University
Classification of UML Diagrams
Interaction diagrams.
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
CIS 375 Bruce R. Maxim UM-Dearborn
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
CIS 375 Bruce R. Maxim UM-Dearborn
Presentation transcript:

7M822 UML Sequence Diagrams 5 October 2009

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 Collaboration diagram 2

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 Collaboration diagram 3

7M822 Behaviour modelling Behaviour models are used to describe the overall behaviour of the system. Objects interact to implement behaviour. This interaction can be described in two complementary ways, one of them is centred on individual objects and the other on a collection of cooperating objects. 4

7M822 from: Fowler & Scott UML distilled, 2 nd edition. 5

7M822 Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behaviour. Two kinds of interaction diagrams: –sequence diagrams –collaboration diagrams 6

7M822 from: Fowler & Scott UML distilled, 2 nd edition. 7

7M822 Sequence diagram A sequence diagram captures the behaviour of a scenario. The diagram shows a number of objects and the messages that are passed between these objects within the use case. A sequence diagram shows a set of messages arranged in time sequence. 8

7M822 Concepts sequence diagrams 9

7M822 Concepts sequence diagrams elementary message activation synchronic message return lifeline object control guard 10

7M822 Concepts sequence diagrams constraint 11

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. 12

7M822 Elements sequence diagrams 13

7M822 from: Fowler & Scott UML distilled, 2 nd edition. 14

7M822 from: Fowler & Scott UML distilled, 2 nd edition. 15

7M822 from: Fowler & Scott UML distilled, 2 nd edition. 16

7M822 NS Ticket service Take ticket Destination 17

7M822 Class diagram of ‘NS ticket service’ including the classes ‘Ticket’ and ‘Destination’ 18

7M822 NS Ticket machine – use case text Use Case Buy OV Ticket Actors Traveller Preconditions Traveller has a valid pass Description 1.Ticket device expects destination code 2.Traveller enters destination code 3.Extension point: NS ticket 4.Ticket device checks code and calculates the charge. Shows destination code & fare. Activates ticket machine for paying 5.Traveller pays (use case: Pay ticket) 6.Ticket device print and supplies ticket 7.Traveller takes ticket Extension Destination code = NS station. 3a. Ticket device expects ticket type 3b. Traveller enters Single/Return, Discount Y/N, Class Exceptions Traveller interrupt the interaction or walk away Traveller enters an incorrect destination code Payment is not finished off successful Result Traveller has ticket. (NS can look forward to the payment) 19

7M822 Sequence diagram – Buy ticket 20

7M822 Elevator Example Scenario User pressed floor button Elevator system detects floor button pressed Elevator moves to floor Elevator open doors User gets in and press elevator button Elevator moves to required floor Elevator open doors User gets out Elevator close doors 21