file [Video tuto] Hints for UML Communication Diagram

7 years 10 months ago - 7 years 10 months ago #94 by andy
[Update:] The video for this short tutorial is posted at http://youtu.be/ZlCCL2mI6zc


I found this somehow tricky to create UML Communication Diagrams.
Therefore, in this post, I'd like to share few hints on how to create UML Communication Diagram with Modelio 2.

Lets consider an example from http://en.wikipedia.org/wiki/Communication_diagram



The diagram in the example shows that an instance of class A calls an operation op1 in class B, which in its turn calls operations op2 and op3 in classes C and D respectively.

Lets create this model in Modelio.

We start with creating a canvas.

1. Create Commmunication Diagram in Modelio
2. Put few Communication Nodes as in the example. I named them a, b, c and d.
3. Link nodes with Communication Channels as in the example.

See the result here:


Most of the users will stop here. However, if one need to represent more details some more work has to be done.

The diagram in the example shows different instances, classes, and operations called. We need to create them. Thus, we can do it in a separate Class Diagram as shown below.
1. Create classes A, B, C, D with required operations
2. Create instances a, b, c, d
3. Type a, b, c, d with A, B, C, D respectively

You will obtain something like this.




Finally, we can finish our Communication Diagram linking the Communication Nodes with Instances and the Communication Channels with operations.

For this, the steps are the following:
1. For the Nodes choose the relevant instance as the "Represented Feature". See the Element tab for details.

You will obtain something like this.



2. On each communication channel, create a communication message.
You will obtain something like this.



3. For each message, choose the invoked operation in the Element tab.
4. In the same Element tab, enter the right sequence number.

You will finally obtain the required model.

The following user(s) said Thank You: aleb, rear

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.617 seconds
^ Back to Top