ImplementationDataTypeElement

XML tag

<IMPLEMENTATION-DATA-TYPE-ELEMENT>

Module

autosar.datatype

Inherits

autosar.element.Element

Describes the element of an array, struct, or union data type. Used as sub-element to ImplementationDataType.

Constructor

datatype.ImplementationDataTypeElement(name[, category = None][, arraySize = None][, arraySizeSemantics = None][, variantProps = None][, parent = None][, adminData = None])
参数
  • name (str) – Short name.

  • category (None, str) – Category string.

  • arraySize (None, int) – Array size.

  • arraySizeSemantics (None, str) – Array size semantics.

  • variantProps (None, SwDataDefPropsConditional, list) – variant properties.

  • parent (None, Package) – Parent package.

  • adminData (None, AdminData) – Admin data.

arraySizeSemantics

Value

Description

None

Array size semantics not set

"FIXED-SIZE"

The array has a fixed number of elements equal to the arraySize attribute

"VARIABLE-SIZE"

The size of the array can vary at run-time. The arraySize attribute sets the upper bound.

Attributes

For inherited attributes see autosar.element.Element.

Name

Type

Description

arraySize

None, int

<ARRAY-SIZE>

arraySizeSemantics

None, str

<ARRAY-SIZE-SEMANTICS>

variantProps

list of SwDataDefPropsConditional

<SW-DATA-DEF-PROPS>

Public Methods

This class has no additional methods.