DEENESPTFRRUARHIKOZHNL

类 ara::exec::FunctionGroupState

[SWS_EM_02269] Upstream: RS_EM_00101, RS_AP_00154, RS_AP_00150, RS_AP_00129

class FunctionGroupState final {...};

Class representing Function Group State defined in meta-model (ARXML). An instance of this class will represent Function Group State defined inside meta-model (ARXML). This class is intended to be an implementation specific representation, of information inside meta-model. Once created based on ARXML path, its internal value stays bounded to it for entire lifetime of a object.

Header-Datei#include "ara/exec/function_group_state.h"
Forwarding-Header#include "ara/exec/exec_fwd.h"
Scopenamespace ara::exec

用户指南人工智能生成

表示在元模型中定义的功能组状态,并支持其类型化比较。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1ee8ba6f6849 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

表示在元模型中定义的功能组状态,并支持其类型化比较。

类 ara::exec::FunctionGroupState 表示在 AUTOSAR 元模型中定义的功能组状态,并在其整个生命周期内将其绑定到特定功能组和关联的 ARXML 路径 [SWS_EM_02324]。实例使用目标声明的短名称(Short-Name)创建,支持完整的拷贝及移动语义,并允许直接对模型状态进行等价性比较 [SWS_EM_02273]。所有操作均被定义为异常安全且 noexcept,与线程安全的比较相反,修改性赋值和销毁在没有同步的情况下不得并发执行。

上下文

类 ara::exec::FunctionGroupState 表示在 AUTOSAR 元模型 (ARXML) 中定义的功能组状态。在 Adaptive Platform 的 exec 模块内,该类的实例用作相应元模型信息的实现特定表示。此时,状态始终绑定到具体的功能组(通过 FunctionGroup 的实例引用),并通过关联 ModeDeclaration 的短名称(Short-Name)作为字符串进行标识 [SWS_EM_02324]。通过相等和不等运算符,可以直接相互比较实例,以确定它们是否表示相同的元模型元素 [SWS_EM_02273] [SWS_EM_02274]。

diag_kontext FunctionGroup FunctionGroup FunctionGroupState FunctionGroupState FunctionGroup->FunctionGroupState 提供上下文 ARXMLMetamodell ARXMLMetamodell FunctionGroupState->ARXMLMetamodell 表示元素 ModeDeclaration ModeDeclaration ModeDeclaration->FunctionGroupState benennt Zustand

上下文图:FunctionGroupState 在功能组与 ARXML 元模型之间的集成。来源:[SWS_EM_02324]、[SWS_EM_02273]。

生命周期

实例的创建通过参数化构造函数进行,该构造函数接收对关联 FunctionGroup 的引用以及带有 ModeDeclaration 名称的 ara::core::StringView [SWS_EM_02324]。创建之后,对象的内部值在其整个生命周期内牢固绑定到底层 ARXML 路径。该类支持完整的值语义:

在并发性方面,通过构造函数创建实例是线程安全的 [SWS_EM_02324]。比较操作也是线程安全的 [SWS_EM_02273] [SWS_EM_02274]。与此相反,所有修改性生命周期操作——包括拷贝构造函数 [SWS_EM_02325]、移动构造函数 [SWS_EM_02331]、拷贝赋值 [SWS_EM_02330]、移动赋值 [SWS_EM_02332] 和析构函数 [SWS_EM_02272]——均声明为非线程安全(not thread-safe)。

使用路径

典型的使用路径包括状态表示的创建、传递、求值和销毁:

  1. 实例化:应用程序在指定目标功能组和 ModeDeclaration 名称的情况下创建 FunctionGroupState 对象 [SWS_EM_02324]。
  2. 传递或赋值:根据需要,可以通过拷贝 [SWS_EM_02325] 或移动 [SWS_EM_02331] 传递对象,或者将其赋值给现有变量 [SWS_EM_02330] [SWS_EM_02332]。
  3. 状态比较:在运行时,将该实例与另一个实例进行比较,以检查两者是否映射相同的元模型元素 [SWS_EM_02273] 或彼此不同 [SWS_EM_02274]。
  4. 释放:离开作用域时,实例通过析构函数被销毁 [SWS_EM_02272]。

错误场景

该类的所有方法均使用 noexcept 声明,并被规范为异常安全(exception safe)[SWS_EM_02324] [SWS_EM_02325] [SWS_EM_02331] [SWS_EM_02330] [SWS_EM_02332] [SWS_EM_02273] [SWS_EM_02274] [SWS_EM_02272]。既不会抛出 C++ 异常,也不会通过如 ara::core::Result 等返回类型反馈错误代码。

无错误创建的前置条件是存在有效的 FunctionGroup 以及在元模型中定义的 ModeDeclaration [SWS_EM_02324]。解释:由于构造函数 [SWS_EM_02324] 不返回错误对象且不引发异常,因此传入不存在的元模型名称可能无法通过常规 API 错误代码捕获,而是可能需要在实例化之前正确配置系统模型。 问题 Q-7926777bafd2a76e (未决)

