addComponent
Syntax
Description
adds one or more components specified in the components
= addComponent(archCM
,compNames
)compNames
argument to
composition or architecture model archCM
.
The archCM
argument is a composition or architecture model handle
returned by a previous call to addComposition
,
autosar.arch.createModel
, or
autosar.arch.loadModel
. The components
output
argument returns one or more component handles, which are
autosar.arch.Component
objects.
allows you to specify the component type for all added components. Valid classic component
types are components
= addComponent(archCM
,compNames
,'Kind',value
)Application
(the default for classic modeling),
SensorActuator
, ComplexDeviceDriver
,
EcuAbstraction
, and ServiceProxy
. The valid adaptive
component type is AdaptiveApplication
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020aSee Also
Classic Component | Adaptive Component | addComposition
| addPort
| connect
| destroy
| importFromARXML
| layout