UserAttributes::UserAttributedElement

Header Image
Content:
UserAttributedElement : Public Class UserAttributes
UserAttributedElement is used to attach user attribute values to any EAST-ADL or AUTOSAR element, i.e. all instances of all subclasses of Identifiable. What user attributes a certain element should be supplied with can be defined beforehand with UserElementTypes.<br/><br/>According to a common EAST-ADL meta-modeling pattern, the meta-classes that are attributable, i.e. to which user attributes may be attached, do not inherit from meta-class UserAttributedElement but instead UserAttributedElement points to these meta-classes via association "attributedElement" (for example, to allow attaching user attributes to AUTOSAR Identifiable that cannot inherit from EAST-ADL infrastructure meta-classes).<br/><br/>The actual values are given as a contained instance of EAValue and are provided with a definition through the UserAttributeDefinitions in the UserElementType. If more than one value is contained, then the same number of UserElementTypes/UserAttributeDefinitions must be referenced and the order of values and definitions must be consistent (see constraint no. 2 below).<br/><br/>Example: let us assume that a DesignFunctionType "WiperSystem" should be provided with the value "OK" for a user attribute "Status". This is achieved by creating an instance of UserAttributedElement pointing via association "attributedElement" to instance "WiperSystem", pointing via instance "uaType" to the UserElementType with a UserAttributeDefinition "Status" and containing via containment association "uaValue" an EAStringValue "OK".<br/><br/>Semantics:<br/>UserAttributedElement can be annotated with user attributes.<br/><br/>Constraints:<br/>[1] The associations "uaValue" and the uaDefinitions of all "uaType"s must refer to the same number of elements.<br/>[2] The order of associations "uaValue" and "uaType" / "uaDefinition" must be consistent, i.e. the n-th EAValue must correspond to the n-th UserAttributeDefinition when listing all UserElementTypes' definitions in depth-first order.<br/><br/>Extension:<br/>Class<br/>
  • Associations
  • Associations From
  • Advanced
  • Other Links
Element Source Role Target Role
Identifiable
Class  
Name:  
 
Name: attributedElement
The element to which one or more user attribute values are attached.
Details:
 
UserElementType
Class  
Name:  
 
Name: uaType
The custom type(s) of this element.
Details:
 
Element Source Role Target Role
«atpPrototype» EAValue
Class  
Name: uaValue
An ordered set of values attached to the element given by association "attributedElement". These values must conform in number, order and datatype to the user attribute definitions of the UserElementTypes given by association "uaType" (in depth-first order).
Name:  
 
Details:
 
Property Value
isFinalSpecialization: 0
Object Type Connection Direction Notes
EAPackageableElement Class Generalization To  
«atpPrototype» EAValue Class Strong From