Beruflich Dokumente
Kultur Dokumente
UML 2.0
Ahmad Irfani
Courtesy:Debenedetti Emanuele
Contents
Activity diagrams
[order reject]
Receive
Order
Fill
Order
Close
Order
Ship
Order
[order
accepted]
Send
Invoice
Invoice
Make Payment
Accept
Payment
Some definitions
Actions
Pins
Output pins
Input pins
Stand-alone
style
Parameter Sets
group of parameters
the action can only accept inputs
from the pins in one of the sets
the action can only provide outputs
to the pins in one of the sets
Output is provided only to
the first or to the second set
value
3.14
Compute
circumference
8
Activities
Input
parameter
Parameter
name
Parameter
name
Activity
edges
Parameter
name
Output
parameter
10
Activity nodes
Options
Object nodes
Activity nodes
Selection
Token competion
14
New notations
ActivityPartition
Pre & post condition
SendSignalAction
Time triggers and Time events
AcceptEventAction
InterruptibleActivityRegion
Exception
ExpansionRegion
15
Example go to Genova
Car crash
local precondition
Have a license
Turn on
the car
[on car]
[else]
Go to
Heaven/Hell
;)
To
motorway
tollgate
Fill up
with
fuel
Catch
the
ticket
Get
luggage
ready
Pay the
ticket
Exit to
Genova
tollgate
[on train]
Go to
Heaven/
Hell ;)
The train
derail
Go to the
station with
a friend
Buy the
ticket
Obliterate
the ticket
Catch
the train
The friend
goes home
When the train
arrives
to Genova
Go home
with bus
Get off
the train
[else]
Study
for 5
minutes
16
Bibliography
A or B ?
18
19
20
21
22
Flow final:
destroys the tokens that arrive into it
the activity is terminated when all tokens in the graph are
destroyed
Final node:
the activity is terminated when the first token arrives
intentional race
between flows
23
Object nodes
Activity Parameter
Nodes
Pins
(three differents notations)
Central
Buffer
Nodes
Data
Store
Nodes
24
25
26
is equivalent to
is equivalent to
29
<<transformation>>
transformation
specification
Selection
Edge - chooses the order on which tokens are offered from the
source object node to the edge (overrides any selection present
on the object node, that is object node ordering)
31
Token competition
ActivityPartition (1)
33
ActivityPartition (2)
Partition
notated to
occur outside
the primary
concern of
the model
34
35
36
SendSignalAction
37
38
AcceptEventAction
InterruptibleActivityRegion
40
Exceptions (1)
Exceptions (2)
Protected
node with
two nested
activities
HandlerBody
node
Successful end
42
ExpansionRegion (1)
43
ExpansionRegion (2)