Interactions.

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design
Advertisements

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.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L26-S1 Interactions 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Computer Science CS425/CS6258/23/20011 The Architecting Phase Class diagrams are further refined in this phase of development Object diagrams are created.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
© Copyright Eliyahu Brutman Programming Techniques Course.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
7M822 UML Interaction Diagrams 25 November 2010.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
1 Introduction to UML DIAGRAMS & CLASS DIAGRAM Chapter 7,8 主講人 : 許勝杰
Instances and Object Diagrams Reporter: 陳雅萍. Abstractions and Instances Abstraction: the ideal essence of a thing Instance: a concrete manifestation of.
6. Basic Behavioral Modeling Interactions. Sung Kim CS6359 Chapter 15Slide 2 Overview Interactions – Roles – Links – Messages – Actions – Sequences Modeling.
Interactions. 2 Objects communicate with each other by sending messages. Sending a message is another name for a member function call. –Some C++ examples.
UNIT- Venkata Ratnam K1 BEHAVIORAL MODELING.
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.
1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
Behavioral Modeling Chapter 8.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
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.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
Software Engineering Lecture 8 Object-Oriented Analysis.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
 Building Block Building Block  Things in the UML Things in the UML  Structural Things Structural Things  Behavioral Things Behavioral Things  Grouping.
Introduction to UML Hazleen Aris Software Eng. Dept., College of IT, UNITEN. …Unified Modeling Language.
Diagrams. Typically, we view the static parts of a system using one of the four following diagrams. 1. Class diagram 2. Object diagram 3. Component diagram.
1 Kyung Hee University Interaction Diagrams Spring 2001.
CS 501: Software Engineering Fall 1999 Lecture 15 Object-Oriented Design I.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
UML Chapter 17.
CHAPTER
Interactions.
Systems Analysis and Design with UML Version 2.0, Second Edition
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Object-Oriented Analysis and Design
Sequence Diagrams.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Unified Modeling Language
Dynamic Modeling of Banking System Case Study - II
Communication DIAGRAM
Introduction to Unified Modeling Language (UML)
Sequence Diagrams.
UML dynamic Modeling (Behavior Diagram)
UML Overview Part 2.
IMAT5205 Systems Analysis and Design
UML Class Diagram.
Interaction diagrams.
UNIT – V.
CIS 375 Bruce R. Maxim UM-Dearborn
Unified Modelling Language
UML Interaction diagrams
Software Design Lecture : 15.
Interaction Diagrams Chapter 18.
Communication DIAGRAM
Software Design Methodologies and Testing
CIS 375 Bruce R. Maxim UM-Dearborn
Uml diagrams In ooad.
Chapter 4 Sequence Diagrams
Presentation transcript:

Interactions

Terms and Concepts An interaction is a behavior that comprises a set of messages exchanged among a set of objects within a context to accomplish a purpose. A message is a specification of a communication between objects that conveys information with the expectation that activity will ensue.

Context We may find an interaction wherever objects are linked to one another We will find interactions in the collaboration of objects that exist in the context of our system or subsystem. We will also find interactions in the context of an operation. Finally, we will find interactions in the context of a class

We will also find interactions among objects in the implementation of an operation.

Objects and Roles The objects that participate in an interaction are either concrete things or prototypical things. In the context of an interaction, we may find instances of classes, components, nodes, and use cases. We can think of an object diagram as a representation of the static aspect of an interaction, setting the stage for the interaction by specifying all the objects that work together. An interaction goes further by introducing a dynamic sequence of messages that may pass along the links that connect these objects

Links A link is a semantic connection among objects. In general, a link is an instance of an association. Wherever a class has an association to another class, there may be a link between the instances of the two classes

Links and Associations

A link specifies a path along which one object can dispatch a message to another (or the same) object. We can adorn the appropriate end of the link with any of the following standard stereotypes association self global local parameter

Messages

In the UML, we can model several kinds of actions. Call Return Send Create Destroy

Sequencing Procedural Sequence Flat Sequence

Creation, Modification, and Destruction Most of the time, the objects we show participating in an interaction exist for the entire duration of the interaction. However, in some interactions, objects may be created (specified by a create message) and destroyed (specified by a destroy message).

We can attach one of the following constraints to the element: new destroyed Transient

Representation Sequence diagrams and collaboration diagrams are largely isomorphic, meaning that we can take one and transform it into the other without loss of information. There are some visual differences, however. First, sequence diagrams permit us to model the lifeline of an object.

An object's lifeline represents the existence of the object at a particular time, possibly covering the object's creation and destruction. Second, collaboration diagrams permit you to model the structural links that may exist among the objects in an interaction

Common Modeling Techniques Modeling a Flow of Control Flow of Control by Time

To model a flow of control Set the context for the interaction, whether it is the system as a whole, a class, or an individual operation. Set the stage for the interaction by identifying which objects play a role; set their initial properties, including their attribute values, state, and role.

If your model emphasizes the structural organization of these objects, identify the links that connect them, relevant to the paths of communication that take place in this interaction. Specify the nature of the links using the UML's standard stereotypes and constraints, as necessary In time order, specify the messages that pass from object to object. As necessary, distinguish the different kinds of messages; include parameters and return values to convey the necessary detail of this interaction. Also to convey the necessary detail of this interaction, adorn each object at every moment in time with its state and role.

Flow of Control by Organization