About this edition
Adapted from The SysML v2 Book, by the sysml-rs contributors, revision 87d74b3. This English edition retains the book’s coffee-machine study, sixteen chapters and appendices A–J. The source edition remains available unchanged. The original generated Language Reference is linked rather than reproduced: its implementation matrix measures a different tool.
What changed
- The worked examples use Open-MBEE OpenSysML MDK 0.12.1. The program name is
sysml. Commands, diagnostics and example outputs describe this implementation, not the language standard. - Examples specify import visibility, declare the signals and features they reference, and distinguish a bound value from an initial value. Control nodes, calculation results, filter predicates and verification objectives use standard notation. Code shown in its surrounding model is distinguished from grammar templates and deliberate counterexamples.
- The figures are static renderings of the supplied model views, not captures of the original viewer. The same model sources are distributed with the book.
- Chapters 15 and 16 and appendices D–F use OpenSysML’s project loading, checking, evaluation, state execution and diagnostic facilities. The chapter on physical models distinguishes a differential equation from a numerical solver; it does not assume an automatic integrator or implicit conservation laws.
The original prose and diagrams and their adaptations are distributed under Creative Commons Attribution 4.0 International. The model snippets and example models are dual licensed under MIT or Apache-2.0. The original authors have not endorsed the changes. See the original license notice.
Where to find the porting changes
| Lesson or appendix | Change in the worked material |
|---|---|
| 2: first model, 4: imports | Use explicit visibility. Check a file or load both sides of an import together; a package import is not a filesystem lookup. |
| 3: definitions, 5: structure, 6: connections | Separate a role from an instance, distinguish undirected ref item from a composite port member, and name the payload feature at each end of a transfer. The connection between two definitions is marked as a counterexample. |
| 7: actions, 8: states | Declare control nodes before wiring them; write each succession between two endpoints. Type the loop variable, declare signal types and separate absolute times from durations. |
| 9: expressions | Bind the calculation result once, supply expression inputs, import the sequence operators and distinguish a rate from integration. |
| 10: verification, 11: integrated model | Put result expressions in their proper bodies. Bind and instantiate the subject. Check a returned verdict separately from a design’s satisfaction claim. Chapter 11’s six displayed packages run together without the lesson vocabulary: the same temperature case passes at 96 °C and fails at 97 °C. |
| 12: variants, 13: views | Replace a reserved variant name. Identify metadata targets, filter on modeled metaclasses/metadata, and use viewpoint usages rather than satisfying a definition by name. |
| 14: libraries | Separate KerML library source from SysML input, and duration and temperature units from scalar magnitudes. |
| 15: projects, 16: running | Load a workspace, round-trip an archive, instantiate a machine, run a timed controller and compare input powers under one heating model. |
| A: syntax, B: migration, G: relationships, H: lexical forms | Provide the owning model context, preserve directions in redefinitions, distinguish grammar from tool diagnostics, and correctly close lexical notes. |
| C: API, D: tools, E: dynamics, F: diagnostics | Replace product-specific commands, diagnostic identifiers, interactive workbenches and solver claims. Keep the standard interchange concepts, state-space model and physical limitations. |