Main Content

systemcomposer.arch.ComponentPort

Represents input and output ports of component

Description

This class inherits from systemcomposer.arch.BasePort.

Creation

A component port is constructed by creating an architecture port on the architecture of the component.

addPort(compObj.Architecture,portName,'in')

compPortObj = getPort(compObj,portName)

Properties

expand all

Name of port, returned as a character vector.

Data Types: char

Port direction, returned as a character array with values 'Input' and 'Output'.

Data Types: char

Name of interface associated with port, returned as a character vector.

Data Types: char

Interface associated with port, returned as a systemcomposer.interface.SignalInterface object.

Port connectors, returned as a systemcomposer.arch.Connector object.

Whether port has connections, returned as a logical or numeric value 1 (true) or 0 (false).

Data Types: logical

Component that owns port, returned as a systemcomposer.arch.Architecture object.

Architecture port within the component that maps to port, returned as a systemcomposer.arch.ArchitecturePort object.

Object Functions

connectCreate architecture model connections
setNameSet name for port
setInterfaceSet interface for port
createAnonymousInterfaceCreate and set anonymous interface for port
applyStereotypeApply stereotype to architecture model element
getStereotypesGet stereotypes applied on element of architecture model
removeStereotypeRemove stereotype from model element
setPropertySet property value corresponding to stereotype applied to element
getPropertyGet property value corresponding to stereotype applied to element
destroyRemove and destroy model element
getEvaluatedPropertyValueGet evaluated value of property from component
Introduced in R2019a