![]() ![]() This is difficult to determine from a sequence diagram. So, why would you use communication diagrams? First of all, they are very useful for visualizing the relationship between objects collaborating to perform a particular task. Of the two types of interaction diagrams, sequence diagrams seem to be used far more than communication diagrams. The main distinction between them is that the communication diagram arranged elements according to space, the sequence diagram is according to time. They're semantically equivalent, that is, the present the same information, and you can turn a communication to a sequence diagram and vice versa. The communication diagram and the sequence diagram are similar. according to when they occur.Ĭommunication Diagram vs Sequence Diagram Messages sent during the same call have the same decimal prefix, but suffixes of 1, 2, etc.Each message in a communication diagram has a sequence number.Messages that objects send to themselves are indicated as loops (e.g., message message5).Ĭommunication Example - Hotel Reservation.Object1 first sends Object2 the message message1, Object2 in turn sends ObjectN-1 the message message2, and so on.The sample messages passed between objects are labeled 1: message1, 2: message2, 3: message3, etc., where the numerical prefix to the message name indicates its order in the sequence.Messages passed between objects are represented by labeled arrows that start with the sending object (actor) and end with the receiving object.The objects are Object1, Object2, Object., ObjectN-1.In the example (generic communication diagram): In the example of the notation for a communication diagram, objects (actors in use cases) are represented by rectangles. Support the identification of objects (hence classes), and their attributes (parameters of message) and operations (messages) that participate in use cases.Model alternative scenarios within use cases or operations that involve the collaboration of different objects and interactions.Capture interactions that show the passed messages between objects and roles within the collaboration scenario. ![]() Model mechanisms within the architectural design of the system.Model message passing between objects or roles that deliver the functionalities of use cases and operations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |