Main Content

systemcomposer.arch.VariantComponent

Represent variant component in System Composer model

Description

This class inherits from systemcomposer.arch.BaseComponent. A variant component allows you to create multiple design alternatives for a component.

Creation

varComp = addVariantComponent(archObj,compName)

The addVariantComponent method creates an object method on the systemcomposer.arch.Architecture class, and then creates a systemcomposer.arch.VariantComponent object.

Properties

expand all

Architecture that owns variant component, returned as a systemcomposer.arch.Architecture object.

Input and output ports of variant component, returned as systemcomposer.arch.ComponentPort objects.

Architecture owned by variant component, returned as a systemcomposer.arch.Architecture object.

Architecture of the active variant choice, returned as a systemcomposer.arch.Architecture object.

Object Functions

addChoiceAdd variant choices to variant component
setConditionSet condition on variant choice
setActiveChoiceSet active choice on variant component
getChoicesGet available choices in variant component
getActiveChoiceGet active choice on variant component
getConditionReturn variant control on choice within variant component
getStereotypesGet stereotypes applied on element of architecture model
removeStereotypeRemove stereotype from model element
applyStereotypeApply stereotype to architecture model element
destroyRemove and destroy model element
getEvaluatedPropertyValueGet evaluated value of property from component
getPortGet port from component
getPropertyGet property value corresponding to stereotype applied to element
setPropertySet property value corresponding to stereotype applied to element
isReferenceFind if component is reference to another model
Introduced in R2019a