Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”

Slides:



Advertisements
Similar presentations
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Advertisements

Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
Object-oriented modeling Class/Object Diagrams
Ana M. Fernández  A UML diagram that depicts: ◦ interactions between objects. ◦ how the business currently works by showing how various.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Lecture 5a: Sequence Interaction Diagrams CSE 111 Copyright W. Howden1.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
SE-565 Software System Requirements More UML Diagrams.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
CS3773 Software Engineering
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
מידול התנהגותי 1. Today’s Session Sequence Diagrams State Machines 2.
1 CSC 450 Slides adapted from slides created by Robert B. France UML Behavioral Models.
Interaction diagrams Sequence and collaboration diagrams.
UML / UML 2.0 Diagrams (Part III) 1. Sequence diagram is the most common kind of interaction diagram. It focuses on the message interchange between a.
Introduction to Interaction Diagrams Used to illustrate the dynamic behaviour of a community of objects that collaborate by passing messages in order to.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
Chapter 5 – System Modeling
1 On to Object Design Chapter 14 Applying UML and Patterns.
1 Sequence Diagrams (Based on Stevens and Pooley (2006, Chapters 9, 10) and Fowler (2004, Chapter 4)) David Meredith Aalborg University.
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.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Sequence Diagrams.
Chapter 4: UML Interaction Diagrams. Objective Provide a reference for frequently used UML interaction diagram notation- sequence and communication diagrams.
Chapter 2, Modeling with UML: UML 2 Hightlights
Software Engineering Prof. Ing. Ivo Vondrak, CSc. Dept. of Computer Science Technical University of Ostrava
Collaboration Diagrams CSIS3600. What is a Collaboration Diagram Collaboration diagrams illustrate interactions between objects The collaboration diagram.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Interaction and Communication Diagrams Patrick Bailey Keith Vander Linden Calvin College.
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.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour UML Sequence Diagram.
University of Toronto at Scarborough © Bennett, McRobb and Farmer 2005 CSCC40 communication and sequence diagrams : listCampaigns *[For.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
Chapter 3: Introducing the UML
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
Appendix Object-Oriented Analysis and Design: Use Cases and Sequence Diagrams Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F.
1 Kyung Hee University Interaction Diagrams Spring 2001.
Project 2: Phase 1 Submission 7 Late submissions 10% 10 No submissions 14% Better than project 1 phase 3 submissions 10-point bonus: If you catch the deadline.
Basics of RSA Rational Software Architect. What is RSA? Comprehensive Modeling and Development environment that leverages the Unified Modeling Language.
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
Embedded Systems Software Engineering
UML Diagrams By Daniel Damaris Novarianto S..
Chapter 11: Collaboration Diagram - PART1
Graphical Systems Modeling with UML / SysML Sequence diagrams
Sequence Diagram.
Communication DIAGRAM
Prepared By Sidra Noureen
UML Diagrams Jung Woo.
UML Sequence Diagrams.
Object Oriented Analysis and Design
Princess Nourah bint Abdulrahman University
System Sequence Diagrams
IMAT5205 Systems Analysis and Design
Interaction diagrams.
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
Communication DIAGRAM
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Presentation transcript:

Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”

 Dynamic view – sequence diagrams ◦ role and types of sequence diagrams ◦ basic concepts ◦ advanced concepts ◦ examples 2

 Sequence diagram is a kind of interaction diagram, describing interactions among system classifiers in the form of sequence of messages interchanged between them during a certain period of time.  Sequence diagrams are closely related to use case scenarios as they document their functionality.  Interaction is shown on the sequence diagram in two dimensions: o Horizontal - static dimension where the system classifiers taking part in the interaction are placed o Vertical – dynamic dimension, with the time line showing chronically arranged messages 3

Depending on the degree of abstraction three types of sequence diagrams can be specified:  Conceptual sequence diagram – using only basic concepts, for quick and general overview of the system interactions  Generic sequence diagram – is the basis for software specification and uses all available concepts; this type of diagram includes the main and all alternative scenarios of a use case and it can be used for automatic generation of program code  Instance sequence diagram – a diagram describing one particular scenario of a use case; there may be several instance diagrams for one generic diagram 4

 Classifier – abstract category of system modeling in UML (e.g. actor, object, interface, component, package, etc.)  Message – describes a control flow in the system; it determines the sequence and place of execution of operations; messages are arranged according to the sequence of their appearance – the later they occur the lower they appear on the diagram  Each classifier has a lifeline that represents its life time; the “X” mark at the end of the lifeline indicates the point at which the object ceases to exist in the system  The execution specification shows time period during which the classifier performs an operation (processing, calculating, communicating with other classifiers or executing complex algorithms); the execution specification is initiated with an activation and ended with deactivation. 5

6 Classifier (actor, object, interface, package) Message Lifeline

7 Activation Execution specification Deactivation

 Types of messages  Creating and destroying objects  Guard conditions  Combined fragments with interaction operators  Interaction occurrences 8

Message types:  synchronous message – passes control from the sender classifier to the receiver classifier  asynchronous message – does not pass control, does not wait for an answer from the receiver, may continue processing  return message – indicates control return to the sender classifier after synchronous message and may also initiate a certain operation  self message – message sent by the classifier to itself resulting in calling its own operation; self message is a certain kind of iteration, which creates a nested execution specification 9

10 Asynchronous message Synchronous message

11 Self message Return message

Other message types:  lost message – message sent from a known sender to an unknown receiver (temporary message)  found message – message whose sender is unknown (may be an external signal, stimulus)  balking message – message which will not be handled by the receiver classifier if it cannot be handled immediately  timeout message – similar to balking message although sender classifier is willing to wait for handling the operation for a specified period of time 12

Creating and destroying objects:  „create” stereotype message – results in creation of an object, which is situated below the primary existing classifiers, corresponding with the time of its creation  „destroy” stereotype message – results in destruction of an object 13

14 > message

 Guard condition – a criterion connected with the message, on fulfillment of which depends the execution of a specified operation.  If a condition referring to a certain message is not met the operation indicated by the message is not executed.  Conditions are placed in square brackets before the message name  Realization of a message can be conditioned by more than one condition 15

16 Guarding condition

alt – alternative opt – option break – interruption loop – iteration neg – improper functionality par - concurrency critical – critical region assert – formula consider – significance ignore – insignificance stricte – strict order seq – weak order 17  Combined fragment – is a logically consistent area of interaction, a part of a sequence diagram characterized by specific properties defined by the interaction operator  Interaction operator – specifies the functionality realized by the combined fragment  Interaction operators:

18 Selected, most common operators:  alternative (alt) – means a possibility to choose only one of all presented interaction operands within the combined fragment, depending on the condition assigned to the operand  option (opt ) – means that the operand within the combined fragment will occur or will be omitted, depending on the condition  interruption (break) – is a abbreviated form of alt with only one defined operand and when the combined fragment is executed other interactions are ignored  iteration (loop) – means repeating the operand a specified number of times

19

20

21

22

23  Interaction occurrence – is a reference to a linked interaction diagram, placed within the base diagram  Interaction occurrences are especially useful in case of extensive sequence diagrams, which refer to other diagrams defined earlier  Interaction occurrence can be invoked either by a message or by time factor

24 Interaction occurrence

25  Analysis of a selected use case and its scenarios  Identification of classifiers taking part in the interaction  Development of conceptual sequence diagram including (identified classifiers, messages and execution specifications)  Development of a generic sequence diagram on the basis of the conceptual diagram by adding advanced concepts like: different message types, conditions, combined fragments, interaction occurrences  Optional development of instance sequence diagrams for a selected generic diagram

26  UML Sequence Diagrams: Guidelines us/library/dd aspx us/library/dd aspx  UML Sequence Diagrams: Reference  us/library/dd aspx us/library/dd aspx  Sequence Diagrams diagrams.html diagrams.html  UML Sequence Diagrams Examples diagrams-examples.html diagrams-examples.html