Skip to content

Transition

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

Transition

A transition between states (transition usage).

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

IdleToActive = Transition('IdleToActive')
print(IdleToActive.dump())
transition IdleToActive;

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

Related

Clone this wiki locally