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.

Slides:



Advertisements
Similar presentations
System Sequence Diagrams
Advertisements

Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
Chapter 6: Behavioral Modeling
Ana M. Fernández  A UML diagram that depicts: ◦ interactions between objects. ◦ how the business currently works by showing how various.
Assess A Claim Object Interaction Diagrams. Object sequence Diagrams - Use case Sequence of events that occur during one particular execution of a system.
Systems Analysis and Design in a Changing World, Fourth Edition
Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
1 SWE Introduction to Software Engineering Lecture 25 – Object-Oriented Design (Chapter 14)
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
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.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1 Interaction Diagrams.
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
Dynamic modeling using UML
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
Lab 6 CPIT 250 System Analysis and Design.
Use Case Diagrams. Use Case Use case A view to system seen from outside(user) User’s requirements on system A set of scenario for an actor to achieve.
System Analysis and Design
7M822 UML Interaction Diagrams 25 November 2010.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
SE-565 Software System Requirements More UML Diagrams.
Blaha and Rumbaugh Sections 7.2 and 8.2
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
Unified Modeling Language
LECTURE 5 SEQUENCE DIAGRAM 1. INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates.
Sequence diagrams Chapter 5 Sommerville. Sequence diagrams Sequence diagrams are part of the UML and are used to model the interactions between the actors.
Sequence Diagram Tutorial
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.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction diagrams Sequence and collaboration diagrams.
High-Level Design With Sequence Diagrams COMP314 (based on original slides by Mark Hall)
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.
10/17/01H-1 © 2010 T. Horton CS 4240: Principles of SW Design Interaction Diagrams Examples of Collaboration and Sequence Diagrams Phone modeling exercise.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
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.
Drawing System Sequence Diagrams
Sequence Models.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Use Case realization How classes collaborate to realize use cases or system functionality.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
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.
 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.
1 Kyung Hee University Interaction Diagrams Spring 2001.
Sequence Diagram Lecture # 1. Sequence Diagram Definition A Sequence diagram is an interaction diagram that shows how the objects and classes involved.
Systems Analysis and Design in a Changing World, Fourth Edition
Communication DIAGRAM
UML dynamic Modeling (Behavior Diagram)
Sequence Diagrams.
Week 12: Activity & Sequence Diagrams
Interaction diagrams.
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
Chapter 4 Sequence Diagrams
Presentation transcript:

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. Behaviour diagram (dynamic): 3.1 Activity diagram 3.2 Interaction diagram Sequence diagram – and message sequence chart UML diagrams Sli de 2

 Dynamic: describe what is happening ◦ actions, steps  Capture the behaviour of a single use case  2 types ◦ Sequence Diagram – Message Sequence Chart ◦ Collaboration Diagram  2 levels: ◦ Analysis : system level (actions/activities) ◦ Design : object level (responsibilities + methods)  How groups of objects collaborate to get the job done Sli de 3

 Use Case Driven Approach  Need to think about how a use case (scenario) can take place  It forces the analyst to think about objects involved in the application Sli de 4

 At least one scenario be prepared for each significantly different use-case instance  Helps us to understand the behaviour of the objects making up the system Sli de 5

 Assist in the design of the system by modelling the interactions between objects in the system Sli de 6

 A sequence diagram shows an interaction arranged in a time sequence  A sequence diagram has two dimensions: ◦ The vertical dashed lines represent the Objects (objects lifeline) ◦ The horizontal lines represent the events that occur between objects Sli de 7

 When drawing a sequence diagram, lifeline notation elements are placed across the top of the diagram.  Lifelines represent either roles or object instances that participate in the sequence being modeled. 8

 The first message of a sequence diagram always starts at the top and is typically located on the left side of the diagram for readability. Subsequent messages are then added to the diagram slightly lower then the previous message. 9

 Add objects to the page at the top ◦ Represents the existence of an object at a particular time  Add activation bars ◦ Period of time during which an object is performing an action  Add messages ◦ Communication between objects (action will ensue) ◦ Only when objects are “active” Sli de 10

Sli de 11 CustomerHotel Request quote Ask for details Provide information Send quote

 The lifeline represents the objects existence during the interaction [vertical dashed line]  A Sequence diagram does not show the association among objects Sli de 12

 Each message is represented by an arrow between the lifelines of two objects  The order of these messages is shown ‘top-to-bottom’  Each message is labelled with the message name Sli de 13

 When a telephone is on-hook, it is in idle state, meaning that no previous behaviour is of great interest and that the phone is ready to initiate and receive calls  When someone picks up the handset, we say that the phone is now off-hook and in the dialing state; ◦ in this state, we do not expect the phone to ring ◦ we expect to be able to initiate a conversation with a party or parties on another telephone by dialing their number  When the phone is on-hook, it may ring. ◦ When we pick up the handset the phone is in the receiving state ◦ We expect to be able to converse with the party who initiated the call Sli de 14

Sli de 15

 Make sure the messages are organised in chronological order  Include activation bars  Return messages should be illustrated using dashed horizontal lines and open ended arrows  The class to which each object belongs to should be included with the object in the diagram  Object:Class1  Aim for simplicity in your sequence diagrams! 16