Sequence diagrams Chapter 5 Sommerville. Sequence diagrams Sequence diagrams are part of the UML and are used to model the interactions between the actors.

Slides:



Advertisements
Similar presentations
System Sequence Diagrams
Advertisements

Jan 15, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration: a simple cash-only success scenario of Process Sale.
Drawing System Sequence Diagrams
Systems Analysis and Design in a Changing World, Fourth Edition
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
Lecture 5a: Sequence Interaction Diagrams CSE 111 Copyright W. Howden1.
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
NJIT Drawing System Sequence Diagrams Chapter 10 Applying UML and Patterns Craig Larman Presented by Anuradha Dharani.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Lab 6 CPIT 250 System Analysis and Design.
Chapter 5 System modeling Chapter 5 – System Modeling Lecture 1 1.
UML. Overview of UML Diagrams Structural : element of spec. irrespective of time Class Component Deployment Object Composite structure Package Behavioral.
Structured Vs. Object Oriented Analysis and Design SAD Vs. OOAD
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.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Structured Vs. Object Oriented Analysis and Design SAD Vs. OOAD
Chapter 7: The Object-Oriented Approach to Requirements
Chapter 5 – System Modeling
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
Chapter 5 – System Modeling
Chapter 5 – System Modeling
Interactions. 2 Objects communicate with each other by sending messages. Sending a message is another name for a member function call. –Some C++ examples.
Class, Sequence and UML Model.  Has actors and use cases.
Interaction diagrams Sequence and collaboration diagrams.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
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 System Modeling (2/2) Yonsei University 2 nd Semester, 2014 Sanghyun Park.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Information Systems Engineering Interaction Diagrams: Sequence Diagram Collbortion Diagram.
Drawing System Sequence Diagrams
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Object Oriented Analysis and Design Sequence Diagrams.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
Chapter 5 System Modeling (1/2) Yonsei University 2 nd Semester, 2015 Sanghyun Park.
Software Engineering Lecture 6 – System Modelling
 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.
Appendix Object-Oriented Analysis and Design: Use Cases and Sequence Diagrams Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F.
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.
Lecturer: Eng. Mohamed Adam Isak PH.D Researcher in CS M.Sc. and B.Sc. of Information Technology Engineering, Lecturer in University of Somalia and Mogadishu.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
Chapter 4 – System Modeling Lecture 1 1Chapter 5 System modeling.
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
Chapter 5 – System Modeling
CompSci 280 S Introduction to Software Development
Systems Analysis and Design in a Changing World, Fourth Edition
UML Diagrams By Daniel Damaris Novarianto S..
Chapter 5 System modeling
Interactions.
Chapter 5 – System Modeling
Unified Modeling Language
Object-Oriented Systems Analysis and Design Using UML
Chapter 5 – System Modeling
UML Diagrams Jung Woo.
System Modeling Chapter 4
Dynamic Modeling: Defining Classes
Sequence Diagrams Lecture 6.
Unified Modeling Language
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
UML Interaction diagrams
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Chapter 4 System Modeling.
Presentation transcript:

Sequence diagrams Chapter 5 Sommerville

Sequence diagrams Sequence diagrams are part of the UML and are used to model the interactions between the actors and the objects within a system. A sequence diagram shows the sequence of interactions that take place during a particular use case or use case instance. The objects and actors involved are listed along the top of the diagram, with a dotted line drawn vertically from these. Interactions between objects are indicated by annotated arrows. 2Chapter 5 System modeling

Sequence diagram for View patient information 3Chapter 5 System modeling

Sequence diagram for Transfer Data 4Chapter 5 System modeling

Sequence Diagrams Detail how operations are carried out Dynamic Diagrams Organized according to time – The time progresses as you go down the page – The objects involved in the operation are listed from left to right according to when they take part in the message sequence. Create a sequence diagram for each scenario

Sequence Diagrams

Sequence diagrams show how instance exchange messages. An instance can be: – An object, not a class – An actor Object-Types in sequence Diagram – 1- interface object – 2-entity object – 3-control object Sequence diagrams contain the same information as Collaboration diagrams, but emphasize the sequence of the messages instead of the relationships between the objects.

Sequence Diagrams Messages can be Simple like – One object sends a message to a passive object – The sender does not care what happens to the message – Useful when the recipient can not be controlled Messages can be Return messages – Results of procedure calls

د. محمود القوتلي تحليل النظم

Sequence Diagrams Messages can be Constructors, the message creates the recipient Messages can be Destructors, the message destroys the recipient.

Sequence Diagrams Messages have sequence numbers – The numbers represent the order of interaction

Sequence Diagrams Messages have sequence numbers – Sequence number can be hierarchical

Sequence Diagrams Messages have a specific format [Condition]Sequence Number.Return value := MessageName(Arguments) [Condition]Sequence Number.Return value := MessageName(Arguments) * [iteration]

Effective Sequence Diagrams Use only instances and actors Concentrate on actions, not on instance static details Imaging as much real time scenarios as you can, and model them Keep in mind that a programmer will read your design, so make it as clear as possible. Sequence diagrams contain the same information as Collaboration diagrams, but emphasize the sequence of the messages instead of the relationships between the objects.

Behavioral models Behavioral models are models of the dynamic behavior of a system as it is executing. They show what happens or what is supposed to happen when a system responds to a stimulus from its environment. You can think of these stimuli as being of two types: – Data Some data arrives that has to be processed by the system. – Events Some event happens that triggers system processing. Events may have associated data, although this is not always the case. 15Chapter 5 System modeling

Data-driven modeling Many business systems are data-processing systems that are primarily driven by data. They are controlled by the data input to the system, with relatively little external event processing. Data-driven models show the sequence of actions involved in processing input data and generating an associated output. They are particularly useful during the analysis of requirements as they can be used to show end- to-end processing in a system. 16Chapter 5 System modeling

An activity model of the insulin pump’s operation 17Chapter 5 System modeling