© M.E. Fayad 2000-2006 SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.

Slides:



Advertisements
Similar presentations
L3-S1 Practical Solutions 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Advertisements

1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
Fall 2002 SJSU -- CmpE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5c-S1 Object Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
 Fayad SJSU – CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L21-S1 Model-Based Arch SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5d-S1 Class Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L26-S1 Interactions 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Interaction Models. Interaction Definition An interaction is a behavior that comprises a set of messages exchanged among a set of objects within a context.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control Information Examples.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Sequence Diagrams2 Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L8-S1 CRC Cards 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
7M822 UML Interaction Diagrams 25 November 2010.
L18-S1 Getting Started 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
 Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L3-6b-S1 Sequence Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
L6-1-S1Design Heuristics - 1 © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
6. Basic Behavioral Modeling Interactions. Sung Kim CS6359 Chapter 15Slide 2 Overview Interactions – Roles – Links – Messages – Actions – Sequences Modeling.
CS3773 Software Engineering
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.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
SJSU – CmpE Fall 2002 Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
L1-S1Introduction 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
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.
Behavioral Modeling Chapter 8.
L4-S1 Modeling Concepts 2003 SJSU -- CMPE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
1 An Introduction to UML Interaction (Sequence and Communication) Diagrams Georgia State University CIS 3300 Spring, 2009.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
Object Oriented Analysis and Design Sequence Diagrams.
Behavioral Modeling Chapter 8
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
 Building Block Building Block  Things in the UML Things in the UML  Structural Things Structural Things  Behavioral Things Behavioral Things  Grouping.
Fall 2002 SJSU -- CMPE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
1 Kyung Hee University Interaction Diagrams Spring 2001.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Object-Oriented Analysis & Design
Advanced Object-Oriented Analysis & Design
Database Design Dr. M.E. Fayad, Professor
Software Engineering Management
Software Patterns Dr. M.E. Fayad, Professor
Interactions.
Component-Based & Software Reuse
Software System Engineering
Object-Oriented Analysis & Design
UML Overview Part 2.
Software System Engineering
Software Engineering Management
Software System Engineering
Database Design Dr. M.E. Fayad, Professor
Software System Engineering
Object-Oriented Analysis & Design
Presentation transcript:

© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA

L3-6a-S2 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 2 Lesson 3-6a: Interactions

L3-6a-S3 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad Lesson Objectives 3 Define Interactions, Messages, Sequencing Understand flow of control: î Flow of control by time î Flow of control by organization Show the correspondence between classes and interaction diagrams

L3-6a-S4 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad In UML, you can model the dynamic aspects of a system using interactions Use interaction to model the flow of control within an operation, a class, a component, a use case, or the system as a whole 4 Interactions (1)

L3-6a-S5 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad An interaction is a behavior that comprises a set of messages exchanged among a set of objects within a context to accomplish a purpose 5 Interactions (2)

L3-6a-S6 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad A message is a specification of a communication between objects that conveys information with the expectation that activity will ensure Messages –Can involve the invocation of an operation or the sending of a signal –May also encompass the creation and destruction of other objects 6 Messages (1)

L3-6a-S7 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad When you pass a message, the result is an action. An Action may result in a change of state In UML, the following actions are possible: –Call – invokes an operation on an object –Return – returns a value to the caller –Send – Sends a signal to an object –Create – Creates an object –Destroy – Destroys an object 7 Messages (2)

L3-6a-S8 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 8 Messages (3)

L3-6a-S9 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad When an object passes a message to another, the receiving objects might in turn send a message to another object This stream of messages form a sequence Can explicitly model the order of the messages by prefixing each message with a sequence number set apart by a colon separator 9 Sequencing (1)

L3-6a-S10 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad Distinguish one flow of control from another by prefixing a message’s sequence number with the name of the process or thread –E.g., D5 : ejectHatch (3) The operation ejectHatch is dispatched as the fifth message in the sequence rooted by the process or thread named D 10 Sequencing (2)

L3-6a-S11 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad Specify a procedural or nested flow of control using a filled solid arrowhead –E.g., Specify a flat flow of control using a stick arrowhead –E.g., 11 Flow of Control

L3-6a-S12 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 12 Procedural Sequence

L3-6a-S13 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 13 Flat Sequence

L3-6a-S14 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad Two types of interaction diagrams in UML –Sequence diagram –Collaboration diagram The two diagrams are isomorphic –Can take one and transform it into the other without loss of information 14 Interaction Diagrams

L3-6a-S15 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 15 Flow of Control by Time

L3-6a-S16 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 16 Flow of Control by Organization

L3-6a-S17 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 17 Correspondence between Class & Interaction Diagrams

L3-6a-S18 Interactions © M.E. Fayad SJSU – CmpE M.E. Fayad 1. Define: Interaction, messages, and sequencing. 2. Describe a flow of control by time with an illustrated example. 3. Describe a flow of control by time with an illustrated example. 4. Use stability model to model the following: a. Interactions b. Messages c. Sequencing d. Flow of control 18 Discussion Questions