LECTURE 5 SEQUENCE DIAGRAM 1. INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates.

Slides:



Advertisements
Similar presentations
Object Design Examples with GRASP
Advertisements

System Sequence Diagrams
Object-Oriented Analysis and Design
Jan 15, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration: a simple cash-only success scenario of Process Sale.
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
Systems Analysis and Design in a Changing World, Fourth Edition
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.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
© 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.
Detailed Object-Oriented Requirements Definitions
Sept Ron McFadyen1 Extend Relationship.
חוזים – Contracts 1. Larman – Chapter 10 – SSDs 10.2 What are System Sequence Diagrams? (introduction) Use cases describe how external actors interact.
9/18/011 Software Requirements Analysis and Design (Continued)
Unified Modeling Language
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.
Chapter 7: The Object-Oriented Approach to Requirements
SENG 403 SENG 403 – Winter  Brief introduction to SSD  Example (A sales systems (Cashier))  Example (Monopoly game) SENG 403 – Winter 2012.
INFO 620Lecture #51 Information Systems Analysis and Design Sequence and Collaboration Diagrams INFO 620 Glenn Booker.
Interaction Modeling Interaction model describes how objects interact to produce useful results. Interactions can be modeled at different levels of abstraction:
Object Oriented Analysis and Design System Events & Contracts.
Systems Analysis and Design in a Changing World, Fifth Edition
1 On to Object Design Chapter 14 Applying UML and Patterns.
Object Design Examples with GRASP (Ch. 18)
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Group 2 work What is sequence diagram ? What is sequence diagram ? Why do we use it ? Why do we use it ? What is basic notation of SD? What is basic notation.
Chapter 5 Models and UML Notation for The Object-Oriented Approach.
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.
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.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Object-Oriented Analysis and Design CHAPTER 10: SYSTEM SEQUENCE DIAGRAMS 1.
Drawing System Sequence Diagrams
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Sequence Diagrams CSIS3600. Sequence Diagrams A sequence diagram shows an interaction arranged in time sequence. In particular, it shows the objects participating.
System sequence diagram M Taimoor Khan
System sequence diagrams
Chapter 10 Drawing System Sequence Diagrams
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
System Sequence Diagram Chandan Rupakheti & Steve Chenoweth Week 5-3a.
Systems Analysis and Design in a Changing World, Fourth Edition
Domain Model A representation of real-world conceptual classes in a problem domain. The core of object-oriented analysis They are NOT software objects.
Summary from previous lectures
Software Engineering 1 Object-oriented Analysis and Design Chap 31 More SSDs and Contracts.
 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 Sequence Diagrams Sheridan SYST Engineering Quality Systems 11.
SYSTEM-LEVEL SEQUENCE DIAGRAMS Sys466. System-Level Sequence Diagrams  Use cases describe how external actors interact with the software system…  An.
7 Systems Analysis – ITEC 3155 The Object Oriented Approach – Use Cases.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
1 Object Oriented Analysis and Design System Events & Contracts.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
BTS430 Systems Analysis and Design using UML
DESIGN MODEL: USE-CASE REALIZATIONS WITH GRASP PATTERNS
Sequence Diagrams.
Princess Nourah bint Abdulrahman University
Princess Nourah bint Abdulrahman University
How do we convince people that in programming simplicity and clarity —in short: what mathematicians call "elegance"— are not a dispensable luxury, but.
Sequence Diagrams Lecture 6.
Week 12: Activity & Sequence Diagrams
CIS 375 Bruce R. Maxim UM-Dearborn
Software design and architecture
System Sequence Diagrams(SSD)
CIS 375 Bruce R. Maxim UM-Dearborn
Presentation transcript:

LECTURE 5 SEQUENCE DIAGRAM 1

INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates input and output events related to the systems under discussion Before proceeding to a logical design of how a software application will work, we should investigate and define the system behavior as a "black box“. 2

