ModeGroup

XML tag

<MODE_GROUP>

Module

autosar.mode

Inherits

autosar.element.Element

A ModeGroup is used as the internal storage container of the modeGroup attribute of the ModeSwitchInterface class.

Usage

import autosar

ws = autosar.workspace(version="4.2.2")
package = ws.createPackage('ModeDclrGroups', role="ModeDclrGroup")
package.createModeDeclarationGroup('VehicleMode',
    ["OFF", "ACCESSORY", "ON", "CRANK", "RUN"], "OFF")
modeGroup = autosar.mode.ModeGroup('mode', '/ModeDclrGroups/VehicleMode')

Constructor

mode.ModeGroup(name, typeRef[, parent=None][, adminData=None])
参数
  • name (str) – ShortName of the object

  • typeRef (str) – Full reference to a ModeDeclarationGroup element or a shortName of a ModeDeclarationGroup element (if package roles are used).

  • parent – parent package (for internal use only)

  • adminData – optional adminData

Attributes

For inherited attributes see autosar.element.Element.

Name

Type

Description

typeRef

str

Reference to a ModeDeclarationGroup element