1 IBM Software Group ® Essentials of Visual Modeling with UML 2.0 Module 5: Interaction Diagrams.

Slides:



Advertisements
Similar presentations
OOAD – Dr. A. Alghamdi Mastering Object-Oriented Analysis and Design with UML Module 3: Requirements Overview Module 3 - Requirements Overview.
Advertisements

UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1/20 Interaction Diagrams.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1/18 Use Case Analysis – continued Control Classes.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1 Interaction Diagrams.
Sample Analysis Model. Example: Sequence Diagram –“Richer Sample.” : Student : RegisterForCoursesForm : RegistrationController : Schedule : Student :
Detail Design: Use-Case Design
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
7M822 UML Interaction Diagrams 25 November 2010.
Use Case Analysis – continued
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
UML. Overview of UML Diagrams Structural : element of spec. irrespective of time Class Component Deployment Object Composite structure Package Behavioral.
OOAD – Dr. A. Alghamdi Mastering Object-Oriented Analysis and Design with UML Module 6: Use-Case Analysis Module 6 - Use-Case Analysis.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
CS3773 Software Engineering
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.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
Shanghai Jiao Tong University 上海交通大学软件工程中心 Object Oriented Analysis and Design Use-Case Design.
1 On to Object Design Chapter 14 Applying UML and Patterns.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Requirements Artifacts Precursor to A & D. Objectives: Requirements Overview  Understand the basic Requirements concepts and how they affect Analysis.
Copyright © Hsiao-Lan Wei All Rights Reserved Design Model Interaction diagram.
Behavioral Modeling: Sequence and Communication Diagrams Copyright © 2009 John Wiley & Sons, Inc. Copyright © 2005 Pearson Education Copyright © 2009 Kannan.
Behavioral Modeling Chapter 8.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 02. Objects,
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
1 IBM Software Group ® Mastering Object-Oriented Analysis and Design with UML 2.0 Module 6: Use-Case Analysis.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
Shanghai Jiao Tong University 上海交通大学软件工程中心 Object Oriented Analysis and Design Requirements Overview.
1 Detail Design: Use-Case Design Background on Use Case Design Have ‘done’ Architectural Design; You know the major (eleven) precepts of good design.
Behavioral Modeling with UML 2.0
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
1 An Introduction to UML Interaction (Sequence and Communication) Diagrams Georgia State University CIS 3300 Spring, 2009.
1 The Unified Modeling Language. 2 The Unified Modeling Language (UML) is a standard language for writing software blueprints. The UML may be used to.
Behavioral Modeling Chapter 8
Unified Modeling Language. Object Oriented Methods ► What are object-oriented (OO) methods?  OO methods provide a set of techniques for analyzing, decomposing,
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 15 The Unified Modeling Language: a Primer.
1 IBM Software Group ® Essentials of Visual Modeling with UML 2.0 Principles of Visual Modeling.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Essentials of Visual Modeling w/ UML Instructor Notes
Object Oriented Analysis and Design using the UML Use-Case Analysis Adapted by Dr. Spiegel from Slides Provided by Rational Software.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 3: Outlining Use Cases.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1 Use Case Analysis – continued Control Classes.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
UML Basics Process Model Deployment Model Design Model
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
GOVT. ENGINEERING COLLEGE, AJMER. A SEMINAR PRESENTATION ON UNIFIED MODELING LANGUAGE(UML) SUBMITTED TO:-PRESENTED BY:- Dr. REENA DADHICHPALLAVI VASHISTHA.
UML Diagrams By Daniel Damaris Novarianto S..
Unified Modeling Language
UML Diagrams Jung Woo.
Behavioral Modeling.
UML Overview Part 2.
Unified Modeling Language
Interaction diagrams.
UML Interaction diagrams
Use Case Analysis – continued
Uml diagrams In ooad.
Presentation transcript:

1 IBM Software Group ® Essentials of Visual Modeling with UML 2.0 Module 5: Interaction Diagrams

2 Objectives  Describe dynamic behavior and show how to capture it in a model.  Demonstrate how to read and interpret:  A sequence diagram  A communication diagram  Explain the similarities and differences between communication and sequence diagrams.

3 Objects Need to Collaborate  Objects are useless unless they can collaborate to solve a problem.  Each object is responsible for its own behavior and status.  No one object can carry out every responsibility on its own.  How do objects interact with each other?  They interact through messages.

4 Objects Interact with Messages  A message shows how one object asks another object to perform some activity. : Car buyer :RegistrationController:CourseCatalogSystem getCourseOfferings(forSemester) Message

