Sirius 3.1: A Tutorial about Compartments

Need to provide a better visualization experience to the users of your modeling tools? Download Sirius 3.1 and build awesome diagrams with new graphical options, including compartments and customized border styles.

With Sirius 3.0, it was already possible to create compartments, but we had introduced it as an "experimental" feature since some behaviors were not supported yet. Now, with Sirius 3.1, compartments are fully operational. They allow you to group and stack your model elements within a container. With a better representation, your information is easier to understand!

Containers are diagram elements that contain sub-elements, displayed in a list or with shapes (squares, circle, images, etc) arranged according to user needs. Compartments can be used to group these sub-elements into predefined regions within the container.

When to use containers?

Let’s consider this diagram that represents persons and their parental relationships.

On this diagram, if you focus on Elias, you can directly see his parents (Paul and Isa) and his children (Bryan, Clara, Dave and Fiona). And, as you understand the semantic of the father and mother relationships, you can easily guess who is his sister (Léa), and who are his grandchildren (John, Mary, Sophia, Emma, Fred and Alain).

Rather than representing these “indirect” relationships on this diagram (which would rapidly lead to a real spaghetti nightmare!) you can create an alternative object-centered representation where a person is represented by a container and relationships by compartments: fixed compartments for parents, siblings and children, and a dynamic compartment for the grandchildren that groups grandchildren by their parents.

This new diagram doesn't replace the first diagram with edges. It is just complementary, providing a more synthetical representation.

How does it work?

To get this new diagram, Sirius 3 has introduced two new options for children representation: "Horizontal Stack" and "Vertical Stack". These options define how sub-containers will be organized.


To read more about these compartments, I have written a Compartments Tutorial that explains, step-by-step, how to create the example that illustrates this post.

About the Authors

fred madiot

Frédéric Madiot
Obeo