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. Watch the exported animation in a Web browser.The collaboration diagram is used to show the relationship between the objects in a system. In the Export to Flash dialog box, specify an output path and click Export.Check the paths and click Export to Flash.Double click on Path1 and rename it into Login valid. Before this, rename the paths for better understanding. Now, let's export the path to Adobe Flash movie.Click the Show Dialog button at the bottom right corner.There is a tiny black ball which walks through the chosen path. Select Path1 and click the Play button.You can see that Path1 refers to the path about valid login, while Path2 refers to invalid login. Select Path1 and observe the highlighted path on diagram. Move the Animation window to elsewhere such that the sequence diagram in background is not being covered.
They refer to the possible execution path you can find on the UML sequence diagram. On the left hand side of the Animation window, two paths are listed.