Represent variant component in System Composer model
This class inherits from systemcomposer.arch.BaseComponent
. A variant component allows you to create
multiple design alternatives for a component.
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.
addChoice | Add variant choices to variant component |
setCondition | Set condition on variant choice |
setActiveChoice | Set active choice on variant component |
getChoices | Get available choices in variant component |
getActiveChoice | Get active choice on variant component |
getCondition | Return variant control on choice within variant component |
getStereotypes | Get stereotypes applied on element of architecture model |
removeStereotype | Remove stereotype from model element |
applyStereotype | Apply stereotype to architecture model element |
destroy | Remove and destroy model element |
getEvaluatedPropertyValue | Get evaluated value of property from component |
getPort | Get port from component |
getProperty | Get property value corresponding to stereotype applied to element |
setProperty | Set property value corresponding to stereotype applied to element |
isReference | Find if component is reference to another model |