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

State

A state in a state machine (state usage).

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

Idle = State('Idle')
print(Idle.dump())
state Idle;

Definition

from sysml2py import State

d = State('Idle', kind='definition')
print(d.dump())
state def Idle;

Related

Clone this wiki locally