Class that represents component or view component
The Component
class represents a component in the architecture
model. This class inherits from systemcomposer.arch.BaseComponent
.
Create a component in an architecture model:
model = systemcomposer.createModel('archModel'); arch = get(model,'Architecture'); component = addComponent(arch,'NewComponent');
saveAsModel | Save architecture to separate model |
createSimulinkBehavior | Create Simulink model and link component to it |
linkToModel | Link component to a model |
inlineComponent | Inline reference architecture into model |
makeVariant | Convert component to variant choice |
isReference | Find if component is reference to another model |
connect | Create architecture model connections |
applyStereotype | Apply stereotype to architecture model element |
getStereotypes | Get stereotypes applied on element of architecture model |
removeStereotype | Remove stereotype from model element |
setProperty | Set property value corresponding to stereotype applied to element |
getProperty | Get property value corresponding to stereotype applied to element |
destroy | Remove and destroy model element |
getPort | Get port from component |
getEvaluatedPropertyValue | Get evaluated value of property from component |