Skip to content

Subject

Jasper Quillweld edited this page Oct 20, 2026 · 1 revision

Subject

The subject of a requirement or use case (subject usage).

Subject is one of the friendly builder classes — the name without a Builder/Usage/Definition suffix. It is a subclass of Builder and produces a *Usage node.

Usage

from sysml2py import Subject

theSatellite = Subject('theSatellite')
print(theSatellite.dump())
subject theSatellite;

Subject has no definition form — Subject('X', kind='definition') raises ValueError, because SysML v2 has no subject definition construct. (The generator refuses rather than emit something it can't cast back.)

Related

Clone this wiki locally