Chapter2-2 DynamicAnalysis AD
Chapter2-2 DynamicAnalysis AD
UML
2015-2016
Activity
diagram
Plan
Objectives
Key Concepts & Graphical Representation
Activity diagram
Objectives
3
Activity diagram
4
Activity diagram
❖ Transitions are triggered by the end of one activity and cause the immediate
start of another (they are automatic).
5
Diagramme d’activités
Control Nodes
Control node is an abstract activity node used to coordinate flows between nodes in
an activity.
There are several types of control nodes:
⮚ Initial node
⮚ Final node
⮚ Decision node
⮚ Merge node
⮚ Fork node
⮚ Join node
6
Activity diagram
Key Concepts & Graphical Representation
Bifurcation and union node
• Represented by a synchronization bar.
• Allows to open and close parallel branches within an execution flow:
❑ Disjunctive synchronization : bifurcation (Fork)
⮚Breakdown of the flow into two or more flows.
⮚Transitions that start from a synchronization bar take place at the same time.
⇒ A disconnection node is used to split a single incoming flow into several
simultaneous flows.
⮚Conjunctive synchronization: union (join)
⮚Recomposition of the flow.
⮚A synchronization bar is crossed only after all the related transitions have been
completed.
⇒ Control node that synchronizes multiple simultaneous incoming flows into a
single outgoing flow.
7
Activity diagram
Bifurcation
Node
Union Node
8
Activity diagram
Key Concepts & Graphical Representation
Decision Node
Is a control node that allows a choice to be made
between multiple outgoing flows.
Represents a decision with alternative paths.
9
Activity diagram
Key Concepts & Graphical Representation
Decision node
Exemple : order verification
Valid Order ?
10
Activity diagram
Key Concepts & Graphical Representation
Fusion node
Is a control node that combines multiple incoming alternate streams into a single
outgoing stream.
❖It is used to bring together different decision paths created using a decision node.
❖It is not used to synchronize competing flows but to accept one of several flows.
11
Activity diagram
Key Concepts & Graphical Representation
Iteration
order
12
Activity diagram
Example
13
Activity diagram
Key Concepts & Graphical Representation
Swimlanes
14
Activity diagram
Activity diagrams indicate what happens without specifying who does what (in
programming terms, they do not specify which class is responsible).
15
Case study: MyCar
16