addPort
Description
adds one or more ports of type ports
= addPort(archCCM
,portKind
,portNames
)portKind
to component, composition, or
architecture model archCCM
.
For classic architectures, valid values for portKind
are
'Receiver'
and 'Sender'
. For adaptive architectures,
valid values for portKind
are 'Receiver'
,
'Sender'
, 'Client'
, and 'Server'
.
The portNames
argument specifies the names of one or more ports to add.
The archCCM
argument is a component, composition, or architecture
model handle returned by a previous call to addComponent
,
addComposition
, autosar.arch.createModel
, or
autosar.arch.loadModel
. The ports
output
argument returns one or more port handles, which are
autosar.arch.CompPort
or autosar.arch.ArchPort
objects.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020aSee Also
addComponent
| addComposition
| connect
| destroy
| importFromARXML
| layout