Edd's Knowledge Base

Model-based systems engineering (MBSE) treats the system model, not a pile of documents, as the primary artifact of engineering work. Requirements, structure, behavior, and deployment all live in one connected model, and documents or diagrams are views generated from it. The payoff is that the model can be queried, checked, and analyzed by tools, which is impossible with prose specifications.

From Documents to Models

Document-centricModel-centric (MBSE)
Requirements in Word or PDF filesRequirements are model elements with IDs
Diagrams drawn by hand, detached from the textDiagrams are views of one shared model
Consistency checked by readingConsistency checked by tools and queries
Change means editing many filesChange means editing one element

Modeling Languages

UML (Unified Modeling Language) is the general-purpose software modeling language. SysML (Systems Modeling Language) is a UML profile adapted for systems that mix hardware, software, and people; both are standards of the Object Management Group (OMG). Common diagram types:

DiagramWhat it shows
Use caseActors and the goals they pursue with the system
ClassTypes, attributes, operations, and their relationships
ActivityFlow of steps, decisions, forks, and joins (control flow)
SequenceMessages exchanged between lifelines over time
State machineStates, transitions, and triggers of one element
ComponentReplaceable parts and their interfaces
DeploymentWhich artifacts run on which nodes
flowchart LR
    R["Requirement or use case"] -- "realized by" --> B["Activity / interaction"]
    B -- "uses" --> C["Class and operation"]
    C -- "implemented in" --> K["Component"]
    K -- "packaged as" --> A["Artifact"]
    A -- "deployed on" --> N["Node"]

The chain above is traceability: a link from a requirement or use case to whatever realizes it, down to the deployed artifact. A model with broken traceability is the MBSE equivalent of a requirement nobody implemented.

XMI: the Interchange Format

Modeling tools such as Cameo Systems Modeler (formerly MagicDraw) store models in tool-specific formats. XMI (XML Metadata Interchange, also an OMG standard) is the XML format meant to move a model between tools. An XMI export is a flat list of elements, each with an ID, and relationships refer to other elements by ID. Reading it programmatically means parsing the XML and following those ID references.

Not every XMI record is a “thing in the system”. Typical roles:

  • System elements: actors, use cases, classes, components, activity steps. These become nodes if the model is turned into a graph.
  • Relationships: associations, messages, control flows. These become edges.
  • Supporting records: lifelines, message events, association ends. They exist to tie other elements together and are followed to their real endpoints.
  • Detail records: multiplicities, state triggers, guard text. Useful as attributes, not as nodes.
  • Presentation and profile data: diagram layout and stereotypes describe how the tool draws the model, not the system itself.

Resolving a Sequence Diagram

Sequence diagrams do not link classes directly. A message points to a send event and a receive event, each event points to a lifeline, a lifeline points to the role it represents, and the role has a type, which is a class:

message -> event -> lifeline -> role -> class

Following this chain is what ties interactions to the class model.

Example: an Inventory-Control System Model

A specification model of an inventory-control system exported as XMI contained 416 elements with IDs:

GroupCountTreatment
Things in the system (actors, use cases, classes, components, activity steps)110Graph nodes
Relationships (associations, messages, control flows)113Graph edges
Supporting records (lifelines, message events, association ends)127Followed to real endpoints, then dropped
Detail records (multiplicities, state triggers)65Not in the graph; guard text kept on control-flow edges

The root model wrapper was left out on purpose, since it would connect every view through one node and hide the parts that are actually disconnected.

Typical findings when reviewing such a model:

  • Six disconnected pieces: no trace links from use cases to what realizes them.
  • 4 of 6 use cases had no activity or interaction behind them.
  • Two interactions disagreed on which class triggers the same operation.
  • An actor linked to nothing; a component with no artifact, so it is never deployed.
  • Dependencies present at the artifact level but missing at the component level (layers disagree).
  • Style problems: actors named like processes instead of roles, merges drawn as decision nodes, a join drawn as a fork, and vague guards such as “yes”, “no”, “proceed”.

These checks can be automated once the model is a graph. See Specification Models as Graphs.

Sources

Verification: definitions of MBSE, SysML/UML, and XMI are standard descriptions written without re-fetching the specifications. The OMG links point to the specification landing pages; please check them.