Document 9652054

Download Report

Transcript Document 9652054

Matakuliah
Tahun
: Konsep object-oriented
: 2009
ACTIVITY DIAGRAMS
Pertemuan 20
A Student Guide to Object-Oriented
Development
Chapter 8 Activity diagrams
Activity diagrams
• show the internal flow of control in a process
• can be used to model processing at different levels e.g.
– high-level workflows in an organization
– detail of what happens in a use case
– detail of how an operation works
Activity diagrams
• can be used to represent
– sequence
– selection
– iteration
• can also illustrate where different activities can be
carried out in parallel
Modelling a sequence of activities
Notation
activity
start state; only one allowed on each activity
diagram or subdiagram
stop state; more than one can appear on
the same diagram
transition from one activity to another
diamond indicates beginning (branch)
and end (merge) of behaviour that depends
on certain conditions being satisfied
[condition]
condition indicates whether a particular
transition will be taken
? ? ?
synchronization bar indicates start (fork)
or end (join) of parallel processing
swimlane indicates which agent, person
or object is responsible for a set of
activities
Modelling alternative courses of action (1)
Modelling alternative courses of action(2)
Modelling iteration of activities
Modelling activities that are carried out in
parallel(1)
Modelling activities that are carried out in
parallel(2)
Alternative and parallel activities
Swimlanes
In alternative activities the diamond
symbol may be omitted
Including objects and object flows