Generic Structure Template AUTOSAR CP Release 4.3.1
Total Page:16
File Type:pdf, Size:1020Kb
Generic Structure Template AUTOSAR CP Release 4.3.1 Document Title Generic Structure Template Document Owner AUTOSAR Document Responsibility AUTOSAR Document Identification No 202 Document Status Final Part of AUTOSAR Standard Classic Platform Part of Standard Release 4.3.1 Document Change History Date Release Changed by Description 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 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 1 of 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 • 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 • 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 2 of 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 • 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 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 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 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 Table of Contents 1 Introduction 13 1.1 Scope.................................... 13 1.2 Document Conventions........................... 14 1.3 Methodology for Defining Formal Templates............... 16 1.4 Organization of the Meta-Model...................... 17 2 Usage of UML in AUTOSAR Templates 19 2.1 UML Diagrams............................... 19 2.2 The AUTOSAR Meta-Model Hierarchy.................. 19 2.3 Stereotypes................................. 21 2.3.1 Mixed Content (atpMixed, atpMixedString).. 24 2.3.2 Splitable Elements (atpSplitable) distributed on Mul- tiple Physical Files........................ 25 2.3.3 StructuredComment Elements (atpStructuredComment)............... 30 2.4 UML Tags.................................. 31 3 Autosar Top Level Structure 39 3.1 Identifying M1 elements in packages................... 41 3.2 The role of ARPackage, ARElement and Identifiable et. al........ 46 4 General Template Classes 50 4.1 ARObject - Common Attributes for all Classes.............. 50 4.2 Packages in Autosar............................ 50 4.3 Identifiable and Referrable......................... 55 4.3.1 Name spaces and uniqueness of shortName ........ 64 4.4 Administrative Data............................. 65 4.5 Special Data - Extension Mechanism................... 68 4.5.1 Special Data........................... 68 4.5.2 Special Data Definitions..................... 75 4.6 Model Restriction Types.......................... 83 4.6.1 Restriction of Simple Primitive Values............. 84 4.6.2 Restriction of Multiplicities.................... 84 4.6.3 Restriction of use of Variation.................. 85 4.7 Primitive Types............................... 86 4.8 Formula Language............................. 103 4.8.1 Applying Formula Language.................. 103 4.8.2 Formula Language Syntax................... 105 4.8.2.1 Operators in arithmetic expressions.......... 111 4.8.2.2 Mathematical functions in arithmetic expressions.. 112 4.8.2.3 Implementation details of a Formula Processor... 114 4.8.2.4 Resulting Data Types of Formula Expressions.... 120 4.8.2.5 Examples for the Formula Language expressions.. 123 4.9 EngineeringObject............................. 124 5 of 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 4.10 Annotations................................. 127 4.11 MultiDimensionalTime........................... 128 4.12 TagWithOptionalValue........................... 130 5 AbstractStructure 131 5.1 Reusable Structural Hierarchies...................... 133 5.1.1 Motivation............................ 133 5.1.2 Types, Prototypes and Structure elements.......... 134 5.1.3 Instance Refs.......................... 139 5.1.4 Any Instance Refs........................ 143 5.1.4.1 AnyInstanceRef applied to Implementation- DataTypeElement.................... 144 6 Metamodeling Patterns and Model Transformation 146 6.1 Notation for Pattern Application...................... 148 6.2 Pattern Specification............................ 149 6.3 Model Transformations applied in the Meta-Model............ 150 6.3.1 Implementing primitives................ 150 6.3.2 Implementing Associations as References.......... 151 6.3.2.1 Absolute ShortName-path.............. 153 6.3.2.2 Relative ShortName-path............... 154 6.3.2.3 Destination Type.................... 161 6.3.3 atpObjectARObject................... 162 7 Variant Handling 164 7.1 Introduction................................. 164 7.1.1 A Quick Overview........................ 165 7.1.2 Variant Handling and Methodology............... 166 7.1.3 How Variant Handling is implemented in the meta-model.. 167 7.1.4 Not every element in the meta model may be variant..... 169 7.1.5 Variation Points are optional, even for variant elements... 170 7.1.6 A note on Binding Times.................... 170 7.1.7 A note on the impact of Variant Handling on the XML Schema 171 7.1.8 Patterns are independent of each other............ 171 7.1.9 A note on multiplicities in the Variant Handling Patterns... 171 7.1.10 A note on the application of the variant handling patterns.. 172 7.2 Aggregation Pattern for Variation Points................. 173 7.2.1 Description............................ 173 7.2.2 Binding Time........................... 175 7.2.3 Multiplicity of {PartClass} .................. 175 7.2.4 XML Representation....................... 176 7.2.5 Notes and Restrictions..................... 176 7.3 Association Pattern for Variation Points.................. 177 7.3.1 Description............................ 177 7.3.2 Binding Time........................... 178 7.3.3 Multiplicity of {ReferencedClass}RefConditional ... 178 7.3.4 XML Representation....................... 178 6 of 456 Document ID 202: AUTOSAR_TPS_GenericStructureTemplate.pdf — AUTOSAR CONFIDENTIAL — Generic Structure Template AUTOSAR CP Release 4.3.1 7.3.5 Notes and Restrictions..................... 179 7.4 Attribute Value Pattern for Variation Points................ 179 7.4.1 Description............................ 179 7.4.2 AttributeValueVariationPoint ............