collaboration diagram | communication link | similar to an instance diagram except that it does not show links of associations | | class diagrams | A UML interaction diagram showing a set of objects connected by communications links | aspects of a design pattern | as a graph with a set of objects and actors as the vertices | the relationships that exist among objects and actors | a communication link between each pair of objects involved in the sending of a message; the messages themselves are attached to this link |
sequence diagram | lifeline | better than collaboration diagram when:- You want the reader to be able to easily see the order in which messages occur
- You want to build an interaction model from a use case
- You need to show details of messages, such as parameters and return values
| objects from left to right across the diagram with an actor that initiates the interaction often shown on the left | | A UML interaction diagram showing the sequence of messages exchanged by the set of objects and optionally an actor. Actors and objects are on one axis, and time is on the other | time as the vertical dimension with time progressing downwards to the bottom of the diagram | | the sequence of messages exchanged by the set of objects (and optionally an actor) performing a certain task | more or less detail depending on what you wish to communicate |