UML and SysML to AUTOSAR Runnable Code - Operation Specification

This section describes the UML and SysML to AUTOSAR runnable code operation.

This page discusses:

Glossary

Acronym Definition
SPO Software Production Operation
BL Behavior Layer
ML Middleware Layer
BSM Behavior Specific Middleware
TSM Target Specific Middleware

Referenced Documents

Document Internal Reference
UML & SysML to AUTOSAR Runnable Code - Class Code Generator Specification [1]

General Concepts

UML & SYSML to AUTOSAR Runnable Code is an operation producing AUTOSAR Runnable C Code from UML entities. The operation is initiated from an UML entity.

Input Elements

Not applicable

Validation Constraints

Validation Constraints are described in document [1].

Code Generator Specification

Software Production Operation Identity Card

Characteristics Values
Name UML & SysML to AUTOSAR Runnable Code
Nature Component generation
Description This operation generates code from: - UML Component annotated with the SoftwareAtomicComponent stereotype - UML Class annotated with the ARInternalBehavior stereotype
Scan description Scan lists: - UML Component annotated with the SoftwareAtomicComponent stereotype - UML Class annotated with the ARInternalBehavior stereotype
Supported files Files with extensions: - .mdzip - .mdxml
Input objects - UML Class annotated with the SoftwareComposition stereotype - UML Component annotated with the SoftwareAtomicComponent stereotype - UML Class annotated with the ARInternalBehavior stereotype
Return codes -1 : Generation is KO 0 : Generation is OK 1: Input data are incorrect 2: Model contains errors. Code generation cannot be executed.
Feature Generation - 50 credits per selected UML object

Parameters

output parameter

Attributes Values
Name output
Description Optional parameter to specify the output directory in which resources are stored. If null, then the generator generates a folder “UML_to_Cpp“.
Type String
Values [Default]
Multiplicity 0..1

AUTOSAR Mapping parameter

Attributes Values
Name AUTOSAR Mapping
Description Optional parameter to specify AUTOSAR mapping to apply.
Type String
Values [Default]
Multiplicity 0..1

Files Specification

The code generator generates AUTOSAR C Code compliant with AUTOSAR Standard.

If no output folder is specified, files are created by default under a root folder having the UML_to_AUTOSAR_Runnable_Code name.

Any character of the Software Atomic Component name that is not a digit, an ASCII letter, a hyphen (“-”), or an underscore (“”) shall be replaced by an underscore (“”) in the generated folder or file name.

Any UML name that is a C keyword is replaced with an ’_’ in the generated file name.

Usage in CATIA Magic

N/A