Main Content

setDefaultPortStereotype

(Removed) Set default stereotype for ports

The setDefaultPortStereotype function has been removed. You can set a default port stereotype using the function setDefaultElementStereotype. For further details, see Compatibility Considerations.

Description

setDefaultPortStereotype(stereotype,stereotypeName) specifies the default stereotype stereotypeName of the ports on the architecture of a parent component that has stereotype applied.

Input Arguments

collapse all

Stereotype, specified as a systemcomposer.profile.Stereotype object.

Default stereotype name for ports, specified as a character vector or string in the form '<profile>.<stereotype>'.

Data Types: char | string

Version History

Introduced in R2019a

collapse all

R2021b: setDefaultPortStereotype function has been removed

The setDefaultPortStereotype function has been removed in R2021b. Use setDefaultElementStereotype instead.