Create AUTOSAR Architecture from System Composer Model
You can convert a System Composer™ Component (System Composer) or architecture model to an AUTOSAR architecture model. You can select Classic or Adaptive Platform. For classic architecture modeling, data interfaces are supported. For adaptive architecture modeling, data interfaces and service interfaces are supported.
Create AUTOSAR Architecture from System Composer Component
To convert a System Composer component to an AUTOSAR architecture model, use one of these methods:
In your System Composer architecture model, right-click the component and select
Create AUTOSAR Architecture Model
.Select the component. In the toolstrip, on the Modeling tab, in the Component section, click Create AUTOSAR Architecture Model.
Use the
createArchitectureModel
(System Composer) function with theClassicAUTOSARArchitecture
orAdaptiveAUTOSARArchitecture
option for themodelType
argument.
During the process, inline subcomponents are created as:
A Classic Component or an Adaptive Component if the subcomponent does not contain other components
A Software Composition if the subcomponent does contain other components
If the component being exported has a defined behavior, the software updates
configuration parameters for the linked implementation model to support AUTOSAR
modeling. Under Solver, the Type parameter
changes to Fixed-step
and the Solver
parameter changes to auto
. Under Code
Generation, the System target file changes to
autosar.tlc
for classic architectures or
autosar_adaptive.tlc
for adaptive architectures.
After exporting, observe the AUTOSAR icon in the upper left corner. The new AUTOSAR architecture contains the elements from the component, including the previously applied stereotypes.
Create AUTOSAR Architecture from System Composer Architecture Model
To export your model as a different architecture type, use one of these methods:
In the toolstrip, on the Simulation tab, click the Save button arrow, then select a model type.
Once you select model type, you can specify the New model name and the Destination folder. You must also specify Platform and select Configure behavior models for AUTOSAR.
Export your model programmatically using the
systemcomposer.exportToAUTOSARArchitecture
(System Composer) function.
Limitations
Model elements in an existing System Composer model that are not supported in an AUTOSAR architecture are removed from your model when exported. These elements include:
A nonunique short name.
Local interfaces.
Client ports or server ports in AUTOSAR classic architecture models.
Adapter (System Composer) blocks with
UnitDelay
,RateTransition
, orMerge
as the applied interface conversion. The applied interface conversion changes toNone
for these Adapter blocks.Variant Component (System Composer) blocks.
Reference components referencing a system or software architecture.
systemcomposer.arch.Function
(System Composer) objects. Functions are not supported in AUTOSAR Software Composition.
Related Topics
- Export Architecture Model to Software or AUTOSAR Architecture (System Composer)
- Author AUTOSAR Classic Compositions and Components in Architecture Model
- Add and Connect AUTOSAR Classic Components and Compositions
- Add and Connect AUTOSAR Adaptive Components and Compositions
- Design Software Architectures (System Composer)