Start With the System, Not the Parts List
SysML v2 definitions and usages, and the line I overlooked in our model
Imagine sitting in a meeting, I do, regularly. On the other side of the table sit three stakeholders, each from their own domain. The goal: to agree on which subsystems are needed and how they connect. One option is to sketch it on paper and draw the connections. As the conversation goes into more detail, I find myself rewriting parts. Later that day, or the next, I look at the sketch and try to piece together my own handwriting.
What might look unorganised from the outside was just a normal day at a roundtable discussing architecture. The alternative would be to create the parts, ports and signals in the tool while we speak, interrupting the flow of conversation. And as the conversation advances, I would have to rename them again and again.
With SysML v2’s textual notation, I could simply write the sketch down as we speak. However, because SysML v2 separates what something is from the role it plays, I can take advantage of the definition and usage pattern. In the meeting, I only know that something has to steer and something has to collect the dust. SysML v2 lets me start exactly there: one part for the whole system, and inside it, new parts added as the conversation goes on, without deciding their types first. The decisions can follow the understanding, not the other way round.
The definition and usage pattern
SysML v2 describes almost everything in two halves.
A definition describes a kind of thing: what it is, which attributes it has, which ports it offers, what it can do. It stands on its own, without any context. In the text, you recognise it by the keyword
def:part def Engine.
A usage describes how that kind of thing is used in a specific context. It has a name of its own, and that name describes its role:
part engineLeft : Engine. The definition says what a motor is. The usage says that in this system, there is a motor in the left position.
One definition can have many usages. And every usage has a definition: if not, SysML assumes the most general one, simply “a part”. The same split applies to ports, actions, states and requirements.
The Example
Here is an example of our robot, from the RoboticVacuumCleaner[1]:
part robot {
part navigation;
part vacuuming;
part energySupply;
part controller;
}Nothing here is defined yet. These are all usages: names for the roles things play in this system. Something navigates. Something vacuums. Something supplies energy. These represent the level the conversation is at.
At a later stage, the part navigation has more information added:
part robot {
part navigation {
part engineLeft;
part engineRight;
};
part vacuuming;
part energySupply;
part controller;
}Still no definitions. But now: these two are the same kind of thing. Same interface, same behaviour, different place. That is the moment a definition earns its place:
part def Engine;
part navigation {
part engineLeft : Engine;
part engineRight : Engine;
}One definition. Two usages.
In my previous blog post, I compared working with SysML v2 to object-oriented programming. A definition is close to a class, so it is tempting to read a usage as an object.
It is important to highlight that, while we can compare them, there is no 1:1 translation. engineLeft is not one specific motor with a serial number. It is the left-motor position that every robot of this design has. A usage is closer to a field in a class than to an object.
But a usage can do more than a field. It can carry its own detail. If one variant of the robot uses a smaller battery, I don’t need a new definition. I adjust the usage in that context:
part :>> battery {
attribute :>> capacity = 50;
}Definitions vs usages
In the meeting, nobody talked about types. They talked about roles: something has to detect the obstacle, something has to decide to stop. Usages let the model follow the conversation, instead of the conversation following the model.
Definitions come later, when the understanding is there: when something repeats, when it needs its own specification, or when it goes to a supplier.
And an untyped usage is honest. It says: we know this role exists, but we haven’t decided what fills it yet. The model shows what we know, and what we don’t know yet.
The mistake I made
I would like to say that I always worked this way. I didn’t.
When we started modelling the robot vacuum cleaner in our working group, I did everything by the book. Or rather, by the book I thought I was following. A definition for the engine. A definition for the bumper, the laser tower, the drive controller. A definition for every port and every signal. Packages for each subsystem, imports, documentation.
And, of course, a definition for the robot itself:
part def RoboticVacuumCleaner {
part controllerSystem : Controller;
part navigationSystem : Navigation;
part energySystem : EnergySupplySystem;
part vacuumingSystem : VacuumingSystem;
}Clean. Structured. Reusable.
When I started to add a use case or requirements to the system, I found out I had no system. I had a definition for a system — but no system at all.
The definition, with all its subparts, is a definition for the RoboticVacuumCleaner; in other words, it is the type of which our system consists.
part System : RoboticVacuumCleaner { ... }That is the only place in the whole model where the robot actually exists as a usage. Everything else, every subsystem, every port, every carefully named definition, is a description of what a robot could be made of. A catalogue. And the one line that turns the catalogue into a system was written with a capital letter, as if it were a definition itself, and mainly used as a place to hang requirements on.
We had built the vocabulary and almost forgotten to say the sentence.
Today
Here is my answer today: the model of the system is the usage.
Definitions are the vocabulary. They describe what kinds of things exist, and they are valuable: they make things reusable, reviewable and possible to hand over to someone else.
But a vocabulary alone does not describe a system. The architecture is what we say with it: this motor, in this position, connected to this controller, in this robot.
That is also why the meeting at the beginning was never as unorganised as it looked. The stakeholders were not discussing definitions. They were describing a system, role by role. The napkin sketch was already a model of usages. It was only missing a language that took it seriously.
SysML v2 gives us that language. It lets us start where the conversation starts: with one part for the whole system, and roles inside it. The definitions follow when we understand enough to write them down.
So, next time you sit in an architecture discussion, don’t start with a parts list. Start with the system itself. Give it a name, add the roles as they emerge, and let the definitions follow when something needs to stand on its own.
And if you already have a model full of definitions, try one thing: look for the system itself. Find the line where it actually exists.
You might discover that you have described everything that could make up your system, without ever describing the system itself.
[1]: GfSE/MBSE_AG_vacuum-cleaner-robot-example

Diskussion über diese Post