autosar.arch.CompPort
R2026bAUTOSAR component or composition port in architecture model
Description
An autosar.arch.CompPort object represents a port on an AUTOSAR
software component or composition in an AUTOSAR software architecture model. Use this object
to query port properties and assign interfaces to ports.
Creation
Create an autosar.arch.CompPort object by using the addPort function
to add a port to an autosar.arch.Component or autosar.arch.Composition object.
port = addPort(comp,"Receiver","RecvPort") ports = addPort(comp,"Sender",{"SndPort1","SndPort2"})
port =
CompPort with properties:
Name: 'RecvPort'
Interface: []
Kind: 'Receiver'
Connected: 0
Parent: [1×1 autosar.arch.Component]
SimulinkHandle: 7.0001find function or
by accessing the Ports property of a component or composition.Properties
Object Functions
setInterface | Assign port interface to AUTOSAR component, composition, or architecture port |
getArchPort | Get architecture port corresponding to component or composition port |
destroy | Remove and delete AUTOSAR architecture element |
Examples
Version History
Introduced in R2021a