Activity Diagram. C-S 5462 Activity diagram a diagram that represents a sequence of activities similar to flow chart, used in 1960’s and 1970’s an activity.

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.
Vered Gafni, The Design Language of Statecharts.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
GUI Testing. High level System Testing Test only those scenarios and outputs that are observable by the user Event-driven Interactive Two parts to test.
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.
State Machine Diagrams (State Chart in UML 1) Specifying Control (ref: Chapter 11 Bennett, Mc Robb and Farmer)
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
SE-565 Software System Requirements More UML Diagrams.
Algorithm & Flowchart.
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
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.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
Functional Modeling Question How do you know if you have enough information to compute the necessary output values? How do you know if you have.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 3 Outline 3.1 Introduction 3.2 Class Attributes 3.3 Statechart Diagrams.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Analysis Modeling. Function Modeling & Information Flow  Information is transformed as it flows through a computer-based system. The system accepts input.
How many forces can you name?. Objectives Know a range of different forces and understand when they are present. Key terms: Force, effect, motion, balanced,
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Information System Design IT60105
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
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.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML State Diagrams.
CS3773 Software Engineering Lecture 06 UML State Machines.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
Essentials of Counter-Controlled Repetition Counter-controlled repetition requires: Control variable (loop counter) Initial value of the control variable.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
ICS124 Session 9 Flowcharting 1. By the end of this section the student will be able to:  Name the three structures of the Structure Theorem  Identify.
® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Activity Diagram.
ACTIVITY DIAGRAMS 《UML面向对象建模基础》.
State Machine Model.
State Diagram – Advanced Concepts
State Machine Diagram.
TIM 58 Chapter 6, continued: Behavioral Modeling
Use Case Model.
Activity Diagram.
Activity Diagram.
State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
UML Activity Diagrams & State Charts
Lecture 2: Logical Problems with Choices
State Diagrams.
Activity Diagrams.
BPMN - Business Process Modeling Notations
Chapter 5 state Modeling
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.
Software design and architecture
Barlogik Mathsbee (final)
Interaction Models (2): Activity Diagrams
Presentation transcript:

Activity Diagram

C-S 5462 Activity diagram a diagram that represents a sequence of activities similar to flow chart, used in 1960’s and 1970’s an activity is a group of atomic actions an action is indivisible (atomic) task –example: change the value of a variable/field an activity may consist of sub-activities or actions or both in general, activities may be decomposable but actions are not. –activities can be interrupted by events, but actions are not.

C-S 5463 Activity diagram - structure initial action branch subactivity action merge final C ~C C – Boolean expression

C-S 5464 Activity diagram - semantics an activity diagram consists of a collection of action states, subactivities and transitions every activity diagram must have only one initial state and one or more final states –the initial state represents the beginning of the activity and a final state represents the termination of an activity actions are represented by action states (rounded rectangles) a subactivity is also represented by a rounded rectangle but with an icon inside the rectangle

C-S 5465 Activity diagram – semantics (continued) when expanded, each subactivity is diagrammatically substituted with the incoming and outgoing transitions matched –Instructor: explain this with an example sequence of actions is represented by transitions between actions –transitions are simple straight arrows with no labels or parameters –transitions are augmented with conditions at branching

C-S 5466 Activity diagram – semantics (continued) a branch is represented by a diamond –has one incoming transition to enter the branch –two outgoing transitions augmented with mutually exclusive conditions a merger is also represented by a diamond –two or three incoming transitions and one outgoing transition –the outgoing transition will be fired only when both the incoming transitions are fired

C-S 5467 When to use an activity diagram an activity diagram can be used to –describe a use case –describe a method in a collaboration diagram –describe an action associated with a transition in a state diagram, or the entry action or the exit action of a state diagram Caution: the word “action” in state diagram represents a higher level task while the same word in an activity diagram represents an atomic non- divisible computation

C-S 5468 amount > 0 balance  amount balance = balance - amount report error Use case “withdraw” with no overdraft protection true false true

C-S 5469 amount > 0 balance  amount balance = balance - amount report error Use case “withdraw” with overdraft protection ‘N’ represents overdraft limit true false true amount – balance  N report error true false

C-S Exercise – Employment Exchange Draw the activity diagram for the following use cases in the Employment Exchange case study –Login –Change profile –Accept job

C-S Exercise – Traffic Light Draw the activity diagrams for the following use cases in the Intelligent Traffic Light case study: –Change lights –Change red to green arrow