SENG 403 SENG 403 – Winter 2012.  Brief introduction to SSD  Example (A sales systems (Cashier))  Example (Monopoly game) SENG 403 – Winter 2012.

Slides:



Advertisements
Similar presentations
Object Design Examples with GRASP
Advertisements

Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
System Sequence Diagrams
Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
Ana M. Fernández  A UML diagram that depicts: ◦ interactions between objects. ◦ how the business currently works by showing how various.
Jan 15, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration: a simple cash-only success scenario of Process Sale.
Sept Ron McFadyen Interaction Diagrams - Chapter 15 Describe/illustrate sequence of message exchanges among objects that are working together.
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.
Drawing System Sequence Diagrams
January Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Elaboration Iteration 1: a simple cash-only success scenario of.
Chapter 10 System Sequence Diagrams. What is a System Sequence Diagram? A way of modeling input and output events related to systems It is a picture that.
Sept Ron McFadyen Interaction Diagrams - Chapter 15 Describe/illustrate sequence of message exchanges among objects that are working together.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
NJIT Drawing System Sequence Diagrams Chapter 10 Applying UML and Patterns Craig Larman Presented by Anuradha Dharani.
Object-Oriented Analysis and Design
Systems Analysis and Design in a Changing World, 6th Edition
Sept Ron McFadyen1 Extend Relationship.
Designing with Interaction and Design Class Diagrams Chapters 15 & 16 Applying UML and Patterns Craig Larman With some ideas from students in George Blank’s.
LECTURE 5 SEQUENCE DIAGRAM 1. INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates.
TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS.
Applying UML and Patterns An Introduction to Object-oriented Analysis and Design and Iterative Development Part III Elaboration Iteration I – Basic1.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Sequence Diagram Tutorial
CS3773 Software Engineering
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction diagrams Sequence and collaboration diagrams.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
Introduction to Interaction Diagrams Used to illustrate the dynamic behaviour of a community of objects that collaborate by passing messages in order to.
Systems Analysis and Design in a Changing World, 6th Edition
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.
PRJ566 System Sequence Diagrams.  A system sequence diagram …. Illustrates input and output events related to the system under discussion.  Larman,
7 Systems Analysis and Design in a Changing World, Fifth Edition.
♦ Use Case Model  Detailled use case - Important  Use case diagram- Refactoring Use case diagram  > 1 Last Lectures.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Interaction and Communication Diagrams Patrick Bailey Keith Vander Linden Calvin College.
What to remember from Chap 13 (Logical architecture)
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Chapter 1 Applying UML and Patterns. The Need for Software Blueprints Knowing an object-oriented language and having access to a library is necessary.
Object-Oriented Analysis and Design CHAPTER 10: SYSTEM SEQUENCE DIAGRAMS 1.
Drawing System Sequence Diagrams
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour UML Sequence Diagram.
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Object Oriented Analysis and Design Sequence Diagrams.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
1 On To Object Design Chapter 14 Applying UML and Patterns -Craig Larman.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 5 INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH CHAPTER.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Systems Analysis and Design in a Changing World, Fourth Edition
Chapter 3: Introducing the UML
Summary from previous lectures
 The Sequence Diagram models the collaboration of objects based on a time sequence.  It shows how the objects interact with others in a particular scenario.
SYSTEM-LEVEL SEQUENCE DIAGRAMS Sys466. System-Level Sequence Diagrams  Use cases describe how external actors interact with the software system…  An.
Basics of RSA Rational Software Architect. What is RSA? Comprehensive Modeling and Development environment that leverages the Unified Modeling Language.
1 Object Oriented Analysis and Design System Events & Contracts.
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 11: Collaboration Diagram - PART1
Sequence Diagram.
DESIGN MODEL: USE-CASE REALIZATIONS WITH GRASP PATTERNS
Prepared By Sidra Noureen
Sequence Diagram.
Sequence Diagrams.
Object Oriented Analysis and Design
Princess Nourah bint Abdulrahman University
System Sequence Diagrams
Sequence Diagrams Lecture 6.
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
UML Interaction diagrams
System Sequence Diagrams(SSD)
UML Interaction Diagrams
Presentation transcript:

SENG 403 SENG 403 – Winter 2012

 Brief introduction to SSD  Example (A sales systems (Cashier))  Example (Monopoly game) SENG 403 – Winter 2012

 A system sequence diagram (SSD):  is a fast and easily created artifact.  illustrates input and output events related to the systems. SENG 403 – Winter 2012

 A fast review of the notions and rules in UML sequence diagrams SENG 403 – Winter 2012

 The sender waits until the receiver has finished processing the message, only then does the caller continue (i.e. a blocking call).  Most method calls in object-oriented programming languages are synchronous.  A closed and filled arrowhead signifies that the message is sent synchronously. SENG 403 – Winter 2012

 If you want to show that the receiver has finished processing the message and returns control to the sender, draw a dashed arrow from receiver to sender. ▪ Optionally, a value that the receiver returns to the sender can be placed near the return arrow SENG 403 – Winter 2012

 A message of which the caller is not shown.  Either ▪ the sender is not known, ▪ or that it is not important who the sender was.  Originates from a filled circle SENG 403 – Winter 2012

 The sender does not wait for the receiver to finish processing the message  An open arrowhead is used to indicate that a message is sent asynchrously. SENG 403 – Winter 2012

 An object sends to itself SENG 403 – Winter 2012

 The time it takes to arrive at the receiver is negligible.  Drawn as a horizontal arrow. SENG 403 – Winter 2012

 Sometimes it takes a considerable amount of time to reach the receiver.  E.g. across a network.  Such a non-instantaneous message is drawn as a slanted arrow. SENG 403 – Winter 2012

 Prefixed with an asterisk.  The message is sent repeatedly.  A guard indicates the condition that determines whether or not the message should be sent (again). SENG 403 – Winter 2012

 Sending the same message to different elements in a collection.  The receiver of the repeated message is a multiobject. SENG 403 – Winter 2012

 Multiple messages sent in the same iteration  a 'loop' combined fragment can be used. SENG 403 – Winter 2012

 The message is only sent if a certain condition is met.  The condition is between brackets. SENG 403 – Winter 2012

 Several messages conditionally sent under the same guard (condition). ▪ Use an 'opt' combined fragment.  The combined fragment is shown as a large rectangle with an 'opt' operator plus a guard ▪ contains all the conditional messages under that guard SENG 403 – Winter 2012

 Alternative interactions ▪ use an 'alt' combined fragment. SENG 403 – Winter 2012

 Success scenario of a cash- only Process Sale scenario.  The cashier generates makeNewSale, enterItem, endSale, and makePayment system events. SENG 403 – Winter 2012

 In the current iteration (for this sales system) we are considering the following scenarios and system operations:  makeNewSale  enterItem  endSale  makePayment SENG 403 – Winter 2012

 “enterItem” is better than “scan” (that is, laser scan) because it captures the intent of the operation while remaining abstract and noncommittal with respect to design choices about what interface is used to capture the system event.  It could by via laser scanner, keyboard, voice input, or anything. SENG 403 – Winter 2012

1. Initialization 2. Play game SENG 403 – Winter 2012

 Website (tool): ▪ Trace modeller (UML Sequence Diagram Editor) ▪ A gallery of UML sequence diagrams:   Book:  Craig Larman, Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process (3nd Edition), Prentice Hall PTR.  Chapters 10, 15 and 18  Video:  UML Sequence diagram basics review: ▪  Online article: ▪ Donald Bell, IBM Corporation, UML Basics: The sequence diagram. SENG 403 – Winter 2012