SYSTEM SEQUENCE DIAGRAM A system sequence diagram (SSD) is a picture that shows, for a particular scenario of a use case, the events that external actors generate, their order, and inter-system events.  An SSD is generated from inspection of a use case Suggestion: One SSD – one Use Case 3

4 SYSTEM SEQUENCE DIAGRAM VS SEQUENCE DIAGRAM A System Sequence Diagram is an artifact that illustrates input and output events related to the system under discussion. System Sequence Diagrams are typically associated with use- case realization in the logical view of system development. Sequence Diagrams (Not System Sequence Diagrams) display object interactions arranged in time sequence.

5 SEQUENCE DIAGRAMS Sequence Diagrams depict the objects and classes involved in the scenario and the sequence of messages exchanged between the objects needed to carry out the functionality of the system.

6 SSD—SYSTEM BEHAVIOR System behaves as “Black Box”. Interior objects are not shown, as they would be on a Sequence Diagram. :System

7 SYSTEM SEQUENCE DIAGRAMS For a particular scenario of use-case an SSD shows- The external actors that interact directly with the system. The System (as a black box). The system events that the actors generate.

8 SYSTEM SEQUENCE DIAGRAMS The operations of the system in response to the events generated. System Sequence Diagrams depict the sequential order of the events. System Sequence Diagrams should be done for the main success scenario of the use-case, and frequent and alternative scenarios.

9 NOTATION Object: Objects are instances of classes. Object is represented as a rectangle which contains the name of the object underlined. Because the system is instantiated, it is shown as an object. : Object1

10 NOTATION (2) Actor: An Actor is modeled using the usual symbol, the stick figure. actor1

11 NOTATION (3) Lifeline: The LifeLine identifies the existence of the object over time. The notation for a Lifeline is a vertical dotted line extending from an object.

12 NOTATION (4) Message: Messages, modeled as horizontal arrows between Activations, indicate the communications between objects. messageName(argument)

13 EXAMPLE OF AN SSD Following example shows the success scenario of the Process Sale use case. Events generated by cashier (actor)- makeNewSale  enterItem  endSale and  makePayment.

14 SSD FOR PROCESS SALE SCENARIO

15 SYSTEM SEQUENCE DIAGRAMS AND USE CASES System Sequence Diagram is generated from inspection of a use case. Constructing a systems sequence diagram from a use case- 1.Draw a line representing the system as a black box. 2.Identify each actor that directly operates on the system. Draw a line for each such actor. 3.From the use case, typical course of events text, identify the system (external) events that each actor generates. They will correspond to an entry in the right hand side of the typical use case. Illustrate them on the diagram.

16 SSDS ARE DERIVED FROM USE CASES.

17 SYSTEM EVENTS AND SYSTEM BOUNDARY Identifying the System events- 1.Determine the actors that directly interact with the system. 2.In the process Sale example, the customer does not directly interact with the POS system. Cashier interacts with the system directly. Therefore cashier is the generator of the system events.

18 NAMING SYSTEM EVENTS AND OPERATIONS System event External input event generated by an actor. Initiates a responding operation by system. System operation  Operation invoked in response to system event.

19 NAMING SYSTEM EVENTS AND OPERATIONS System events and their associated system operations should be expressed at the level of intent rather than in terms of the physical input medium or widget. In order to improve the clarity, it is appropriate to start the name of the system event with a verb (for example- add….,enter….,end….,make…. etc.,). It also emphasizes the command origination of these events.

20 NAMING SYSTEM EVENTS AND OPERATIONS For example “enterItem” is better than “scan” as it captures the intent of operation rather than what interface is used to capture the system event (design choice).

21 CHOOSE EVENT AND OPERATION NAMES AT AN ABSTRACT LEVEL

22 SHOWING USE CASE TEXT It is desirable to show at least fragments of use case text for the scenario. The text provides the details and context, while the diagram visually summarizes the interaction.

23 SSD WITH USE CASE TEXT

24 CONCLUSION System Sequence Diagrams provide a way for us to visually step through invocation of the operations defined by Use-Cases. It is not necessary to create SSDs for all scenarios of all use- cases,at least not at the same time.