另一个错误场景涉及未协调的并发:如果在没有外部同步的情况下在同一实例上并发执行拷贝、移动或销毁操作,则存在竞争条件风险,因为这些接口不是线程安全的 [SWS_EM_02325] [SWS_EM_02330] [SWS_EM_02331] [SWS_EM_02332] [SWS_EM_02272]。

本指南基于针对 exec 模块的 AUTOSAR Adaptive Platform 规范 R25-11,并通过自动化方式创建。

成员图

类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__exec__FunctionGroupState299 FunctionGroupState + FunctionGroupState() + operator=() + ~FunctionGroupState() + operator!=() + operator==()

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

Creates an instance of FunctionGroupState.

重载 FunctionGroupState 3
FunctionGroupState (const FunctionGroup &functionGroup, ara::core::StringView state) noexcept; SWS_EM_02324
FunctionGroupState (const FunctionGroupState &other) noexcept; SWS_EM_02325
FunctionGroupState (FunctionGroupState &&other) noexcept; SWS_EM_02331

Destructor of the FunctionGroupState instance.

~FunctionGroupState () noexcept;

运算符

operator!= 函数

uneq operator to compare with other FunctionGroupState instance.

bool operator!= (const FunctionGroupState &other) const noexcept;
operator= 函数 2

Copy assignment operator.

重载 = 2
FunctionGroupState & operator= (const FunctionGroupState &other) & noexcept; SWS_EM_02330
FunctionGroupState & operator= (FunctionGroupState &&other) & noexcept; SWS_EM_02332
operator== 函数

eq operator to compare with other FunctionGroupState instance.

bool operator== (const FunctionGroupState &other) const noexcept;

方法文档

函数 FunctionGroupState [SWS_EM_02324] Upstream: RS_EM_00101, RS_AP_00159

FunctionGroupState (const FunctionGroup &functionGroup, ara::core::StringView state) noexcept;

Creates an instance of FunctionGroupState.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
functionGroupthe FunctionGroup instance the state shall be connected with.
stateshort name of the ModeDeclaration which represents the Function Group State.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02324
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02324@rel:R25-11#8c203d00
Content hash
8c203d00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02324
Status: valid/unmigrated Version: rel:R25-11#71afffb4 Versionshistorie & Revisions (1 transition, 6 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02324@rel:R25-11#71afffb4
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#f3abd3fe2026-09-30
  • R21-11rel:R21-11#81068f6c2026-10-14
  • R22-11rel:R22-11#6f1635eb2026-10-14
  • R23-11rel:R23-11#e9f627722026-10-14
  • R24-11rel:R24-11#7d58bdd82026-10-14
  • R25-11rel:R25-11#71afffb42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 FunctionGroupState [SWS_EM_02325] Upstream: RS_EM_00101, RS_AP_00145, RS_AP_00159

FunctionGroupState (const FunctionGroupState &other) noexcept;

Copy constructor.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to be copied

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02325
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02325@rel:R25-11#3b4bfda3
Content hash
3b4bfda3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02325
Status: valid/unmigrated Version: rel:R25-11#eb3ca6c4 Versionshistorie & Revisions (1 transition, 6 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02325@rel:R25-11#eb3ca6c4
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#32bef84f2026-09-30
  • R21-11rel:R21-11#b41b0b292026-10-14
  • R22-11rel:R22-11#b56570872026-10-14
  • R23-11rel:R23-11#25ec9f662026-10-14
  • R24-11rel:R24-11#e6c62b7c2026-10-14
  • R25-11rel:R25-11#eb3ca6c42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 FunctionGroupState [SWS_EM_02331] Upstream: RS_EM_00101, RS_AP_00145, RS_AP_00151, RS_AP_00159

FunctionGroupState (FunctionGroupState &&other) noexcept;

Move constructor.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to be moved to a newly constructed object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02331@rel:R25-11#b1140c2f
Content hash
b1140c2f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02331
Status: valid/unmigrated Version: rel:R25-11#decf383d Versionshistorie & Revisions (1 transition, 6 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02331@rel:R25-11#decf383d
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#9fffd9502026-09-30
  • R21-11rel:R21-11#1e97e4992026-10-14
  • R22-11rel:R22-11#3c45d1452026-10-14
  • R23-11rel:R23-11#29d2ee9b2026-10-14
  • R24-11rel:R24-11#fa1a02232026-10-14
  • R25-11rel:R25-11#decf383d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator!= [SWS_EM_02274] Upstream: RS_EM_00101, RS_AP_00159

bool operator!= (const FunctionGroupState &other) const noexcept;

uneq operator to compare with other FunctionGroupState instance.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to compare this one with.

Rückgabewert

