Professional Documents
Culture Documents
Ooad 3
Ooad 3
Ooad 3
Dynamic Modeling
Sequence Diagrams
Sequence diagrams are used to model the potential
way the system is used.
A model scenario may be a Use-Case or part of a
Use-Case.
Sequence diagrams can also be used to describe
the logic of a complex operation, function, or
procedure.
Sequence diagrams are also used for analysis and
design purposes.
if...then...else constructs.
Option fragment (denoted pt") models switch
constructs.
Loop fragment (denoted "loop") models
.
Collaboration Diagrams
Unlike a sequence diagram, a collaboration diagram
shows the relationships among the object roles.
On the other hand, a collaboration diagram does
not show time as a separate dimension, so the
sequence of messages and the concurrent threads
must be determined using sequence numbers.
Elements
The elements of collaboration diagrams are:
Object
Link
Message
Session-8
State Machine Diagrams
13
14
Session-9
Object Diagrams
25
Object Diagrams
Object diagrams, also known as instance
diagrams, are useful for representing "real world"
objects and the relationships between them.
An object diagram may be considered a special
case of a class diagram. They are useful in
understanding class diagrams.
26
Relationships
Objects can take part in aggregation,
composition, dependency relationships like class
diagrams also.
31
32
33
Recursive Relationships
Object diagrams are useful in explaining recursive
relationship
34
35