addPort
Add ports to architecture
Syntax
Description
adds a set of ports with names specified by ports
= addPort(arch
,portNames
,portTypes
)portNames
and the types
specified by portTypes
. The addPort
function adds
ports to the architecture of a component or the root architecture of the model. Use
<component>.Architecture
to access the architecture of a
component.
To remove a port, use the destroy
function.
also applies the stereotypes specified in ports
= addPort(arch
,portNames
,portTypes
,stereotypes
)stereotypes
to a set of new
ports.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2019a
See Also
Functions
iterate
|getQualifiedName
|lookup
|systemcomposer.createModel
|systemcomposer.loadModel
|systemcomposer.openModel
|open
|save
|close
|createArchitectureModel
|createArchitectureSubsystem
|linkToModel
|inlineComponent
|addComponent
|getPort
|setName
|connect
|setMaskImage
|IsAdapterComponent
|smartConnect
|getUnconnectedPorts
|getSmartConnectPolicy
|setSmartConnectPolicy
|destroy
Objects
systemcomposer.arch.Element
|systemcomposer.arch.Architecture
|systemcomposer.arch.Component
|systemcomposer.arch.ComponentPort
|systemcomposer.arch.ArchitecturePort
|systemcomposer.arch.Connector
|systemcomposer.arch.PhysicalConnector