Professional Documents
Culture Documents
Dynamic UML
Dynamic UML
Dynamic UML
METHODOLOGIES
OBJECT DIAGRAM
12/07/16
States
Sequences
Collaborations
Activities
DYNAMIC MODELING
DIAGRAMS
1.
2.
3.
4.
ACTIVITY DIAGRAMS
10
ACTIVITY DIAGRAMS
13
14
15
States are rounded rectangles. Transitions are arrows from one state
to another.
Events or conditions that trigger transitions are written beside the
arrows. Our diagram has two self-transition,
self-transition one on Getting SSN and
17
another on Getting PIN.
LOGGING IN SYSTEM
The initial state (black circle) is a dummy to start
the action. Final states are also dummy states
that terminate the action.
The action that occurs as a result of an event or
condition is expressed in the form /action.
While in its Validating state, the object does not
wait for an outside event to trigger a transition.
Instead, it performs an activity. The result of
that activity determines its subsequent state.
18
12/07/16
19
20
12/07/16
21
ACTIVITY DIAGRAMS
The process begins at the black start circle at the top and ends
at the concentric white/black stop circles at the bottom.
The activities are rounded rectangles.
22
12/07/16
23
12/07/16
either
24
JOIN
12/07/16
25
12/07/16
26
ACTIVITY DIAGRAM
Core symbol is an activity.
An activity is some task which needs to be done.
Each activity can be followed by another activity
(sequencing).
Triggers from the activity may be guarded as in
state diagrams.
DECISION ACTIVITIES
Diamond.
Each
ACTIVITY DIAGRAM
29
Shopping
12/07/16
Online
30
12/07/16
31
LAB
12/07/16
Pathology
32
12/07/16
33
AIRPORT SYSTEM
process of getting through an airport to
board a plane. This business process involves
four participants:
12/07/16
The
34
12/07/16
35
State
Diagrams
State
Activity
Emphasize
Coming up:
Sequence Diagrams
12/07/16
SEQUENCE DIAGRAM
37
SEQUENCE DIAGRAMS
12/07/16
12/07/16
THE NOTATION
12/07/16
41
42
SEQUENCE DIAGRAM
Coming up:
Components
SEQUENCE DIAGRAM
Lower = Later!
Coming up:
Components
COMPONENTS
Objects: aStudent is a specific
instance of the Student class
Specific
Instance of an
Object
Generic (unnamed)
Generic
objects(unnamed)
Coming up:
Components
COMPONENTS
execution
lifeline
Coming up:
Components
COMPONENTS
Method call
Return value
Coming up:
Components
12/07/16
50
12/07/16
51
12/07/16
54
55
horizontal dimension shows, left to right, the object instances
that the messages are sent to.
56
PURPOSE OF A SEQUENCE
DIAGRAM
It
57
LIFELINES
12/07/16
58
MESSAGES
The first message of a sequence diagram always starts at the
top and is typically located on the left side of the diagram for
readability.
Subsequent messages are then added to the diagram slightly
lower then the previous message.
12/07/16
59
COMBINED FRAGMENTS
ALTERNATIVES, OPTIONS, LOOPS
A combined fragment is used to group sets of
messages together to show conditional flow in a
sequence diagram.
12/07/16
Alternatives:
60
12/07/16
61
62
63
SEQUENCE DIAGRAMS
12/07/16
64
65
.
12/07/16
object life
lines)
represent
time
66
12/07/16
The objects across the top of the diagram (Customer, Search Page, etc.) are
interacting with each other by passing messages back and forth. The vertical
dotted lines (or object life-lines) represent time, so the process shown in the
diagram begins with the topmost message
(Customercalling onSearch()on Search Page).
The boundary object and entity object icons from robustness diagram.
However, that there are no controller objects on the sequence diagram
(although there could be). This is because when you draw the sequence
diagrams, the controllers (the verbs) are turned into messages on the
boundary and entity objects (the nouns).
Sometimes youll find real controller classes, such as a manager or a
dispatcherclass, and sometimes a framework might tempt you to litter your
design with dozens of tiny controller classes, but as a general rule of
thumb, 80% or so of the controllers from the robustness diagrams can be
implemented as one or more operations on the entity and boundary classes.
The focus of control represents the time that a particular method/function has
control. It starts with the arrow going into the function and finishes when
the
67
function returns.
RULES OF THUMB
Rarely
use options
These
Create
Remember:
SUMMARY
Sequence diagrams model object interactions with an
emphasis on time ordering
Method call lines
Must be horizontal!
Vertical height matters!
Lower equals Later
Label the lines
COLLABORATION DIAGRAM
12/07/16
71
CONT
messages between objects are shown as
arrows connecting the relevant rectangles along
with labels that define the message sequencing.
Collaboration diagrams are best suited to the
portrayal of simple interactions among relatively
small numbers of objects. As the number of
objects and messages grows, a collaboration
diagram can become difficult to read
12/07/16
The
72
COLLABORATION DIAGRAMS
A
The
The
COLLABORATION DIAGRAM
AN EXAMPLE
12/07/16
76
78
12/07/16
79
12/07/16
80