


The collaboration diagrams are best suited for analyzing use cases.įollowing are some of the use cases enlisted below for which the collaboration diagram is implemented: Both the sequence and collaboration diagrams represent the same information, but the way of portraying it quite different. The collaborations are used when it is essential to depict the relationship between the object. The receiver must understand the message. The messages are sent from the sender to the receiver, and the direction must be navigable in that particular direction. It is represented by a labeled arrow, which is placed near a link. Messages: It is a communication between objects which carries information and includes a sequence number, so that the activity may take place.The link helps an object to connect with or navigate to another object, such that the message flows are attached to links. It portrays a relationship between the objects through which the messages are sent. Links: The link is an instance of association, which associates the objects and actors.In this, one actor initiates the use case. Each actor has its respective role and name. Actors: In the collaboration diagram, the actor plays the main role as it invokes the interaction.To differentiate one object from another object, it is necessary to name them.In the collaboration diagram, firstly, the object is created, and then its class is specified.A class may constitute more than one object.It is not mandatory for every class to appear.The object is represented by specifying their name and class.In the collaboration diagram, objects are utilized in the following ways: Objects: The representation of an object is done by an object symbol with its name and class underlined, separated by a colon.Notations of a Collaboration Diagramįollowing are the components of a component diagram that are enlisted below: The collaboration diagram, which is also known as a communication diagram, is used to portray the object's architecture in the system. Multiple objects present in the system are connected to each other. Instead of showing the flow of messages, it depicts the architecture of the object residing in the system as it is based on object-oriented programming. Both the sequence and the collaboration diagrams represent the same information but differently. The collaboration diagram is used to show the relationship between the objects in a system.
