Generic Structure Template AUTOSAR FO R20-11
Total Page:16
File Type:pdf, Size:1020Kb
Generic Structure Template AUTOSAR FO R20-11 Document Title Generic Structure Template Document Owner AUTOSAR Document Responsibility AUTOSAR Document Identification No 202 Document Status published Part of AUTOSAR Standard Foundation Part of Standard Release R20-11 Document Change History Date Release Changed by Description AUTOSAR • Extend Splitable 2020-11-30 R20-11 Release • Migration of document to standard Management FO • Refine Splitable AUTOSAR • Extent AttributeValueVariationPoint 2019-11-28 R19-11 Release • Introduce TracableTable Management • Changed Document Status from Final to published AUTOSAR • Update Splitable 2018-10-31 4.4.0 Release • Include ARMQL Management • Refine atp.Status AUTOSAR • Introduction of FileInfoCmmment 2017-12-08 4.3.1 Release • Ordered collections Management • Naming conventions in variant handling patterns • Extend AttributeValuePattern for enumeration AUTOSAR • Editorial changes 2016-11-30 4.3.0 Release • Control the production of Management specification documents • Added section on Special Data Group Definitions AUTOSAR • Update View Approach 2015-07-31 4.2.2 Release • Combinations of status values Management • Update Inline Text Model Element 1 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 AUTOSAR 2014-10-31 4.2.1 Release • Propagation of LifeCycleState Management • Editorial changes AUTOSAR • Update of blueprint topics 2014-03-31 4.1.3 Release • Extension of variant handling topics Management • Editorial changes AUTOSAR 2013-10-31 4.1.2 Release • Editorial changes Management • Extension of formula language • Editorial changes including tagged specification items AUTOSAR • Support of build action manifest 2013-03-15 4.1.1 Administration • Support of roles and rights • Added life cycle support • Support of collections and collectable elements • Editorial changes including tagged specification items • Improvements in UML usage (M3), especially mark obsolete elements • Improved specification of primitives, AUTOSAR primitive definition, formula 2011-12-22 4.0.3 Administration language, category • Improved variant handling and blueprint support • Improved support for instanceRef and arrays • Improved definition of package structures • Editorial changes • Improvements in variant handling (Package content, composed predefined variants) • Align Formula language with ASAM AUTOSAR 2009-12-18 4.0.1 General Expression Language Administration • Generalized approach for anntoations • Improved aligment with ASAM - FSX • Document the admin.* uml tags. • Support global referenceing and tracing 2 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 • restructured the document • support for variant handling • support for abstract structures AUTOSAR 2010-02-02 3.1.4 • documentation support Administration • detailed primitives • general modeling information required to understand other templates • Legal disclaimer revised AUTOSAR 2008-08-13 3.1.1 • Rename document from "Template Administration Modeling Patterns" to "Generic Structure Template" • Updated Attributes of Identifiable AUTOSAR 2007-12-21 3.0.1 • Added "Hint to the Users" Administration • Added document identification no • Added document classification AUTOSAR • Legal disclaimer revised 2007-01-24 2.1.15 Administration • "Advice for users" revised • "Revision Information" added AUTOSAR 2006-05-16 2.0 Second release Administration 3 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 Disclaimer This work (specification and/or software implementation) and the material contained in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the companies that have contributed to it shall not be liable for any use of the work. The material contained in this work is protected by copyright and other types of intel- lectual property rights. The commercial exploitation of the material contained in this work requires a license to such intellectual property rights. This work may be utilized or reproduced without any modification, in any form or by any means, for informational purposes only. For any other purpose, no part of the work may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher. The work has been developed for automotive applications only. It has neither been developed, nor tested for non-automotive applications. The word AUTOSAR and the AUTOSAR logo are registered trademarks. 4 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 Table of Contents 1 Introduction 14 1.1 Scope.................................... 14 1.2 Document Conventions........................... 15 1.3 Methodology for Defining Formal Templates............... 17 1.4 Organization of the Meta-Model...................... 19 2 Usage of UML in AUTOSAR Templates 21 2.1 UML Diagrams............................... 21 2.2 The AUTOSAR meta-model hierarchy.................. 21 2.3 Stereotypes................................. 23 2.3.1 Mixed Content (atpMixed, atpMixedString).. 26 2.3.2 StructuredComment Elements (atpStructuredComment)............... 28 2.4 UML Tags.................................. 28 3 AUTOSAR Top Level Structure 38 3.1 Identifying M1 elements in packages................... 40 3.2 The role of ARPackage, ARElement and Identifiable et. al........ 45 4 General Template Classes 48 4.1 ARObject - Common Attributes for all Classes.............. 48 4.2 Packages in AUTOSAR.......................... 48 4.3 Referrable and Identifiable......................... 52 4.3.1 Name spaces and uniqueness of shortName ........ 61 4.4 Administrative Data............................. 62 4.5 Special Data - Extension Mechanism................... 65 4.5.1 Special Data........................... 65 4.5.2 Special Data Definitions..................... 71 4.6 Model Restriction Types.......................... 82 4.6.1 Restriction of Simple Primitive Values............. 82 4.6.2 Restriction of Multiplicities.................... 83 4.6.3 Restriction of use of Variation.................. 83 4.7 Primitive Types............................... 85 4.8 Formula Language............................. 98 4.8.1 Applying Formula Language.................. 99 4.8.2 Formula Language Definition.................. 101 4.8.2.1 Operators in arithmetic expressions.......... 107 4.8.2.2 Mathematical functions in arithmetic expressions.. 108 4.8.2.3 Implementation details of a Formula Processor... 110 4.8.2.4 Resulting Data Types of Formula Expressions.... 116 4.8.2.5 Examples for the Formula Language expressions.. 118 4.9 AUTOSAR Model Query Language (ARMQL).............. 119 4.9.1 Applying ARMQL........................ 120 4.9.1.1 LET Block........................ 120 5 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 4.9.1.2 Expressions....................... 122 4.9.1.3 FOR Block........................ 123 4.9.1.4 WHERE Block..................... 123 4.9.2 ARMQL Definition........................ 124 4.9.2.1 Grammar........................ 124 4.9.2.2 Types and Values.................... 128 4.9.2.3 LET Block........................ 130 4.9.2.4 FOR Block........................ 131 4.9.2.5 WHERE Block..................... 134 4.9.2.6 Predefined Functions and Objects.......... 136 4.9.2.7 Non-Strict Evaluation in every parameter....... 140 4.9.2.8 Scoping and Visibility Rules.............. 140 4.9.2.9 Blueprint Derivation and Variable Interpolation.... 143 4.10 EngineeringObject............................. 143 4.11 Annotations................................. 146 4.12 MultiDimensionalTime........................... 147 4.13 TagWithOptionalValue........................... 149 5 AbstractStructure 151 5.1 Reusable Structural Hierarchies...................... 153 5.1.1 Motivation............................ 153 5.1.2 Types, Prototypes and Structure elements.......... 154 5.1.3 Instance Refs.......................... 159 5.1.4 Any Instance Refs........................ 164 5.1.4.1 AnyInstanceRef applied to Implementation- DataTypeElement.................... 164 6 Metamodeling Patterns and Model Transformation 166 6.1 Notation for Pattern Application...................... 168 6.2 Pattern Specification............................ 169 6.3 Model Transformations applied in the Meta-Model............ 170 6.3.1 Implementing primitives................ 170 6.3.2 Implementing Associations as References.......... 171 6.3.2.1 Absolute ShortName-path.............. 173 6.3.2.2 Relative ShortName-path............... 174 6.3.2.3 Destination Type.................... 181 6.3.3 atpObjectARObject................... 182 7 Variant Handling 184 7.1 Introduction................................. 184 7.1.1 A Quick Overview........................ 185 7.1.2 Variant Handling and Methodology............... 186 7.1.3 How Variant Handling is implemented in the meta-model.. 187 7.1.4 Not every element in the meta-model may be variant..... 189 7.1.5 Variation Points are optional, even for variant elements... 190 7.1.6 A note on Binding Times.................... 190 7.1.7 A note on the impact of Variant Handling on the XML Schema 191 6 of 498 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate Generic Structure Template AUTOSAR FO R20-11 7.1.8 Patterns are independent of each other............ 191 7.1.9 A note on multiplicities in the Variant Handling Patterns... 191 7.1.10 A note on the application of the