SdgDef
An SdgDef groups several SdgClasses which belong to the same
extension. The concept of an SdgDef is similar to a UML Profile. An
SdgClass specifies the name and structure of the Sdg that may be
used to store proprietary data in an AUTOSAR model. The SdgClass is
similar to a UML stereotype. The AUTOSAR model can be extended via
Model Extensions (MEX) to support the type-safe editing of predefined
AdminData.
|
Usually, it is not necessary to create |
Available Elements
Available Element Features
descEN
-
The description for this
SdgClass. -
Descriptions can contain Markdown content which will be recognized by the DML.
-
Note that other languages are available as well; English is the default.
-
Note that this description will not override the description of the meta class to extend and is only used for information purposes.
Available Attributes
SdgPrimitiveAttribute
-
Used to define a simple attribute for a
SdgDefelement (for example Integer, Boolean, String).
SdgAggregationWithVariation
-
Used to define child relations like single children and lists of sub classes defined by Meta Class Definitions.
Available Attribute Features
|
All attribute feature definitions must start with a lower-case letter. |
lowerMultiplicity
-
Specifies the minimal number of times an object shall occur. If this primitive attribute is not set or 0, then the object is optional.
upperMultiplicity
-
Specifies the maximum number of times an object may occur. If this primitive attribute is not set, then there is no limit with respect to the maximum occurrence. For an unspecified amount please use
upperMultiplicityInfiniteinstead.
upperMultiplicityInfinite
-
This explicitly specifies, that the upper multiplicity is not restricted.
-
Note that the use of
upperMultiplicityInfiniteandupperMultiplicityis mutually exclusive.
Category
-
The category is a keyword that specializes the semantics of the Identifiable. It affects the expected existence of attributes and the applicability of constraints. It defines the type of a
SdgPrimitiveAttribute. The following types are available:-
INTEGER
-
FLOAT
-
STRING
-
BOOLEAN
-
ENUMERATION (enumeration values need to be defined in
AdminData, see example) -
AUTOSAR (cannot be used to represent an actual type, but to add a constraint for an existing AUTOSAR model attribute)
-