1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002.

Slides:



Advertisements
Similar presentations
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Advertisements

1 Review Visual System Modeling Tools Todd Bacastow Penn State University Geospatial System Analysis & Design.
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.
Interaction Diagrams Activity Diagram State Machine Diagram
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
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.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Software Engineering Design & modelling
Advanced Behavioral Modeling
© 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.
SE-565 Software System Requirements More UML Diagrams.
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 主講人 : 許勝杰
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 Management Group (OMG) Specifies open standards for every aspect of distributed computing Multiplatform Model Driven Architecture (MDA)
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.
Copyright © Hsiao-Lan Wei All Rights Reserved Design Model Interaction diagram.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
Software Engineering Prof. Ing. Ivo Vondrak, CSc. Dept. of Computer Science Technical University of Ostrava
Lecture 18: Object-Oriented Design – Interaction and State Diagrams Anita S. Malik Adapted from Schach (2004) Chapter 12.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
1 On To Object Design Chapter 14 Applying UML and Patterns -Craig Larman.
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 19 – Activity Diagrams.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
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.
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
States.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 3: Introducing the UML
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.
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.
Test Generation from UML Specifications Michael A. Gray American University Washington, DC.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
UML Activity and Sequence Diagrams David Millard
UML (Unified Modeling Language)
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
UML Chapter 17.
ACTIVITY DIAGRAMS 《UML面向对象建模基础》.
CHAPTER
Interactions.
Unified Modeling Language
Activity and State Transition Diagram
Behavioral Modeling.
State Machine Diagrams
UML PPt by: Hong Qing Yu.
Business System Development
Dynamic Modeling: Defining Classes
UML Activity Diagrams.
Interactions.
Process Modeling: Activity/Swimlane Diagrams
UML Overview Part 2.
Unified Modeling Language
Activity Diagrams.
UML Interaction diagrams
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Chapter 4 Sequence Diagrams
Presentation transcript:

1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002

2 Outline Introduction of interaction diagrams Introduction of interaction diagrams Modeling flows of control Modeling flows of control Introduction of activity diagrams Introduction of activity diagrams Modeling a workflow Modeling a workflow Modeling a operation Modeling a operation

3 Introduction of interaction diagrams How do you model system ’ s dynamic aspects? How do you model system ’ s dynamic aspects? –To build up storyboards of scenarios. In UML, you model these storyboards by using interaction diagrams. In UML, you model these storyboards by using interaction diagrams. storyboard: noun, a series of drawings or pictures that show the outline of the story of a film/movie, etc. storyboard: noun, a series of drawings or pictures that show the outline of the story of a film/movie, etc.

4 Introduction of interaction diagrams (Cont.) Interaction diagrams contain sequence diagrams and collaboration diagrams. Interaction diagrams contain sequence diagrams and collaboration diagrams. Sequence diagrams: emphasis the time ordering of messages. Sequence diagrams: emphasis the time ordering of messages. Collaboration diagrams: emphasis the structural organization of objects that send/receive messages. Collaboration diagrams: emphasis the structural organization of objects that send/receive messages. Both of them are semantically equivalent. Both of them are semantically equivalent.

5 Introduction of interaction diagrams (Cont.) Sequence diagrams Sequence diagrams Collaboration diagrams Collaboration diagrams

6 Modeling flows of control By time ordering: By time ordering: –Set the context for the interaction. –Set the stage for the interaction. –Set the lifeline for each object –Starting with the message –Visualize the nesting of messages (optional) –Specify time or space constraints (optional)

7 Modeling flows of control (Cont.)

8 By organization: By organization: –Set the context for the interaction –Set the stage for the interaction –Set the initial properties of each object –Specify the links among –Starting with the messages that initiates this interaction –Specify time or space constraints (optional)

9 Modeling flows of control (Cont.)

10 Introduction of activity diagrams Consider the workflow associated with building a house. Consider the workflow associated with building a house. –select site, commission an architect, develop plan, bid plan, construction … until everything is done. In a real project, there are a lots of parallel activities among various trades. In a real project, there are a lots of parallel activities among various trades. We can model these dynamic aspects using activity diagrams. We can model these dynamic aspects using activity diagrams.

11 Introduction of activity diagrams (Cont.) Activity diagrams shows the flow from activity to activity. Activity diagrams shows the flow from activity to activity. Activity: an ongoing nonatomic execution within a state machine. Activity: an ongoing nonatomic execution within a state machine. ActivityAction Made up of executable atomic computations (send a signal, create, destroy)

12 Introduction of activity diagrams (Cont.) Activity diagrams commonly contain: Activity diagrams commonly contain: –Activity states and action states –Transition Sequential transition, branching, forking and joining. Sequential transition, branching, forking and joining.

13 Introduction of activity diagrams (Cont.) –Objects Swimlane: modeling workflows of business processes. Swimlane: modeling workflows of business processes. Flow of object: Usage of dependency relationships and objects Flow of object: Usage of dependency relationships and objects

14 Modeling a workflow To model a workflow To model a workflow –Establish a focus for the workflow. –Select the business objects. –Identify the conditions of the workflow ’ s states. –Specify the activities and actions and render them in diagrams –Render transitions the connect activity and action states. –Render important objects in the activity diagrams.

15 Modeling a workflow (Cont.)

16 Modeling a operation To model a operation: To model a operation: –Collect the abstractions that are involved in this operation –Identify the precondition and postcondition –Specify the activities and actions and render them in diagrams –Specify conditional paths and iteration. –Use forking and joining to specify parallel flows of control

17 Modeling a operation Signature: one parameter and one return value