systemcomposer.arch.Component

Class that represents component or view component

Description

The Component class represents a component in the architecture model. This class inherits from systemcomposer.arch.BaseComponent.

Creation

Create a component in an architecture model:

model = systemcomposer.createModel('archModel');
arch = get(model,'Architecture');
component = addComponent(arch,'NewComponent');

Properties

expand all

Name of component, returned as a character vector.

Data Types: char

Handle to parent architecture that owns component, returned as a systemcomposer.arch.Architecture object.

Architecture that defines component structure, returned as a systemcomposer.arch.Architecture object. For a component that references a different architecture model, this property returns a handle to the root architecture of that model. For variant components, the architecture is that of the active variant.

Architecture that component owns, returned as a systemcomposer.arch.Architecture object. For components that reference an architecture, this property is empty. For variant components, this property is the architecture in which the individual variant components reside.

Array of component ports, returned as an array of systemcomposer.arch.ComponentPort objects.

Array of component ports, returned as an array of systemcomposer.arch.ComponentPort objects. For reference components, this property is empty.

If linked component, name of model that component references, returned as a character vector.

Data Types: char

Object Functions

saveAsModelSave architecture to separate model
createSimulinkBehaviorCreate Simulink model and link component to it
linkToModelLink component to a model
inlineComponentInline reference architecture into model
makeVariantConvert component to variant choice
isReferenceFind if component is reference to another model
connectCreate architecture model connections
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
getPortGet port from component
getEvaluatedPropertyValueGet evaluated value of property from component
Introduced in R2019a