systemcomposer.arch.Component
System Composer component
Description
A Component
object represents a component in a System Composer™ model. This class inherits from systemcomposer.arch.BaseComponent
. This class is derived from systemcomposer.arch.Element
.
Creation
Create a component in an architecture model using the addComponent
function.
model = systemcomposer.createModel('archModel'); arch = get(model,'Architecture'); component = addComponent(arch,'newComponent');
Properties
Object Functions
createArchitectureModel | Create architecture model from component |
createArchitectureSubsystem | Create architecture subsystem from component |
createSimulinkBehavior | Create Simulink behavior and link to component |
createStateflowChartBehavior | Add Stateflow chart behavior to component |
linkToModel | Link component to model |
linkToFMU | Link component to FMU |
inlineComponent | Remove reference architecture or behavior from component |
makeVariant | Convert component to variant choice |
isFMU | Determine component link to Functional Mockup Unit (FMU) |
isProtected | Determine component reference model is protected |
isReference | Determine component reference to another model |
IsAdapterComponent | Determine component is adapter |
connect | Create architecture model connections |
getPort | Get port from component |
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 |
getPropertyValue | Get value of architecture property |
getEvaluatedPropertyValue | Get evaluated value of property from element |
getStereotypeProperties | Get stereotype property names on element |
hasStereotype | Find if element has stereotype applied |
hasProperty | Find if element has property |
getParameter | Get parameter from architecture or component |
getEvaluatedParameterValue | Get evaluated value of parameter from element |
getParameterNames | Get parameter names on element |
getParameterValue | Get value of parameter |
setParameterValue | Set value of parameter |
setUnit | Set units on parameter value |
resetParameterToDefault | Reset parameter on component to default value |
getQualifiedName | Get model element qualified name |
lookup | Search for architectural element |
destroy | Remove model element |
Examples
More About
Version History
Introduced in R2019a
See Also
Functions
iterate
|getQualifiedName
|lookup
|systemcomposer.createModel
|systemcomposer.loadModel
|systemcomposer.openModel
|open
|save
|close
|createArchitectureModel
|createArchitectureSubsystem
|linkToModel
|inlineComponent
|addComponent
|addPort
|getPort
|setName
|connect
|setMaskImage
|IsAdapterComponent
|smartConnect
|getUnconnectedPorts
|getSmartConnectPolicy
|setSmartConnectPolicy
|destroy
Objects
systemcomposer.arch.Element
|systemcomposer.arch.Architecture
|systemcomposer.arch.ComponentPort
|systemcomposer.arch.ArchitecturePort
|systemcomposer.arch.Connector
|systemcomposer.arch.PhysicalConnector