A collaboration diagram is also called communication diagram or interaction diagram. With the help of sequenced message it describe the interactions among objects in. The combination of information taken from class, sequence and use case describing both the static structure and dynamic behavior of a system. Collaboration diagrams are used to show how objects interact to perform the behavior of a particular use case, or a part of a use case. Along with sequence diagrams, collaborations are used by designers to define and clarify the roles of the objects that perform a particular flow of events of a use case. They are the primary source of information used to determining class responsibilities and interfaces.
Objects : An object is represented by an object symbol showing the name of the object and its class underlined, separated by a colon (:).
objectname : classname
The following ways in which we can use the objects in collaboration diagrams:
The figure given below shows object in Collaboration Diagram
Association roles:Association roles describe how an association will behave given a particular situation. We can draw association roles using simple lines labeled with stereotypes.
The figure given below shows how Association works in Collaboration Diagram
Messages: A message is used to communicate with object and convey information with the expected. In collaboration diagrams, a message is shown as a labeled arrow placed near a link. This means that the link is used to transport, or otherwise implement the delivery of the message to the target object. The arrow points along the link in the direction of the target object (the one that receives the message). The arrow is labeled with the name of the message, and its parameters. The arrow may also be labeled with a sequence number to show the sequence of the message in the overall interaction.
The figure given below shows how to send message in Collaboration Diagram
To submit UML Collaboration Diagrams assignment Click here