Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University.

Slides:



Advertisements
Similar presentations
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
Advertisements

Interaction Diagrams Activity Diagram State Machine Diagram
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.
1 CS 426 Senior Projects Chapter 4: Use Case Modeling [Arlow and Neustadt, 2002] February 8, 2007.
Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” - may be of.
Collaboration Diagrams. Example Building Collaboration Diagrams.
Use Case Modelling.
Interaction Models. Interaction Definition An interaction is a behavior that comprises a set of messages exchanged among a set of objects within a context.
Object Interaction Models - Review The use case and its scenarios serve as a vehicle for organizing the object interactions that take place. Each scenario.
9-1 © Prentice Hall, 2004 Chapter 9, Part II: System Behavior - Interactions (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh.
1 CS 426 Senior Projects Chapter 4: Use Case Modeling [Arlow and Neustadt, 2005] February 5, 2009.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
 What is Interaction Modelling What is Interaction Modelling  Use Case Models Use Case Models Actor Use cases Use Case Diagram Symbols Use case Diagram.
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.
Object-Oriented Analysis and Design
TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty.
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, 6th Edition
Introduction to Sequence Diagrams
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
Object Oriented Analysis and Design System Events & Contracts.
Object Management Group (OMG) Specifies open standards for every aspect of distributed computing Multiplatform Model Driven Architecture (MDA)
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 9: Interaction.
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 2, Modeling with UML: Review Session (Optional)
Systems Analysis and Design in a Changing World, 3rd Edition
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:
© 2005 Prentice Hall9-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 1 what are use cases? “A specification of sequences of actions, including variant.
Systems Analysis and Design in a Changing World, 6th Edition
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.
Drawing System Sequence Diagrams
Chapter 4: Use Case Modeling [Arlow and Neustadt, 2005] CS 790M Project preparation (II) University of Nevada, Reno Department of Computer Science & Engineering.
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
Chapters 10, 11 SSD (Revision) SD DCD Exam Object-Oriented Design.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
UML - Development Process 1 Software Development Process Using UML.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
1 BTS330 Visual Modeling. What is Visual Modeling? 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship.
SYSTEM-LEVEL SEQUENCE DIAGRAMS Sys466. System-Level Sequence Diagrams  Use cases describe how external actors interact with the software system…  An.
1 Kyung Hee University Interaction Diagrams Spring 2001.
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
UML (Unified Modeling Language)
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
1 Object Oriented Analysis and Design System Events & Contracts.
 Sequence Diagrams Introduction.  Sequence Diagrams  Review Schedule Sheridan.
Systems Analysis and Design in a Changing World, 6th Edition
System Sequence Diagrams and Operation Contracts
Communication DIAGRAM
Chapter 4: Use Case Modeling
UML PPt by: Hong Qing Yu.
Systems Analysis and Design in a Changing World, 6th Edition
Interaction diagrams.
Chapter 4: Use Case Modeling
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Interaction Diagrams A Lot of UML!
Communication DIAGRAM
Chapter 4: Use Case Modeling
Presentation transcript:

Introduction to the Sequence Diagrams with stereotypes Department of Information Systems and Computation (DSIC) Valencia Polytechnic University

2 Requirements Analysis Process Sequence Diagram A Use Case functionality is specified identifying interacting classes and messages that they interchange Structure and Notation

3 Requirements Analysis Process Sequence Diagram Blocks: they are used to specify conditions or iterations that affect to one or many messages NOT ALL the messages are of the same nature… An UML extension is introduced (stereotypes) to classify messages according to its nature: «signal», «service», «query», «connect»

4 Sequence Diagram Stereotypes extension « Signal » stereotype

5 Sequence Diagram Stereotypes extension « Service » stereotype

6 Sequence Diagram Stereotypes extension « Query » stereotype

7 Sequence Diagram Stereotypes extension « Connect » stereotype

8 Sequence Diagram Stereotypes extension « Connect » stereotype example

9 An example 2- Functionality is specified identifying object classes and interactions 1- Use Case is identified and its actor(s) specified Sale items Cashier

10 RAP – Sequence Diagram (1/8) (Relevant actors are identified) Sale items Cashier

11 RAP – Sequence Diagram (2/8) (Messages between actors and the system) Sale items Cashier

12 RAP – Sequence Diagram (3/8) (Internal messages, Sale and Sale-line are identified)

13 RAP – Sequence Diagram (4/8) (To create a sale-line it’s necessary an item) until end of lines

14 RAP – Sequence Diagram (5/8) (the cashier finishes the data entry) until end of lines

15 RAP – Sequence Diagram (6/8) (Subtotal has to be calculated and also the item stock has to be updated) until end of lines

16 RAP – Sequence Diagram (7/8) (Final information about the sale is shown) until end of lines

17 RAP – Sequence Diagram (8/8) (Messages are stereotyped) <<signal>> <<signal>> <<service/new>> <<service/new>> <<connect/1,1>> <<query>> <<query>> <<service>> <<signal>> <<signal>> until end of lines

18 Summary Sequence Diagrams (SD) are used to specify functionality in terms of object interactions (they are not algorithm specifications!) Objects from classes communicate each other by sending messages A SD is structured in three regions:  External: actors outside of the system – users  Interface: user interface (boundary class) to receive information from actors or to show information produced by the system  Internal: classes in which the system is structured Depending on the nature of messages they are classified in:  Signal: messages to get information into the system or to show information from the system  Service: messages that change the state of the system (create, destroy, update)  Query: messages to query the state of an object or a set of objects  Connect: messages that relates objects to each other (when an object needs to be “connected” to other objects)