5 What is an Interaction Diagram?  Generic term that applies to several diagrams that emphasize object interactions  Sequence Diagram  Communication Diagram  Specialized Variants  Timing Diagram  Interaction Overview Diagram

6 Interaction Diagrams  Sequence Diagram  Time oriented view of object interaction  Communication Diagram  Structural view of messaging objects Communication Diagrams Sequence Diagrams

7 Interaction Diagrams  Timing Diagram  Time constraint view of messages involved in an interaction  Interaction Overview Diagram  High level view of interaction sets combined into logic sequence Timing Diagrams Interaction Overview Diagrams

8  Sequence diagrams  Communication diagrams  Interaction diagram comparison Where Are We?

9 What Is a Sequence Diagram?  A sequence diagram is an interaction diagram that emphasizes the time ordering of messages.  The diagram shows:  The objects participating in the interaction.  The sequence of messages exchanged. Sequence Diagram

10 Example: Sequence Diagram : Student :RegisterForCoursesForm :RegistrationController : Course Catalog :CourseCatalogSystem 1: create schedule( ) 5: display course offerings( ) 2: get course offerings( ) 3: get course offerings(forSemester) 6: display blank schedule( ) 4: get course offerings( ) Select Offerings ref

11 Sequence Diagram Contents: Objects :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem Anonymous Objects Lifelines Named Object

12 :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem : Student : Course Catalog Sequence Diagram Contents: Actor Actor instances

13 Sequence Diagram Contents: Messages Reflexive Messages 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(for Semester) 4: get course offerings( ) :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem : Student : Course Catalog 6: display blank schedule( ) 5: display course offerings( ) Message

14 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(for Semester) 4: get course offerings( ) 6: display blank schedule( ) :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem : Student : Course Catalog Sequence Diagram Contents: Execution Occurrence Execution Occurrence 5: display course offerings( )

15 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(for Semester) 4: get course offerings( ) 6: display blank schedule( ) :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem : Student : Course Catalog Sequence Diagram Contents: Event Occurrence Event Occurrence 5: display course offerings( )

16 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(for Semester) 4: get course offerings( ) 6: display blank schedule( ) :RegisterForCoursesForm:RegistrationControllerSWTSU Catalog : CourseCatalogSystem : Student : Course Catalog Sequence Diagram Contents: Interaction Occurrence 5: display course offerings( ) Select Offerings ref Interaction Occurrence

17  Sequence diagrams  Communication diagrams  Interaction diagram comparison Where Are We?

18 What Is a Communication Diagram?  A communication diagram emphasizes the organization of the objects that participate in an interaction.  The communication diagram shows:  The objects participating in the interaction.  Links between the objects.  Messages passed between the objects. Communication Diagrams

19 Example: Communication Diagram : Student : RegisterForCoursesForm : RegistrationController : CourseCatalogSystem 5: display course offerings( ) 6: display blank schedule( ) : Course Catalog 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(forSemester) 4: get course offerings( )

20 Communication Diagrams Contents: Objects Objects : RegisterForCoursesForm : RegistrationController SWTSU Catalog : CourseCatalogSystem

21 Communication Diagram Contents: Actors : Student : Course Catalog : RegisterForCoursesForm : RegistrationControllerSWTSU Catalog : CourseCatalogSystem Actors

22 Communication Diagram Contents: Links and Messages : Student : RegisterForCoursesForm : RegistrationController : CourseCatalogSystem 5: display course offerings( ) 6: display blank schedule( ) : Course Catalog 1: create schedule( ) 2: get course offerings( ) 3: get course offerings(forSemester) 4: get course offerings( ) Links Messages

23  Sequence diagrams  Communication diagrams  Interaction diagram comparison Where Are We?

24 Sequence and Communication Diagram Similarities  Semantically equivalent  Can convert one diagram to the other without losing any information  Model the dynamic aspects of a system  Model a use-case scenario

25 Sequence and Communication Diagram Differences Sequence diagrams Communication diagrams  Show the explicit sequence of messages  Show execution occurrence  Better for visualizing overall flow  Better for real-time specifications and for complex scenarios  Show relationships in addition to interactions  Better for visualizing patterns of communication  Better for visualizing all of the effects on a given object  Easier to use for brainstorming sessions

26  What is the purpose of an interaction diagram?  What is a sequence diagram? A communication diagram?  What is a timing diagram? An interaction overview diagram?  What are the similarities between sequence and communication diagrams?  What are the differences between sequence and communication diagrams? Review

27 Exercise  Given:  A set of objects and their links and messages  Produce:  A sequence diagram  A communication diagram

28