systemcomposer.arch.VariantComponent

Represent a variant component in a System Composer model

Description

This class inherits from systemcomposer.arch.BasePort.

Creation

varComp = addVariant(archObj,compName)

The addVariantComponent method is the constructor for the systemcomposer.arch.VariantComponent class.

Properties

expand all

Architecture that owns this variant component, specified as systemcomposer.arch.Architecture object.

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

Architecture directly owned by this variant component, specified as systemcomposer.arch.Architecture object.

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

Object Functions

addChoiceAdd a variant choice to a variant component
setConditionSet the condition on the variant choice
setActiveChoiceSet the active choice in the variant component
getChoicesGet available choices in the variant component
getActiveChoiceGet the active choice on the variant component
getConditionReturn the variant control on the choice within the variant component
destroyRemove and destroy a model element

Introduced in R2019a