Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.

Slides:



Advertisements
Similar presentations
State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Advertisements

UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
1 Review Visual System Modeling Tools Todd Bacastow Penn State University Geospatial System Analysis & Design.
Introduction to UML Todd Bacastow Penn State University Geography 583 Geospatial System Analysis & Design.
1 SWE Introduction to Software Engineering Lecture 25 – Object-Oriented Design (Chapter 14)
Essentials of interaction diagrams Lecture 23 & 24.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
State Machine Diagrams (State Chart in UML 1) Specifying Control (ref: Chapter 11 Bennett, Mc Robb and Farmer)
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
Dynamic modeling using UML
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
System Analysis and Design
SE-565 Software System Requirements More UML Diagrams.
Sharif University of Technology Session # 7.  Contents  Systems Analysis and Design  Planning the approach  Asking questions and collecting data 
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
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
UML for Java Programmers Object Mentor, Inc. Copyright  by Object Mentor, Inc All Rights Reserved
Unified Modeling Language
BPMN By Hosein Bitaraf Software Engineering. Business Process Model and Notation (BPMN) is a graphical representation for specifying business processes.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Modelling Interactions and Behaviour. © Lethbridge/Laganière 2005 Chapter 8: Modelling Interactions and Behaviour2 Interaction Diagrams Interaction diagrams.
Data Flow Diagrams.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
Systems Analysis and Design in a Changing World, 6th Edition
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 3 Outline 3.1 Introduction 3.2 Class Attributes 3.3 Statechart Diagrams.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
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,
7 Systems Analysis and Design in a Changing World, Fifth Edition.
An Introduction to the Unified Modeling Language
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.
Design Jon Walker. More UML ● What is UML again?
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Systems Analysis and Design in a Changing World, Fourth Edition
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 3: Introducing the UML
Chapter 7 Part II Structuring System Process Requirements MIS 215 System Analysis and Design.
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.
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,
Test Generation from UML Specifications Michael A. Gray American University Washington, DC.
State Modeling. Introduction A state model describes the sequences of operations that occur in response to external stimuli. As opposed to what the operations.
UML Diagrams Ingrid Kirschning & Gerardo Ayala. UML Diagrams Use Case Diagrams –Use Case diagrams & descriptions Static Structure Diagrams –Class & object.
Systems Analysis and Design in a Changing World, Fourth Edition
Appendix 3 Object-Oriented Analysis and Design
UML Diagrams By Daniel Damaris Novarianto S..
State Machine Model.
TIM 58 Chapter 6, continued: Behavioral Modeling
State Machine Diagrams
Object-Oriented Analysis and Design
UML Diagrams Jung Woo.
Object Oriented Modeling and Design
Classification of UML Diagrams
Week 12: Activity & Sequence Diagrams
Object Oriented Analysis and Design
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Interaction Diagrams Chapter 18.
Software design and architecture
CIS 375 Bruce R. Maxim UM-Dearborn
Presentation transcript:

Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which activities or behaviors occur Collaboration diagram: shows how the objects are connected statically Each provides a different view of the same interaction

Sequence Diagram A sequence diagram shows object interactions arranged in time sequence. The diagram shows The objects participating in the interaction The sequence of messages exchanged The diagram contains Objects with their “lifelines” Messages exchanged between objects in ordered sequence Focus of control (optional)

Sequence Diagram Example Showing the use case of the refuel class

Sequence Diagram … Sequence diagram can be enhanced by using the scripts. A script is written at the left of a sequence diagram with the steps of the script aligning with the object interactions. Scripts can be written in natural language or pseudocode

Sample Script

Collaboration Diagram A collaboration diagram is an alternate way to represent the messages exchanged by a set of objects The diagram shows object interactions organised around the objects and their links to each other. A collaboration diagram contains Objects Links between objects Messages exchanged between objects Data flowing between objects, if any

Collaboration Diagram Example Shows the parking use case

State Diagram Used to show the life history of a given class the possible states an object can take the events that trigger the transition from one state to the next the actions that result from each state change The state is one of the possible conditions that it may exist

State Diagram Example Black dot: start node Smaller black dot inside a white dot: end node Rectangle: a state Arrow: transition

Special States The initial state is entered when an object is created An initial state is mandatory Only one initial state is permitted The initial state is represented as a solid circle A final state indicates the end of life for an object A final state is optional More than one final state may exist A final state in indicated by a bull’s eye

Events An event is an occurrence that happens at some point in time The state of the object determines the response to different events Example: Adding a student to a course Creating a new course

Transitions A transition is a change from an originating state to a successor state as a result of some stimulus. The successor state could possibly be the originating states A transition may take place in response to an event Transactions can be labelled with events

Guard Conditions A guard condition is a Boolean expression of attribute values which allows a transition only if the condition is true.

Actions An action is an operation that is associated with a transition Takes insignificant amount of time to complete Considered to be non-interruptible Action names are shown on the transition arrow preceded by a slash

More Example State diagrams for the fuel and parts classes

More Example … State diagram for the inventory class, orders parts or fuel: a different condition triggers each state

Activity Diagram To model the flow of procedures or activities in a class A decision node is used to represent a choice of which activity to invoke

Activity Diagram Example An activity diagram for the inventory class It may have two decisions to verify that there is enough fuel to verify that a part is in stock

Package Diagram View the system as a small collection of packages, which can be expanded to a larger set of classes Show the dependencies among classes as they belong to different packages Two items are dependent if changes to the definition of one may cause changes to the other

Package Diagram Example There are four major packages The service package consists of five key classes

Summary Sequence diagram Describing scenarios of use cases Interaction diagram Describing the class State transition diagram Activity diagram Their relationships