DEENESPTFRRUARHIKOZHNL

class 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

User GuideAI-GENERATED

Represents a function group state defined in the metamodel and enables its typed comparison.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1ee8ba6f6849 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Represents a function group state defined in the metamodel and enables its typed comparison.

The class ara::exec::FunctionGroupState represents a function group state defined in the AUTOSAR metamodel and binds it across its entire lifetime to a specific function group and the associated ARXML path [SWS_EM_02324]. Instances are created with the short-name of the target declaration, support full copy and move semantics, and enable the direct equivalence comparison of model states [SWS_EM_02273]. All operations are defined as exception-safe as well as noexcept, whereby modifying assignments and destructions, unlike thread-safe comparisons, must not be executed concurrently without synchronization.

Context

The class ara::exec::FunctionGroupState represents a function group state defined in the AUTOSAR metamodel (ARXML). Within module exec of the Adaptive Platform, an instance of this class serves as an implementation-specific representation of the corresponding metamodel information. A state is always bound to a concrete function group, which is referenced via an instance of FunctionGroup, and identified as a string via the short-name of the associated ModeDeclaration [SWS_EM_02324]. Via equality and inequality operators, instances can be compared directly with one another to determine whether they represent the same metamodel element [SWS_EM_02273] [SWS_EM_02274].

diag_kontext FunctionGroup FunctionGroup FunctionGroupState FunctionGroupState FunctionGroup->FunctionGroupState provides context ARXMLMetamodell ARXMLMetamodell FunctionGroupState->ARXMLMetamodell represents element ModeDeclaration ModeDeclaration ModeDeclaration->FunctionGroupState benennt Zustand

Context diagram: Integration of FunctionGroupState between function group and ARXML metamodel. Sources: [SWS_EM_02324], [SWS_EM_02273].

Lifecycle

An instance is created via the parameterized constructor, which takes a reference to the associated FunctionGroup and a ara::core::StringView with the name of the ModeDeclaration [SWS_EM_02324]. After creation, the internal value of the object remains firmly bound to the underlying ARXML path across its entire lifetime. The class supports complete value semantics:

  • Copying: A copy constructor [SWS_EM_02325] and a copy assignment operator [SWS_EM_02330] enable duplicating instances.
  • Moving: Resources can be efficiently transferred to new or existing instances via the move constructor [SWS_EM_02331] and the move assignment operator [SWS_EM_02332].
  • Destruction: The destructor properly releases the resources of the instance [SWS_EM_02272].

Regarding concurrency, creating an instance via the constructor is thread-safe [SWS_EM_02324]. The comparison operations are also thread-safe [SWS_EM_02273] [SWS_EM_02274]. In contrast, all modifying lifecycle operations—including copy constructor [SWS_EM_02325], move constructor [SWS_EM_02331], copy assignment [SWS_EM_02330], move assignment [SWS_EM_02332], and destructor [SWS_EM_02272]—are declared as not thread-safe.

Usage Path

A typical usage path comprises the creation, forwarding, evaluation, and destruction of a state representation:

  1. Instantiation: The application creates a FunctionGroupState object specifying the target function group and the name of the ModeDeclaration [SWS_EM_02324].
  2. Forwarding or assignment: If needed, the object can be forwarded via copy [SWS_EM_02325] or move [SWS_EM_02331] or assigned to existing variables [SWS_EM_02330] [SWS_EM_02332].
  3. State comparison: At runtime, the instance is compared with another instance to check whether both represent the same metamodel element [SWS_EM_02273] or differ from each other [SWS_EM_02274].
  4. Release: Upon leaving the scope, the instance is destroyed via the destructor [SWS_EM_02272].

Error Scenarios

All methods of the class are declared with noexcept and specified as 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]. Neither are C++ exceptions thrown nor are error codes returned via return types such as ara::core::Result.

A precondition for error-free creation is the presence of a valid FunctionGroup as well as a ModeDeclaration defined in the metamodel [SWS_EM_02324]. Interpretation: Since constructor [SWS_EM_02324] returns no error objects and throws no exceptions, passing non-existent metamodel names is unlikely to be intercepted via regular API error codes, but presumably requires a correctly configured system model prior to instantiation. Question Q-7926777bafd2a76e (open)

Another failure scenario concerns uncoordinated concurrency: If copy, move, or destruction operations are executed concurrently on the same instance without external synchronization, race conditions threaten because these interfaces are not thread-safe [SWS_EM_02325] [SWS_EM_02330] [SWS_EM_02331] [SWS_EM_02332] [SWS_EM_02272].

This guide is based on the AUTOSAR Adaptive Platform specification R25-11 for the exec module and was generated automatically.

Member map

Class diagram

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

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

Detail view

Select an entry in the outline.

Constructors and destructor

Creates an instance of FunctionGroupState.

Overloads 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;

Operators

operator!= function

uneq operator to compare with other FunctionGroupState instance.

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

Copy assignment operator.

Overloads = 2
FunctionGroupState & operator= (const FunctionGroupState &other) & noexcept; SWS_EM_02330
FunctionGroupState & operator= (FunctionGroupState &&other) & noexcept; SWS_EM_02332
operator== function

eq operator to compare with other FunctionGroupState instance.

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

Method documentation

function 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#f3abd3fe
Content hash
f3abd3fe
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

function 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#32bef84f
Content hash
32bef84f
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

function 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#9fffd950
Content hash
9fffd950
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

function 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#738cd30c
Content hash
738cd30c
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

function 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#6f5fa1e5
Content hash
6f5fa1e5
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

function 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#c3f6a210
Content hash
c3f6a210
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

function 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#19ae00f7
Content hash
19ae00f7
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

function ~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#c70bc9eb
Content hash
c70bc9eb
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