Asked By
lance sok
10 points
N/A
Posted on - 05/23/2013
I am learner in UML, and I have a doubt in two of their models. The doubt is about sequence diagrams and communication diagrams, I want to know is there any difference between them, I felt some, but need someone to confirm that. Thanks for your time.
Sequence and communication diagrams in UML
Greetings,
Sequence diagram and communication diagram are different kinds of interaction diagram, along with interaction overview and timing diagram. They differ in the way they present information. Sequence diagrams put emphasis on the order in which processes take place and in what order. On the other hand, Communication diagrams show the interactions between elements or objects in terms of sequence in messaging. One may be better than the other, depending on how you wish to present information. A sequence diagram makes following of interactions easier because they are arranged from top to bottom. Drawback is, the diagram can be pretty hard to read when there's too many object interacting. While in communication diagram, the message sequence can be hard to understand, but even if there's too many objects, understanding the information presented can be easier than the sequence diagram.
Sequence diagram
Communication diagram
Sequence and communication diagrams in UML
Dear Lance Sok,
Sequence Diagram focus on order but not focus on how to communicate object each other, So overall scenario of the solution can not be identified.
Communication Diagram focuses on interaction of object not sequence of objects, so overall scenario is clear in big picture, but order of task has not defined.
Â
Hope you will have clear idea now.
Â