Image attribution

Gaphor 2.5 highlights

Da Arjan Molenaar (2021-07-02)

With Gaphor 2.5 released it’s about time I write an update post. Main feature is support for STPA, a systems approach to safety engineering. Minor improvements include the ability to move diagrams freely around in the tree view, and an extra option to record notes on model elements.

The internal model used by Gaphor has been simplified.

Finally, we’ll reflect on the changes made in Gaphor 2.3 and 2.4.

Systems Theoretic Process Analysis (STPA)

In the RAAML section the toolbox has been extended with a whole set of items for building system safety models. These models help reasoning about a system, the possible risks and hazards and how to cope with those.

STPA aircraft risk model

Free diagram movement

Up to Gaphor 2.5, diagrams lived in packages. They could not be put elsewhere, like in an interaction or state machine. This lead to a situation where diagrams were not easily discoverable near the model elements they represent. Now it’s possible to move diagrams freely around, allowing you the freedom to organize a model in a way that makes sense.

Diagrams

Take a note

Sometimes, when building a model, you need a little space where you can type some notes, to-do’s or just some thoughts. Previously, the only option was to create a comment and add your notes to a diagram. Of course this is still possible: comments are an excellent way to explain parts of a model. But, we now also provide a private place to take notes. These notes are not visible on the diagram.

Notes

Internal simplifications

Over the past months we (Dan and Arjan) have received some issues where models could not be loaded once they were saved. This is of course undesired. It proved very hard to replicate such issues.

Finally, in Gaphor 2.5 items on a diagram, so called Presentation elements, are treated equally to elements that make up the semantic model (e.g., Classes, Associations). This is a simplification in the way Gaphor has to deal with models. We expect that this will add to the stability of Gaphor.

With the simplification of the internal data model we expect to put a stop to these issues.

Many thanks go to all people who helped out. Even something as simple as an issue report helps make this application better. If you spot an issues, please report them.

2.3 and 2.4

So, what happened with Gaphor 2.3 and 2.4. Well, quite a bit actually:

  • Fault Tree Analysis has been added as part of RAAML
  • C4 model support has been introduced in Gaphor 2.3.
  • The UML model has been updated to UML 2.5 and has been extended by DataType, ValueType, Primitive, and Enumeration. Containment has been added too.
  • Window state is restored when you open a previously opened model. The diagrams that were open are opened for you, so you can instantly continue where you left off.
  • We started with work to port Gaphor to GTK 4, which was released this winter. GTK 4 improves performance on Linux, Windows and macOS. To achieve this we did a fair amount of clean up in the GUI code.

I hope you enjoy using Gaphor. Happy modeling!