Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram

Slides:



Advertisements
Similar presentations
Chapter 3 Requirements Analysis, Negotiation and Modeling Part 3 Dr. Eman Al-Maghary Requirements Engineering.
Advertisements

Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Information System Design IT60105
Extending the Requirements Model - techniques for detailing use cases
CPSC 333: Foundations of Software EngineeringJ. Denzinger Small Test: Bank account manager System has to run on an automated teller machine. User must.
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.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
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.
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Interaction Diagrams Activity Diagram State Machine Diagram
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
Chapter 8: Modelling Interactions and Behaviour
7M822 UML Activity Diagrams 6 October 2008.
Modeling Dynamic Behavior: State and Activity Diagrams.
1COM6030 Systems Analysis and Design © University of Sheffield 2005 COM 6030 Software Analysis and Design Lecture 6 - Use cases and activity diagrams Dr.
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.
INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.
Coming up: Interaction Diagrams
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
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.
CS 325: Software Engineering March 3, 2015 Activity Modeling for Transformational Systems Trtansformational Systems UML Activity Diagrams.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
UML A CTIVITY D IAGRAMS 1 Dr. Hoang Huu Hanh, OST – Hue University hanh-at-hueuni.edu.vn.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
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.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Information System Design IT60105
Coming up: Interaction Diagrams Sequence Diagrams Dan Fleck.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
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.
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.
Information Systems Engineering Activity Diagram 1.
Coming up: Interaction Diagrams Sequence Diagrams Dan Fleck.
Activity Diagrams Textbook References Chapter 6 – Pg. 165 – 171.
Essentials of Visual Modeling w/ UML Instructor Notes
UML Activity Diagrams.
Chapter 3: Introducing the UML
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
Inf 43: Introduction to Software Engineering May 7, 2016.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Activity Diagram.
CHAPTER
Dynamic Modeling of Banking System Case Study - I
Unified Modeling Language
Dynamic Modeling of Banking System Case Study - II
Activity Diagram.
Visit for more Learning Resources
Business System Development
Use Case Modeling - techniques for detailing use cases
Activity Diagrams.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Information Systems Engineering
Appendix 3 Object-Oriented Analysis and Design
Uml diagrams In ooad.
Ch. 28 Larman UML & Patterns
Presentation transcript:

Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram

Objectives To read and write UML activity diagrams To know when and how to use activity diagrams Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

What is an Activity Diagrams? An activity diagram is like a state diagram. Except most transitions are caused by internal events, such as the completion of a computation. It shows actions and of control and data between them. An activity diagram Can be used to understand the flow of work that an object or component performs. Can also be used to visualize the interrelation and interaction between different use cases. Is most often associated with several classes. One of the strengths of activity diagrams is the representation of concurrent activities. Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

What is the purpose of activity diagrams? The basic purposes of activity diagrams are similar to other four diagrams; class diagram, object diagram, sequence diagram and state transition diagram. It captures the dynamic behaviour of the system. Other four diagrams are used to show the message flow from one object to another but activity diagram is used to show message flow from one activity to another. Activity diagram does not show any message flow from one activity to another. Activity diagram is some time considered as the flow chart. Although the diagrams looks like a flow chart but it is not. So the purposes can be described as: Draw the activity flow of a system. Describe the sequence from one activity to another. Describe the parallel, branched and concurrent flow of the system. Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

When to Use Activity Diagrams The activity diagram is suitable for modeling the activity flow of the system. An application can have multiple systems. Activity diagram also captures these systems and describes flow from one system to another. This specific usage is not available in other diagrams. These systems can be database, external queues or any other system. Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols (name of action) start state end state Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols guard is noted on a transition between two activities Action 1 [guard 1] [guard 2] Action 2 Action 3 Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols branch single incoming transition, several guarded outgoing transitions [guard 1] [guard 2] Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols merge multiple incoming transitions, single output Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Example of branch and merge merge node guards branch node Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols fork one incoming transitions and several outgoing transitions Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Activity Diagram symbols joint several income transitions and one outgoing transitions (taken only when all the state on the incoming transactions have completed their activities) Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Example of fork and joint fork node join node Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Example 1 Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Example 2 – Buying Drinks from a Simple Vending Machine Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Swimlanes Activity diagrams are most often associated with several classes. The partition of activities among the existing classes can be explicitly shown using swimlanes. Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Example with swimlanes – Student’s course registration Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Exercise 1 Draw an activity diagram to show the activity of withdrawing money from the ATM machine. Include the following basic activities:- Enter pin Verify the pin Withdraw the money Print the receipt Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Exercise 2 There is one entry gate to a parking lot, which interfaces to the APL controller through a Push-for-ticket button, a Ticket dispenser, and the Entry gate arm. When a driver enters a parking lot by pushing the Push-for-ticket button, tickets will be dispensed from a Ticket dispenser. After the driver removes the ticket, Entry gate arm will be automatically lifted. There is also one exit gate, which interfaces to the APL controller through a Ticket reader, a Credit card reader, and the Exit gate arm. When a driver exits a parking lot by inserting the ticket into the Ticker reader, the parking fee will be computed, which uses the Credit card reader to read the card and then transfers the payment via an external Credit card banking system. When the payment has been collected, Exit gate arm will be automatically lifted. Draw an activity diagram for the exit gate activity. Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005

Chapter 8: Modelling Interactions and Behaviour © Lethbridge/Laganière 2005