Chapter 14: Activity Diagrams

Slides:



Advertisements
Similar presentations
1 CIS224 Software Projects: Software Engineering and Research Methods Lecture 6 State Machine and Activity Diagrams (Based on Stevens and Pooley (2006,
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.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
Activity Diagrams [Arlow and Neustadt, 2005] CS 425 / 625 Seminar on Software Engineering University of Nevada, Reno Department of Computer Science & Engineering.
Chapter 5: Advanced Use Case Modeling [Arlow and Neustadt, 2005] CS 426/CPE 426 Senior Projects University of Nevada, Reno Department of Computer Science.
Chapter 7: Classes and Objects Chapter 8: Finding Analysis Classes [Arlow and Neustadt, 2005] CS 426/CPE 426 Senior Projects University of Nevada, Reno.
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
Chapter 5: Advanced Use Case Modeling [Arlow and Neustadt, 2005] CS 426/CPE 426 Senior Projects University of Nevada, Reno Department of Computer Science.
1 CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] February 17, 2009.
1 CS/CPE 426 Senior Projects Chapter 21: State Machines Chapter 22:Advanced State Machines [Arlow and Neustadt 2005] March 24, 2009.
1/31 CS 426 Senior Projects Chapter 1: What is UML? Chapter 2: What is UP? [Arlow and Neustadt, 2005] January 22, 2009.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
1 CS 426 Senior Projects Chapter 1: What is UML? Chapter 2: What is UP? [Arlow and Neustadt, 2002] January 26, 2006.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis Lecture.
Software Design Processes and Management
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
What is UML? What is UP? [Arlow and Neustadt, 2005] January 23, 2014
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
UML A CTIVITY D IAGRAMS 1 Dr. Hoang Huu Hanh, OST – Hue University hanh-at-hueuni.edu.vn.
Valdis Vitolins, Audris Kalnins, EDOC 2005 Semantics of UML 2.0 Activity Diagram for Business Modeling by Means of Virtual Machine.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
Conceptual Modelling – Behaviour
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
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.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 14: Activity Diagrams November 2015 [Arlow and Neustadt, 2005] CS 425/625 Senior Projects University of Nevada, Reno Department of Computer Science.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
UML ACTIVITY DIAGRAM 1. Recap Formal Use Case diagram UML notation for use cases Examples 2.
Chapter 9: Relationships Chapter 10: Inheritance and Polymorphism [Arlow and Neustadt, 2005] CS 426 Senior Projects in Computer Science University of Nevada,
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
Activity Diagrams.
UML Diagrams By Daniel Damaris Novarianto S..
What is UML? What is UP? [Arlow and Neustadt, 2005] October 5, 2017
Activity Diagram.
Activity and State Transition Diagram
Activity Diagram.
Visit for more Learning Resources
UML Diagrams Jung Woo.
State Machine Diagrams
Activity Diagrams.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
UML Activity Diagrams & State Charts
CS/CPE 426 Senior Projects
Chapter 7: Classes and Objects Chapter 8: Finding Analysis Classes
Chapter 5: Advanced Use Case Modeling
Chapter 4: Use Case Modeling
Chapter 14: Activity Diagrams
Activity Diagrams.
Chapter 19: Interfaces and Components
CS/CPE 426 Senior Projects
Chapter 19: Interfaces and Components
Activity diagram It supports visual representation of sequences of actions that target a certain result. May be built for one or many use cases or for.
Chapter 4: Use Case Modeling
Chapter 14: Activity Diagrams
CS 791Z State Machines & Advanced State Machines
Interfaces and Components
Chapter 19: Interfaces and Components
Presentation transcript:

Chapter 14: Activity Diagrams CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] University of Nevada, Reno Department of Computer Science & Engineering

Outline Activity diagrams Introduction Activities Nodes Action nodes Control nodes Object nodes Activity parameters Pins Activity diagrams

Introduction: Chapter roadmap Activity diagrams 3

Introduction: What are activity diagrams? A form of “object-oriented flowcharts” In UML 1 they were special cases of state machines; in UML 2 they have new semantics, based on Petri Nets Greater flexibility to model different types of flow Clearer distinction between activity diagrams and state machines Activity diagrams

Introduction: What are activity diagrams? Activity diagrams [continued]: Attached to modeling elements to describe behavior Typically attached to use cases, classes, components, interfaces, and operations Can also be used to model business processes and workflows Activity diagrams

Introduction: Where are activity diagrams used? Commonly used in: Analysis To model the flow of a use case To model the flow between use cases Design To model details of an operation To model details of an algorithm Business modeling To model a business process As always in modeling, it is important to keep them simple and understandable by their intended audience Activity diagrams

Activities Activity diagrams are networks of nodes connected by edges Action nodes – atomic units of work within the activity Control nodes – control the flow through the activity Object nodes – represent objects used in the activity Edges Control flows – depict the flow of control through activity Object flows – depict the flow of objects through activity Activity diagrams

Activities Activities and actions can have pre- and post-conditions Tokens (part of semantics but not shown graphically) abstractly flow in the network and can represent: The flow of control An object Some data Activity diagrams

Activities A token moves from a source node to a target node across an edge depending on: Source node post-conditions Edge guard conditions Target node preconditions Activity diagrams

Activities Example of an activity (“send letter”) Activity diagrams

Activities Activity diagrams can model use cases as a series of actions. Activity diagrams

Activities Activity diagrams have semantics based on Petri Nets They model behavior using the token game Tokens move through the network subject to conditions Object nodes represent objects flowing around the system Activity diagrams

Activities Activity diagrams can be divided in partitions (swimlanes) using vertical, horizontal, or curved lines. Activity diagrams

Action nodes Action nodes execute when: There are tokens present at all their input nodes AND The input tokens satisfy all action node’s local preconditions Activity diagrams

Action nodes After execution, the local post-conditions are checked; if all are satisfied, the node simultaneously offers tokens to all its output edges (this is an implicit fork that may give rise to many flows) Naming convention: Activity diagrams

Action nodes Types of action nodes, Table. 14.1 [Arlow & Neustadt 2005] Activity diagrams

Action nodes A call action node invokes an activity, behavior, or operation, Fig. 14.11 Activity diagrams

Action nodes An accept time event action node responds to time Activity diagrams

Control nodes Control nodes manage the flow of control within an activity Activity diagrams

* Control nodes * Examples of decision and merge nodes Activity diagrams

Control nodes Examples of join and fork nodes Activity diagrams

Object nodes Object nodes indicate that instances of a particular classifier are available at a specific point in the activity They are labeled with the name of the classifier and represent instances of that classifier or its subclasses The input and output edges are object flows Activity diagrams

Object nodes Object flows are special types of flow that describe movement of objects within the activity The objects are created and consumed by action nodes When an object node receives an object token on one of its input edges, it offers this token to all its output edges, which compete for the token Activity diagrams

Object nodes Object node notation and their buffer semantics. Object nodes act as buffers – places in the activity diagram where object tokens can reside while waiting to be accepted by other nodes (via edges). Activity diagrams

Object nodes Examples of using object nodes Activity diagrams

Activity parameters Activities can have object nodes to provide inputs and outputs. Activity diagrams

Pins A pin is an object node that represents an input to or output from an action node. Pins can simplify activity diagrams that use many object nodes. Activity diagrams