README
¶
Examples
This directory contains example SysML v2 models.
OMG Training Examples
The official OMG SysML v2 training examples are not included in this repository.
Download them with:
./scripts/download-training-examples.sh
That fetches sysml/src/training from the pinned pilot release
(https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation) into
sysml-v2-training/, which is gitignored.
Status: the corpus gate's current result is in docs/project/training-examples.md, with the files that still report errors and why.
Walkthroughs
Each of these is a model and a walkthrough of the commands that exercise it.
| Model | Walkthrough | What it demonstrates |
|---|---|---|
| disposal-robot-demo/robot.sysml | disposal-robot-demo/README.md | one bomb-disposal robot, end to end: structure, calculations, an action with a fork/join, a branch and a nested flow, a hierarchical state machine an object exhibits, assignment through a feature chain, the solver commands, the view renderings, and the same questions from Python |
| disposal-team-demo/team.sysml | disposal-team-demo/README.md | the team around that robot, written for what the robot demo does not reach: quantities with units, select and reduce over a fleet, a message crossing the connector two parts are joined by, an occurrence with a snapshot and a timeslice, and a requirement, use case, verification case and analysis case over the same subject |
| relay-probe-demo/mission.sysml | relay-probe-demo/README.md | one individual probe across its mission phases: event occurrences ordered in time, snapshots and a timeslice of one individual, occurrences with multiplicity, a calculation reading across two snapshots, a requirement whose subject is a snapshot, and a beacon inside a timeslice sending telemetry through its probe's own port |
| solver-demo.sysml | SOLVER-DEMO.md | %check, %explain, %solve, %configure and %optimize — what conditions can hold, which conflict, what satisfies them, which variants are permitted, what is best (needs z3 or cvc5) |
| views-demo.sysml | VIEWS-DEMO.md | %view and %render — the five rendering kinds, the text/Mermaid/Markdown forms, viewpoint conformance and filtered exposure |
| action-executor-demo.sysml | ACTION-EXECUTOR-DEMO.md | executing actions, and stepping one in the REPL |
parser_features_demo_*.sysml/.kerml |
PARSER_FEATURES_DEMOS.md | the notation the parser accepts, feature by feature |
Other Examples
Additional example models may be added to this directory. SysML v2 files use the .sysml
extension and KerML files use .kerml.
Click to show internal directories.
Click to hide internal directories.