10/17/01H-1 © 2010 T. Horton CS 4240: Principles of SW Design Interaction Diagrams Examples of Collaboration and Sequence Diagrams Phone modeling exercise.

Slides:



Advertisements
Similar presentations

Advertisements

Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
System Sequence Diagrams
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Session 18 Modeling the Dynamic View: The Collaboration Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 20, 2011 Presented.
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.
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
Essentials of interaction diagrams Lecture 23 & 24.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Analysis Modeling Dynamic Modeling. Requirements analysis Results in static and dynamic models – Scenario models: use cases (static), swimlane diagrams.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
SE-565 Software System Requirements More UML Diagrams.
Blaha and Rumbaugh Sections 7.2 and 8.2
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Chapter 7: The Object-Oriented Approach to Requirements
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty.
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
Sequence Diagram Tutorial
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Interactions. 2 Objects communicate with each other by sending messages. Sending a message is another name for a member function call. –Some C++ examples.
Interaction diagrams Sequence and collaboration diagrams.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
Introduction to Interaction Diagrams Used to illustrate the dynamic behaviour of a community of objects that collaborate by passing messages in order to.
System Sequence Diagrams. Recap When to create SSD? How to identify classes/instances? Use case descriptions UML notations for SSD.
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.
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
For accurate communication, since a project can have several participants, each from different background. Represent a given aspect of the system We will.
Copyright © Hsiao-Lan Wei All Rights Reserved Design Model Interaction diagram.
Starting Object Design
Collaboration Diagrams CSIS3600. What is a Collaboration Diagram Collaboration diagrams illustrate interactions between objects The collaboration diagram.
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.
1 An Introduction to UML Interaction (Sequence and Communication) Diagrams Georgia State University CIS 3300 Spring, 2009.
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 Sequence Diagrams.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
 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.
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.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
1. In an activity diagrams, a Boolean test which shows how flow betweenactivities occur and represents in [], is called: pre-condition post-condition an.
Interactions.
Collaboration Diagrams
COMPONENT & DEPLOYMENT DIAGRAMS
UML SEQUENCE DIAGRAM.
UML Modeling Sequence diagram
Chapter 11: Collaboration Diagram - PART1
Sequence and Collaboration Diagrams
Sequence Diagram.
Analysis Modeling Dynamic Modeling.
Object-Orientated Analysis, Design and Programming
Sequence Diagrams.
Interactions.
IMAT5205 Systems Analysis and Design
Superior University, Lahore
Interaction diagrams.
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
UML Interaction diagrams
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Chapter 4 Sequence Diagrams
Presentation transcript:

10/17/01H-1 © 2010 T. Horton CS 4240: Principles of SW Design Interaction Diagrams Examples of Collaboration and Sequence Diagrams Phone modeling exercise

10/17/01H-2 Dynamic Views in UML Class diagrams are models of data types –What non-fundamental types are you using? How are they related? –Sometimes referred to as the static model Running programs define objects of various types that interact –Control is passed between objects’ methods –Information is passed and returned UML has two almost identical diagrams for this: –Collaboration diagram: object-centered –Sequence diagram: time-oriented Important: Each diagram models a particular scenario –Often we just model important or interesting scenarios

Learn More! UML Basics: The Sequence Diagram – brary/3101.htmlhttp:// brary/3101.html –Good stuff on syntax details Agile Modeling – ceDiagram.htmhttp:// ceDiagram.htm –Good stuff on how these are used 10/17/01H-3

10/17/01H-4 Class Diagram with a Related Collaboration

10/17/015 Sequence Diagram: Ex. 1

10/17/01H-6 Relationship Between Both Notations

10/17/01H-7 Collaboration Diagram: Ex. 2

10/17/01H-8 Sequence Diagram: Ex. 2

10/17/01H-9 Iteration, Control, Return Values Messages can be labeled with a condition: [hasStock] sellWidget() Messages can be repeated: * msg() or *[k=1..2] msg() Return values: –Maybe on dashed “return” arrow, or –On message call: n = getName() –Again, note returns not always explicitly drawn

10/17/01H-10 Notes on Messages Various types of messages supported –“Triangle” arrow head: like procedure calls, nested flow of control. Caller waits for action to complete. –Asynchronous flow of control Caller is not blocked, continues to do something. UML 1 “Half” arrow head UML 2: “Stick” arrow head (not triagle) –Dashed arrow: Return from procedure call. May be omitted if it’s implicit at end of an activation box –Use stereotypes to define anything else.

10/17/01H-11 Iterations, Constraints, Asynch. Messages

10/17/01H-12 Use Cases and Sequence Diagrams So far sequence diagrams model interactions between implementation-level objects Also, can be used to model use cases –Actor(s) interacting with the System Most useful if more than one Actor Messages are used informally here –Example: ATM customer tries to overdraw Also, sequence diagrams sometimes used in high-level design –model interactions between major subsystems

10/17/01H-13

10/17/01H-14 Phone Switch Example Classes –Phone: a person’s telephone –Line: a “number” associated with a phone Lines are busy, calls are made on lines, etc. –Connection: dynamically created, represents an active call between lines –Switch: a phone switch is a computer system that manages phones, lines and connections –Console: a terminal attached to the switch –Simulator: we’re writing a simulation!

10/17/01H-15 Associations in Our Model Switch manages other objects More than one Phone may be “linked” to one line –Like for office secretary, boss A Phone may have more than one Line –But, a Phone has only one Line “selected” at one time Must choose a Line to call or answer –Also, when a Line is connected, not all Phones that can possibly use that Line may be participating in the call. A Connection requires at least two Lines to exist

10/17/01H-16 Conceptual Class Diagram

10/17/01H-17 Scenario A normal call –Phone1 chooses Line 1 and picks up –Phone 1 dials number for Phone2 –Phone 2 rings –Phone 2 picks up –Call completed and the two people talk –Phone 2 hangs up –Phone 1 is disconnected –Phone 1 hangs up

10/17/01H-18 Class Diagram with Operations

10/17/01H-19 Sequence Diagram for a Normal Phone Call

Part of Same Diagram using Visual Paradigm