COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.

Slides:



Advertisements
Similar presentations
Object Design Examples with GRASP
Advertisements

System Sequence Diagrams
Object-Oriented Analysis and Design
Objectives Detailed Object-Oriented Requirements Definitions
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.
Object-Oriented Analysis and Design
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.
6/8/991 Analysis Tuesday 09/14/99 Revised: September 11, 2000 (APM)
NJIT Drawing System Sequence Diagrams Chapter 10 Applying UML and Patterns Craig Larman Presented by Anuradha Dharani.
Object-Oriented Analysis and Design
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
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.
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.
Object Oriented Analysis and Design System Events & Contracts.
Objectives Detailed Object-Oriented Requirements Definitions
4 2009/10 Object Oriented Technology 1 Topic 4: The Object-Oriented Approach to Requirements Adopted from: Ch.7 The Object-Oriented Approach to Requirements.
Systems Analysis and Design in a Changing World, Fifth Edition
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
Review ♦ System sequence diagram ♦ Domain model
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.
Object-Oriented Analysis and Design CHAPTER 10: SYSTEM SEQUENCE DIAGRAMS 1.
Drawing System Sequence Diagrams
System sequence diagram M Taimoor Khan
System sequence diagrams
Chapter 10 Drawing System Sequence Diagrams
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 5 INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH CHAPTER.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
System Sequence Diagram Chandan Rupakheti & Steve Chenoweth Week 5-3a.
Object-Oriented Analysis and Design Feb 2, 2009.
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.
 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 Object Oriented Analysis and Design System Events & Contracts.
Systems Analysis and Design in a Changing World, Fourth Edition
System Sequence Diagrams and Operation Contracts
From Inception to Elaboration
System sequence diagrams
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.
System Sequence Diagrams(SSD)
Presentation transcript:

COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9

2 Objectives Identify System Events (input/output). Create System Sequence diagrams to show events.

3 Iteration 1 First real development iteration. The requirement work done during inception phase was to decide if the project was worth more serious investigation. Before starting iteration 1 design work, further investigation of the problem domain is useful such as clarification of the input and output system events, related to the system.

System Sequence Diagram (SSD) An SSD is an artifact that illustrates input and output events related to the system under discussion. A diagram that shows, for ONE particular scenario of a use case, the events that external actors generate, their order, and INTER-system events. (not detailed method calls between objects) 4

SSD in UML The UML contains notation in the form of sequence diagrams to illustrate events from external actors to a system 5

6 SSD—System Behavior System behavior as shown in SSD is “Black Box”. Focuses on what, not on how or why

What are Events Use cases describe how external actors interact with the software system During this interaction an actor generates events to a system, usually requesting some operation in response. For example, when a cashier enters an item's ID, the cashier is requesting the POS system to record that item's sale. The request event initiates an operation upon the system. 7

Advice An SSD should be done for the main success scenario of the use case, and frequent or complex alternative scenarios. 8

9 Notation Object: Objects are instances of classes. Object is represented as a rectangle which contains the name of the object underlined. : Object1

10 Notation (2) Actor: An Actor is modeled using the ubiquitous 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: Process Sales Following example shows the success scenario of the Process Sale use case. Events generated by cashier (actor) makeNewSale() enterItem(itemID, quantity) endSale() and makePayment(amount).

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.

16 System Sequence Diagrams and Use Cases 3. From the use case 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. 4.Optionally, include the use case text to the left of the diagram.

17 SSDs are derived from use cases.

18 Defining system boundary (system itself).

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

20 Naming System Events and Operations(2) 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.,).

21 Naming System Events and Operations(3) 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 interface widget level. 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).

22 Choose event and operation names at an abstract level

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

24 SSD with use case text

25 System Sequence Diagrams Within the Unified Process 1.Inception: System Sequence Diagrams are not usually motivated in inception.

26 System Sequence Diagrams Within the Unified Process Elaboration: It is useful to create System Sequence Diagrams during elaboration in order to - Identify the system events and major operations. To write system operation contracts (Contracts describe detailed system behavior) and To support estimation.