The AUTOSAR model can be extended via Model Extensions to support the type-safe editing of predefined AdminData.

Workflow

With Model Extensions, the AUTOSAR model can be extended with additional attributes, references, and child classes for existing meta classes or even with new meta classes. To use Model Extensions in the model, the according SdgDef elements need to be created, which define the meta class to extend and the additional features.

notice

The Model Extensions defined in a SdgDef are only available in the DML after a reload of the model. This can be achieved by closing and reopening the project or by restarting the DaVinci Developer Adaptive application. To be able to directly edit the AdminData content, the preset filter must be removed in the DML Editor (see DaVinci Modeling Language Editor).

Available Elements

Extension Definitions

Meta Class Definitions

Available Element Features

extendsMetaClass

attributes

descEN

caption

Available Attributes

SdgPrimitiveAttribute

SdgAggregationWithVariation

SdgReference

SdgForeignReference

Available Attribute Features

lowerMultiplicity

upperMultiplicity

upperMultiplicityInfinite

max

min

maxLength

minLength

category

subSdg

destSdg

destMetaClass

descEN

variation

notice

All attribute feature definitions must start with a lower-case letter.

Model Extension Examples

The following examples show how to extend an Executable object with all supported extensions, as well as the DML syntax for these extensions.