ACTIVITY DIAGRAMS 《UML面向对象建模基础》.

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.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
© 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
UML Activity Diagrams In UML an activity diagram is used to display the sequence of actions They show the workflow from start to finish Detail the many.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
© Copyright Eliyahu Brutman Programming Techniques Course.
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.
Unified Modeling Language
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Chapter 7 Structuring System Process Requirements
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
Conceptual Modelling – Behaviour
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Information System Design IT60105
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
© 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.
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.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Chapter 3: Introducing the UML
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
 To explain why the context of a system should be modelled as part of the RE process  To describe behavioural modelling, data modelling and object modelling.
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
UML ACTIVITY DIAGRAM 1. Recap Formal Use Case diagram UML notation for use cases Examples 2.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
UML (Unified Modeling Language)
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.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
Method – Notation 8 Hours.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
UML Chapter 17.
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
Chapter 4: Business Process and Functional Modeling, continued
The Movement To Objects
State Machine Diagrams
Unified Modeling Language
Activity Diagram.
Activity and State Transition Diagram
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Activity Diagram.
Visit for more Learning Resources
State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Business System Development
IMAT5205 Systems Analysis and Design
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Appendix 3 Object-Oriented Analysis and Design
Interaction Models (2): Activity Diagrams
Business Process Modeling Notation (BPMN)
Presentation transcript:

ACTIVITY DIAGRAMS 《UML面向对象建模基础》

Knowledge Map

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Overview of the Activity Diagram Activity diagram is another important diagram in UML to describe dynamic aspects of the system. It captures the dynamic behaviour of the system. The activity diagram is used to show message flow from one activity to another. Activity diagrams are a technique to describe procedural logic, business process, and work flow . It can be used to business process, workflow modeling, can also be used to model case or even program implementation. In UML 2, activity diagrams were not seen as special Cases of state diagrams.

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Read the Simple Activity Diagram

The Main Elements of the Activity Diagram Initial nod and final node:With a solid circle to represent the initial node, with a circle plus a solid circle to represent the end of the event Action:Is one of the most important elements of the activity diagram, which is used to represent an activity Convert: When an activity is over, the control flow is immediately passed to the next active node, called "conversion" in the activity diagram, with a straight line with arrows

The Main Elements of the Activity Diagram Flow/edge:The branch is represented by a diamond, and it has an entry transition (arrows are pointed out from the branch)One or more departures (arrows from the branchPointing out). And each will leave the conversion have a guard condition that is used to indicate what is satisfied condition when the implementation of the conversion. join:

Modified Simple Activity Diagram

Activity Diagram with Swim Lane

Activity Diagram with Object Stream

Complex Activity Diagram Auxiliary activity diagram : connector : you must use them in pairs: one with incoming flow, one with an outgoing flow, and both with the same label. But sometimes, you want to do some constraints, then you can use the description of the convergence to complete. The rendezvous description is actually a constraint, and its format is "{constraint condition}".

Complex Activity Diagram Send signal and receive signal :

Complex Activity Diagram Pin: Indicates the corresponding parameter of the action 扩展区:

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Draw Activity Diagram “Activity diagram” is more intuitive and easy to understand; with the traditional flow chart is very similar, as long as you can read the activity diagram, it is not difficult to draw the activity diagram. When deciding whether to use the swim lane first: mainly based on the activity diagrams to reflect the activities of the different implementers. And then use the basic modeling elements such as join, merge to describe the activity control process. If necessary, add the object stream and the state changes of the object, using some advanced modeling elements (such as auxiliary activity diagram, confluence description, send signal and receive signal, pin, extended area) to represent more information The key to modeling the activity diagram is to show the control flow, and the other modeling elements are complementary to the purpose

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Use Activity Diagrams Modeling of Workflows: For business modeling, each swim lane represents a unit of responsibility, which effectively reflects the job responsibilities, the scope of business, and the relationship between the units, the information . The following strategies should be followed when modeling: Create a focus for the workflow, unless you are involved in the system is very small, it is impossible in a picture shows all the control flow in the system Choose a business object with a high level of responsibility for all of the workflows and create a swim lane for each important business object Identify the preconditions of the initial nodes of the workflow and the postconditions of the active endpoints, which effectively model the boundaries of the workflow.

Use Activity Diagrams Start with the initial node of the workflow, illustrate the actions and activities that occur over time, and represent them as action in the activity diagram Integrate complex activities or multiple occurrences of activities into an action and represent them through ancillary activity diagrams or sub-activity diagrams Find the connection to these active nodes, first from the order of the workflow, and then consider the branch, and then consider the bifurcation and convergence If the workflow involves important objects, you can also add them to the activity diagram If there are multiple enablements in the workflow, you can use the expansion area

The following strategies should be followed when modeling: Use Activity Diagrams Modeling the operation: Each object occupies a swim lane, and the activity is the member method of the object The following strategies should be followed when modeling: -- the abstract concept involved in the collection operation, including the parameters of the operation, the type of return, the attributes of the class, and some neighboring classes -- the preconditions of the initial node that identifies the operation and the postcondition of the active end point. Also identify the information that must be maintained during the execution of the operation -- start from the initial node of the operation, describe the activities that occur over time, and represent them as actions in the activity diagram -- If necessary, use a branch to describe conditional statements and loop statements -- Only when this operation belongs to an active class, it is necessary to use bifurcation and convergence to illustrate the parallel control flow

Agenda Overview of the Activity Diagram How to read the Activity Diagram? How to draw Activity Diagram? Where to use Activity Diagrams? Summary

Summary First introduced the "activity diagram" of the historical changes; one by one to introduce a simple activity diagram, with swim lanes of the activity diagram, with the object flow of the activities of the reading method It explains the basic modeling elements such as actions, initial nodes and activity final, flow, merge and fork, and gradually leads to control flow logic such as lane and object flow Introduces the concept of auxiliary activity diagram, converging descriptions, sending signals and received signals, pins and expansion regions Finally, a general description of the activities of the drawing points, combined with the workflow modeling and operational modeling of the similarities and differences between.