TypBeschreibung
boolfalse in case both FunctionGroupStates are representing exactly the same meta-model element, true otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02274
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02274@rel:R25-11#4ff6f20e
Content hash
4ff6f20e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02274
Status: valid/unmigrated Version: rel:R25-11#f13dd607 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02274@rel:R25-11#f13dd607
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#738cd30c2026-09-30
  • R19-11rel:R19-11#61f5e17c2026-10-14
  • R20-11rel:R20-11#ce4916862026-10-14
  • R21-11rel:R21-11#ce4916862026-10-14
  • R22-11rel:R22-11#fceebb1c2026-10-14
  • R23-11rel:R23-11#0e1d3fdd2026-10-14
  • R24-11rel:R24-11#78a4cca02026-10-14
  • R25-11rel:R25-11#f13dd6072026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator= [SWS_EM_02330] Upstream: RS_EM_00101, RS_AP_00153, RS_AP_00145, RS_AP_00159

FunctionGroupState & operator= (const FunctionGroupState &other) & noexcept;

Copy assignment operator.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to be copied

Rückgabewert

TypBeschreibung
FunctionGroupState &reference to the object on which the copy assignment operator was invoked

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02330@rel:R25-11#c8b12e5f
Content hash
c8b12e5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02330
Status: valid/unmigrated Version: rel:R25-11#40b45fbc Versionshistorie & Revisions (1 transition, 6 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02330@rel:R25-11#40b45fbc
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#6f5fa1e52026-09-30
  • R21-11rel:R21-11#684bd5fd2026-10-14
  • R22-11rel:R22-11#e37f59582026-10-14
  • R23-11rel:R23-11#24024e542026-10-14
  • R24-11rel:R24-11#a06fe8682026-10-14
  • R25-11rel:R25-11#40b45fbc2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator= [SWS_EM_02332] Upstream: RS_EM_00101, RS_AP_00153, RS_AP_00145, RS_AP_00151, RS_AP_00159

FunctionGroupState & operator= (FunctionGroupState &&other) & noexcept;

Move assignment operator.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to move to this object.

Rückgabewert

TypBeschreibung
FunctionGroupState &reference to the object on which the move assignment operator was invoked

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02332@rel:R25-11#905c2b74
Content hash
905c2b74
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02332
Status: valid/unmigrated Version: rel:R25-11#68fd8dea Versionshistorie & Revisions (1 transition, 6 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02332@rel:R25-11#68fd8dea
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#c3f6a2102026-09-30
  • R21-11rel:R21-11#9f146b822026-10-14
  • R22-11rel:R22-11#47158cca2026-10-14
  • R23-11rel:R23-11#607992ee2026-10-14
  • R24-11rel:R24-11#1f0a0fd72026-10-14
  • R25-11rel:R25-11#68fd8dea2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator== [SWS_EM_02273] Upstream: RS_EM_00101, RS_AP_00159

bool operator== (const FunctionGroupState &other) const noexcept;

eq operator to compare with other FunctionGroupState instance.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherFunctionGroupState instance to compare this one with.

Rückgabewert

TypBeschreibung
booltrue in case both FunctionGroupStates are representing exactly the same meta-model element, false otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02273
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02273@rel:R25-11#c1f97b23
Content hash
c1f97b23
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02273
Status: valid/unmigrated Version: rel:R25-11#8e9c0b69 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02273@rel:R25-11#8e9c0b69
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#19ae00f72026-09-30
  • R19-11rel:R19-11#2933a9fe2026-10-14
  • R20-11rel:R20-11#00c3c8502026-10-14
  • R21-11rel:R21-11#f260b4992026-10-14
  • R22-11rel:R22-11#81732be22026-10-14
  • R23-11rel:R23-11#dd1b08f92026-10-14
  • R24-11rel:R24-11#cf807dfc2026-10-14
  • R25-11rel:R25-11#8e9c0b692026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 ~FunctionGroupState [SWS_EM_02272] Upstream: RS_EM_00101, RS_AP_00134, RS_AP_00145

~FunctionGroupState () noexcept;

Destructor of the FunctionGroupState instance.

Header-Datei#include "ara/exec/function_group_state.h"
Scopeclass ara::exec::FunctionGroupState
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02272
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02272@rel:R25-11#a8df2b05
Content hash
a8df2b05
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02272
Status: valid/unmigrated Version: rel:R25-11#6a70760a Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02272@rel:R25-11#6a70760a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c70bc9eb2026-09-30
  • R19-11rel:R19-11#9afd5a532026-10-14
  • R20-11rel:R20-11#0b0a4dbc2026-10-14
  • R21-11rel:R21-11#0554e05c2026-10-14
  • R22-11rel:R22-11#4e99f7f12026-10-14
  • R23-11rel:R23-11#fdf52dee2026-10-14
  • R24-11rel:R24-11#e9c58c2c2026-10-14
  • R25-11rel:R25-11#6a70760a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill