Descriptive slides for the Collaboration Diagrams in UML
Size: 1.42 MB
Language: en
Added: Apr 26, 2015
Slides: 18 pages
Slide Content
Duration: 3hrs
1
RamakantSoni
Assistant Professor
Dept. of Computer Science
B K Birla Institute of Engineering & Technology, Pilani, India
Ramakant Soni @ BKBIET Pilani
Collaboration Diagram Definition
CollaborationDiagramscapturesdynamicbehaviorof
theobjectsinthesystem(message-oriented).
Theyareveryusefulforvisualizingtherelationship
betweenobjectscollaboratingtoperformaparticular
task.
Ramakant Soni @ BKBIET Pilani 2
Their purpose is to:
Model flow of control
Illustrate coordination of object structure and control
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
What it represents?
Collaboration Diagrams illustrate object interactions in a graph or
network format.
Ramakant Soni @ BKBIET Pilani 4
Notations used for Collaboration Diagrams
Toshowaninstanceofaclass,the
regularclassboxgraphicsymbolis
used,butthenameisunderlined.
Additionallyaclassnameshouldbe
precededbyacolon.
Ramakant Soni @ BKBIET Pilani 5
Aninstancenamecanbeusedto
uniquelyidentifytheinstance.
Links, Messages and Return Value
Ramakant Soni @ BKBIET Pilani 6
“Self” Messages
Amessagecanbesentfromanobjecttoitself.
Thisisillustratedbyalinktoitself,withmessagesflowingalongthelink.
Ramakant Soni @ BKBIET Pilani 7