TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS.

Slides:



Advertisements
Similar presentations
Object Design Examples with GRASP
Advertisements

System Sequence Diagrams
Actors and use cases Use-case diagram Brief notation Prioritization Fully dressed notation Requirements Functional requirements  Use-cases.
Jan 15, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration: a simple cash-only success scenario of Process Sale.
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
Sequence Diagram Objects are represented horizontally across the top of the diagram Each object has a lifeline some exist before and/or after some are.
Jan 16, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration 1: 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.
COMP 350: Object Oriented Analysis and Design Lecture 3 Case Studies, Inception & Use Cases References: Craig Larman Chapters 3-6.
Object-Oriented Analysis and Design
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.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” - may be of.
Fall 2009ACS-3913 Ron McFadyen1 Use Cases Used to capture functional requirements – there are other requirements categories such as usability, reliability,
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.
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
Use Case Modeling. Kendall & Kendall© 2005 Pearson Prentice Hall18-2 Commonly Used UML Diagrams The most commonly used UML diagrams are: – Use case diagram,
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 More on use cases System sequence.
Sept Ron McFadyen1 Extend Relationship.
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 Use cases: deciding what you want.
חוזים – 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)
The first step in getting what you want is to decide what you want.
LECTURE 5 SEQUENCE DIAGRAM 1. INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates.
Applying UML and Patterns An Introduction to Object-oriented Analysis and Design and Iterative Development Part III Elaboration Iteration I – Basic1.
System Sequence Diagrams
Software Engineering 1 Object-oriented Analysis and Design Chap 30 Relating Use Cases.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
Object Oriented Analysis and Design System Events & Contracts.
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.
Object Design Examples with GRASP (Ch. 18)
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
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.
OOSE Use Case. Requirement Functional: –Features, capabilities, and security Non Functional: –Usability: Human factors, help, and documentation –Reliability:
PRJ566 System Sequence Diagrams.  A system sequence diagram …. Illustrates input and output events related to the system under discussion.  Larman,
Chapter 9 Applying UML and Patterns -Craig Larman
♦ 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
Elaboration Iteration 1- Part 1
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
System sequence diagram M Taimoor Khan
System sequence diagrams
Software Engineering 1 Object-oriented Analysis and Design Chap 24 Iteration 2 More Patterns.
TK2023 Object-Oriented Software Engineering CHAPTER 12 Introduction to Responsibility-Driven Design.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
PRESENTATION ON USE CASE. Use Case Modeling Use case diagrams describe what a system does from the standpoint of an external observer. The emphasis is.
Domain Model A representation of real-world conceptual classes in a problem domain. The core of object-oriented analysis They are NOT software objects.
Understanding Requirements
OO Methodology Elaboration Phase Iteration 1- Part 3.
Summary from previous lectures
Software Engineering 1 Object-oriented Analysis and Design Chap 31 More SSDs and Contracts.
SYSTEM-LEVEL SEQUENCE DIAGRAMS Sys466. System-Level Sequence Diagrams  Use cases describe how external actors interact with the software system…  An.
1 Object Oriented Analysis and Design System Events & Contracts.
Jan Ron McFadyen1 Use Cases Used to capture functional requirements – there are other requirements categories such as usability, reliability,
Elaboration popo.
System Sequence Diagrams and Operation Contracts
System sequence diagrams
BTS430 Systems Analysis and Design using UML
Webapp Design with System Sequence Diagrams
Sequence Diagrams.
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)
Object Oriented Analysis
Presentation transcript:

TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS

INTRODUCTION Before proceeding to a logical design of how a software application will work, it is useful to investigate and define its behaviour as a "black box". System behaviour describes WHAT a system does without explaining how it does it. Artifacts concerned with system behaviour:  (Black-box) Use cases  System sequence diagram  System contracts

SYSTEM SEQUENCE DIAGRAMS An important part of understanding system behaviour is the operations that an external actor requests of a system. When an actor interacts with the system, it generates a system event. This initiates a system operation upon the system.

Consider the "Process Sale" use case. ACTOR (CASHIER)SYSTEM Enters item identifier Records sale line item and presents item description, price and running total A system event is generated System executes the corresponding system operation

A system sequence diagram (SSD) shows, for a particular scenario of a use case, the events that external actors generate, their order, and inter-system events. In this diagram, all systems are treated as a black box; the emphasis of the diagram is events that cross the system boundary from actors to systems.

EXAMPLE OF AN SSD * [more items] This example is for the main success scenario of the "Process Sale" use case.

GUIDELINES ON SSDs An SSD should be done for the main success scenario of the use case, and frequent or complex alternative scenarios. SSDs can also be used to illustrate collaborations between systems. For example, between POS system and the external Payment Authorization Service System.

SSDs are derived from use cases. An SSD can be generated from inspection of a use case. Actor Action (or Intention)System Responsibility 1.Customer arrives at a POS checkout with goods 2.Cashier starts a new sale 3.Cashier enters item identifier Cashier repeats 3-4 until indicates done 6.Cashier tells Customer the total, and asks for payment. 7.Customer pays 8.Cashier enters payment 4.Records each sale line item and presents item description and running total. 5.System presents total with taxes calculated 9.Handles payment

Start the name of a system event with a verb such as add…, enter…, end…, make…, etc. When naming a system event, choose a name that reflects the intent rather than in terms of the physical input medium or interface widget involved. For example, enterItem is better than scanItem fillItemIDTextField

It is sometimes desirable to show at least fragments of use case text for the scenario, to clarify or enhance the two views. The text provides details and context; the diagram visually summarizes the interaction.

1.Customer arrives at POS checkout with goods and/or services to purchase. 2,Cashier starts a new sale. 3.Cashier enters item identifier. 4.System records sale line item and presents item description, price, and running total. Price calculated from a set of price rules. Cashier repeats steps 3 – 4 until indicates done. 5.System presents total with taxes calculated. 6.Cashier tells Customer the total, and asks for payment. 7.Customer pays and Cashier enters payment. 8.System handles payment. … send message return data

SSDs WITHIN THE UP SSDs are part of the Use-Case model. Most SSDs are created during the Elaboration phase. It is not necessary to create SSDs for all scenarios of all use cases. Create them only for some chosen scenarios of the current iteration.