(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Collaboration diagram- UML diagram
1. Duration: 3hrs
1
Ramakant Soni
Assistant Professor
Dept. of Computer Science
B K Birla Institute of Engineering & Technology, Pilani, India
Ramakant Soni @ BKBIET Pilani
2. Collaboration Diagram Definition
Collaboration Diagrams captures dynamic behavior of
the objects in the system (message-oriented).
They are very useful for visualizing the relationship
between objects collaborating to perform a particular
task.
Ramakant Soni @ BKBIET Pilani 2
Their purpose is to:
Model flow of control
Illustrate coordination of object structure and control
3. Collaboration Diagram Elements
There are three primary elements of a collaboration
diagram:
1. Objects
2. Links
3. Messages
Ramakant Soni @ BKBIET Pilani 3
3. Messages
4. What it represents?
Collaboration Diagrams illustrate object interactions in a graph or
network format.
Ramakant Soni @ BKBIET Pilani 4
5. Notations used for Collaboration Diagrams
To show an instance of a class, the
regular class box graphic symbol is
used, but the name is underlined.
Additionally a class name should be
preceded by a colon.
Ramakant Soni @ BKBIET Pilani 5
An instance name can be used to
uniquely identify the instance.
7. “Self” Messages
A message can be sent from an object to itself.
This is illustrated by a link to itself, with messages flowing along the link.
Ramakant Soni @ BKBIET Pilani 7
8. Conditional Messages
A conditional message is shown by following a sequence number with
a conditional clause in square brackets, similar to the iteration clause.
The message is sent only if the clause evaluates to true.
Ramakant Soni @ BKBIET Pilani 8
9. Iteration or Looping
Iteration is indicated by following the
sequence number with a star( * ).
This expresses that the message is being
sent repeatedly, in a loop, to the
Ramakant Soni @ BKBIET Pilani 9
sent repeatedly, in a loop, to the
receiver.
It is also possible to include an iteration
clause indicating the recurrence values.