System Defined in Software
From visual notation to a language machines can read
At some point in my studies, I learned about object-oriented programming (OOP), where you define an object for a µC with variables and functions. That object would then execute its functions and get information from a sensor, which is its own object in the program.
For the architecture, we only described the relationship between the µC and the sensor. We created an interface that sends information between them, and we defined the information that needed to be sent.
As it should, the architecture holds the idea, and the software executes the idea. It is the implementation that brings the architecture to life.
Fast forward to SysML v2. Most of my interaction with the language was through textual notation, as that was the first part to be implemented. Creating the model textually instead of visually-defining an object with specific attributes, creating an interface, and even defining a second object because of a usage-felt both new and familiar at the same time.
New, because it was weird to see an architecture expressed in words, and familiar because defining an object in a way that felt like software was something I had done for a couple of years before.
Using textual notation for architecture feels like regaining control. You define an element, add its attributes, establish its interfaces and specify how it relates to other elements. You can organise these definitions into separate files and group related elements into folders.
SysML v2 lets you describe the architecture using a textual language without turning the architecture itself into the implementation. The system is still being defined, not the software that executes it.
This feels different from SysML v1, where the primary interaction with the model was through a graphical interface, using the tool to create and connect elements.
With textual notation, you can work directly with the definitions that make up the architecture.
In that respect, the experience comes closer to object-oriented programming (OOP), where software engineers define objects, their attributes and their relationships in code. The difference is not that architecture becomes software. It is that the way we work with architecture starts to resemble the way software engineers work with their code.
To understand why it is important, we need to look at where it came from.
Even though SysML v1 is a formal language, its syntax defines every line as dashed or dotted and every box as having sharp or round corners. Its semantics describe what the relationships between those elements mean. Nevertheless, because it was visual, ambiguity often arose in how people understood its meaning.
With SysML v2 and its textual notation, the ambiguity involved in interpreting the visual representation is reduced. The model can be read like written code. Additionally, diagrams created using visual notation are represented unambiguously by the textual notation.
All of this makes the experience feel more formal, as the textual notation makes it easier to bring architecture into software-style development workflows. This is the idea behind the term "System Defined in Software".
It can be version-controlled, reviewed, diffed, searched and validated by tools. And because machines can read it, the quality-control processes that software engineering has developed over decades - code reviews, automated linting and pull requests—can now be applied to systems architecture too. That is what changed. Not just the notation. The relationship between the architecture and the developer.
By allowing us to treat architecture more like software, SysML v2 enables system development teams to establish their own review processes. Machines can automatically check syntax and structural rules, while engineers evaluate the architectural quality.
With Git, changes to the architecture can be tracked alongside software and hardware releases.
In the last two years, the tools for modelling with SysML v2 have improved considerably, making it easier to get started and create a model. With the help of generative AI, the entry barrier is also lower, as it can help explain the language and guide engineers as they learn.
While the technology has come a long way, the shift in human behaviour remains a big part of the puzzle. That said, there is a lot of change in the air.
A new generation of managers is also bringing more technological experience into leadership positions. This can give them a better understanding of the technical aspects of the systems being developed and help them engage more precisely with the functionality those systems need to provide.
That creates an opportunity to discuss system functionality in greater detail and make architectural decisions with a clearer understanding of what the system needs to do.
While a lot has changed, maybe the question needs to change too: from
"Are we ready?"
to
"When do we begin?"
Back then, defining the relationship between a microcontroller and a sensor was part of describing the architecture, while the software brought that architecture to life. Today, we can take the same approach to making the architecture itself easier to understand, review and change.
We don't have to wait for a new tool or a new modelling language to improve our architecture.
Start with the model you have. Make one relationship more explicit. Add the detail that helps someone else understand your design.
Then do it again.
SysML v2 may not be in use everywhere today. But we can start making our architecture clearer, more reviewable, and easier to change - today.

Diskussion über diese Post