systemcomposer.arch.ComponentPort
Component port
Description
A ComponentPort object represents the input, output, and
physical ports of a System Composer™ component. This class inherits from systemcomposer.arch.BasePort. This class is derived from systemcomposer.arch.Element.
Creation
A component port is constructed by creating an architecture port on the architecture of
the component using the addPort
function, then getting the component port using the getPort
function.
addPort(compObj.Architecture,'portName','in'); compPortObj = getPort(compObj,'portName');
Properties
Object Functions
setName | Set name for port |
connect | Create architecture model connections |
getConnectorTo | Find connector between ports |
setInterface | Set interface for port |
createInterface | Create and set owned interface for port |
applyStereotype | Apply stereotype to model element |
getStereotypes | Get stereotypes applied on model element |
changeStereotype | Change currently applied stereotype to new stereotype in its stereotype hierarchy |
removeStereotype | Remove stereotype from model element |
setProperty | Set property value corresponding to stereotype applied to element |
getProperty | Get property value corresponding to stereotype applied to element |
getPropertyValue | Get value of architecture property |
getEvaluatedPropertyValue | Get evaluated value of property from element |
getStereotypeProperties | Get stereotype property names on element |
hasStereotype | Find if element has stereotype applied |
hasProperty | Find if element has property |
getQualifiedName | Get model element qualified name |
lookup | Search for architectural element |
current | Get object of currently selected element |
Examples
More About
Version History
Introduced in R2019a
See Also
Functions
iterate|current|getQualifiedName|lookup|systemcomposer.createModel|systemcomposer.loadModel|systemcomposer.openModel|open|save|close|createArchitectureModel|createArchitectureSubsystem|linkToModel|inlineComponent|addComponent|getComponent|addPort|getPort|setName|getSubElement|getPortElement|getConnectorTo|connect|setMaskImage|IsAdapterComponent|addAdapter|addInput|getInput|connectTo|updatePosition|addMapping|removeMapping|smartConnect|getUnconnectedPorts|getSmartConnectPolicy|setSmartConnectPolicy|destroy
Objects
systemcomposer.arch.Element|systemcomposer.arch.Architecture|systemcomposer.arch.Component|systemcomposer.arch.Adapter|systemcomposer.arch.ArchitecturePort|systemcomposer.arch.PortElement|systemcomposer.arch.Connector|systemcomposer.arch.PhysicalConnector





