Skip to content

Interface

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

Interface

A point of interaction between parts (interface usage).

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

powerPort = Interface('powerPort')
print(powerPort.dump())
interface powerPort;

Definition

from sysml2py import Interface

d = Interface('powerPort', kind='definition')
print(d.dump())
interface def powerPort;

Related

Clone this wiki locally