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

Actor

Someone or something that interacts with the system (actor usage).

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

Operator = Actor('Operator')
print(Operator.dump())
actor Operator;

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

Related

Clone this wiki locally