Skip to content

ObjectiveRequirement

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

ObjectiveRequirement

An objective the system must meet (objective requirement usage).

ObjectiveRequirement 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 ObjectiveRequirement

ob1 = ObjectiveRequirement('ob1')
print(ob1.dump())
objective ob1;

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

Related

Clone this wiki locally