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 Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
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.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
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.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
SE-565 Software System Requirements More UML Diagrams.
Object-Oriented Analysis and Design
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
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.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
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,
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.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
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.
What to remember from Chap 13 (Logical architecture)
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
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.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 3: Introducing the UML
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
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.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
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.
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
Logical Database Design and the Rational Model
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
UML Diagrams By Daniel Damaris Novarianto S..
Graphical Systems Modeling with UML / SysML Sequence diagrams
Prepared By Sidra Noureen
UML Diagrams Jung Woo.
Business System Development
UML Sequence Diagrams.
Princess Nourah bint Abdulrahman University
IMAT5205 Systems Analysis and Design
Chapter 20 Object-Oriented Analysis and Design
UML Interaction diagrams
Analysis models and design models
Appendix 3 Object-Oriented Analysis and Design
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

Karolina Muszyńska Based on: :

In order to implement an object-oriented database we need to transform the class diagram into a Physical Data Model. As a result of this transformation we obtain the following results: 1.Attributes of the classes become columns and the attributes which are defined as class identifiers become primary keys (PK) – for the classes which had no identifiers defined we must define primary keys (possibly add an additional column for that purpose) 2.If the class has methods/operations they become procedures 28

Results of the transformation of a class diagram into a physical data model: 3.Associations are transformed into relations among tables depending on the multiplicity:  associations (0..1; 1-1) are transformed into 1:1 relationships among tables; the link is between the primary keys of both tables  associations (1-0..*; 1-1..*) are transformed into 1:N relationships among tables where the PK on the side of „1” is linked with the foreign key on the side of „N” – this foreign key is usually a new column which is not present in the class diagram  associations (0..*-1..*) are transformed into N:M relationships among tables, which requires creation of an additional linking table 29

Results of the transformation of a class diagram into a physical data model: 4.Aggregation is transformed in the same way as an association with the multiplicity 0..1–1..* or * - that means into 1:N relationship 5.Composition is treated in the same way as aggregation 30

Results of the transformation of a class diagram into a physical data model: 6.Inheritance can be mapped in three possibile ways:  A separate table is created for the superclass and for each subclass and they are linked with 1:1 relationships where the primary key is also the foreign key  Tables only for the subclasses are created and they include all the attributes from the superclass – synchronization among tables must be handled  Only one table is created which includes all attributes from the superclass and all subclasses – problem of numerous null values 31

32

33