Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 16

COLLABORATION DIAGRAM

AIFAZ KHAN
VICKY BORKAR
YASH SAWANT
NIKHIL SINGH
SAURAV MAURYA
WHAT IS A COLLABORATION
DIAGRAM

• Collaboration diagram shows the object organization, It is


also known as Communication diagram
• The diagrams illustrate interactions between objects
• It this the method call sequence is indicated by some
numbering technique
• The number indicates how the methods are called one after
another
IN SIMPLE TERM

• a collaboration diagram is like a visual story that shows


how different parts of a system or project work together. It
uses shapes and lines to represent the various components
(like people, software, or devices) and illustrates how they
communicate and collaborate to achieve a common goal.
It's a way to picture the relationships and interactions
between different elements in a straightforward and easy-to-
understand manner.
PURPOSE OF THE COLLABORATION
DIAGRAM

• 1) Visualize Interactions:
• Purpose: To show how different parts (components or actors) of a
system work together and interact with each other.

2) Understand Relationships:
• Purpose: To help people understand the relationships and connections
between various elements in a system.

3) Clarify Communication:
• Purpose: To clarify how information is exchanged or communicated
between different parts of a system.
COLLABORATION DIAGRAM
ELEMENTS

• There are three primary elements of a collaboration


diagram:
• Objects
• Links
• Messages
Collaboration Diagram Syntax

AN ACTOR

AN OBJECT anObject:aClass

AN LINK

A MESSAGE aMessage()
OBJECTS

•­rectangles containing the object signature­


•object signature:
• object name : object Class
• object name (optional) - starts with lowercase letter
• class name (mandatory) - starts with uppercase letter

•Objects connected by lines ­actor can appear


LINKS

• The connecting lines drawn between objects are links


• They enable you to see the relationships between objects
• This symbolizes the ability of objects to send messages to
each other
• A single link can support one or more messages sent
between objects
MESSAGES

• An interaction is implemented by a group of


objects that collaborate by exchanging messages
• Messages in collaboration diagrams are shown
as arrows pointing from the Client object to the
Supplier object.
• Typically, messages represent a client invoking
an operation on a supplier object
• Message icons have one or more messages
associated with them
• Messages are composed of message text
prefixed by a sequence number
SCENARIO 1

• Draw a collaboration diagram to depict the interaction that


takes place between systems when a librarian calculates the
fine for the borrower of an online media library, after the
due date is elapsed. Librarian first enters the borrower’s id
and the system then verifies it. It then checks for any
outstanding media for the borrower and calculates the fine
amount and displays it.
SCENARIO 1 DIAGRAM
SCENARIO 2

• Draw a collaboration diagram using StarUML for


Online Book shop System. ( Follow your own
assumptions about objects and their interactions)
SCENARIO 2 DIAGRAM
SCENARIO 3

• Draw a collaboration diagram using StarUML for


ATM system withdraw money transaction.
SCENARIO 3 DIAGRAM
THANK YOU

You might also like