systemcomposer.arch.Element

Base class of all model elements

Description

The Element class is the base class for all model elements — Architecture, component, port, and connector. This class inherits from systemcomposer.base.BaseElement.

Creation

Create an architecture, component, port, or connector:

addComponent
addPort
connect

Properties

expand all

<property description>

Example: '91d5de2c-b14c-4c76-a5d6-5dd0037c52df'

Set an external ID that is preserved over the lifespan of the element. The external ID is preserved through all operations that preserve the UUID.

Example: 'network_connector_01'

<property description>

Example: <property example>

Simulink handle for Architecture element. This property is necessary for several Simulink related workflows and for using Simulink Requirement APIs.

Example: name = get(object, 'SimulinkHandle')

Object Functions

applyStereotypeApply a stereotype to a model element
getStereotypesGet the stereotypes applied on the element
removeStereotypeRemove a stereotype from a model element
setPropertySet the property value corresponding to a stereotype applied to the element
getPropertyGet the property value corresponding to a stereotype applied to the element
destroyRemove and destroy a model element

Introduced in R2019a