DEENESPTFRRUARHIKOZHNL

namespace ara::com

User GuideKI-GENERIERT

Stellt Basistypen, Fehlerdomänen und Schnittstellen für die serviceorientierte Kommunikation in AUTOSAR Adaptive bereit.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 9676f1a12dfa Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Stellt Basistypen, Fehlerdomänen und Schnittstellen für die serviceorientierte Kommunikation in AUTOSAR Adaptive bereit.

Der Namespace stellt die Kernbausteine für die serviceorientierte Kommunikation bereit, indem er Dienstkonsumenten über Proxies und Dienstanbieter über Skeletons anbindet (ARAComAPI §7.6 „meta-model to Implementation“). Die Interaktion umfasst asynchrone Dienstsuchen, Methodenaufrufe mit Rückgabe über Futures sowie Ereignisabonnements über definierte Zustände ([SWS_CM_00310]). Zu den zentralen Pflichten gehören die korrekte Auflösung von Instanzkennungen sowie die Einhaltung konfigurierter Probenkontingente und Sendeintervalle ([SWS_CM_10432]).

Kontext

Der Namespace ara::com stellt die zentralen Typen und Mechanismen für die serviceorientierte Kommunikation (Communication Management) innerhalb der AUTOSAR Adaptive Platform bereit. Das Architekturmodell trennt strikt zwischen Dienstkonsumenten und Dienstanbietern: Auf der Konsumentenseite (R-Port) agieren Client-Anwendungen über generierte Proxy-Instanzen (ARAComAPI §7.6 „meta-model to Implementation“), während Dienstanbieter auf Server-Seite ihre Funktionalität über Skeleton-Implementierungen exponieren (ARAComAPI §6.2 „Definition of BatteryState“).

Zwischen Proxy und Skeleton vermittelt die technische Middleware (Binding). Zur Identifikation und Unterscheidung einzelner Dienstinstanzen dient InstanceIdentifier, wobei über InstanceIdentifierContainer Sammlungen konkreter Instanzen verwaltet werden ([SWS_CM_00319]). Die Plattform unterstützt Multi-Binding-Szenarien, in denen abstrakte Modellbezeichner auf eine Liste technischer Bindings und Instanzen aufgelöst werden (ARAComAPI §6.6 „InstanceIdentifier Resolution“).

client Client (ara::com Proxy) binding Communication Management (Binding / Middleware) client->binding Dienstsuche / Methodenaufruf / Event-Abonnement binding->client Future-Erfüllung / Event-Zustellung skeleton Server (ara::com Skeleton) binding->skeleton Dispatch / Methodenaufruf skeleton->binding Methodenantwort / Event-Bereitstellung

Kontextdiagramm: Zusammenspiel zwischen Proxy, Middleware-Binding und Skeleton bei der Dienstkommunikation. Quellen: ARAComAPI §7.6 „meta-model to Implementation“, ARAComAPI §6.6 „InstanceIdentifier Resolution“, [SWS_CM_10432].

Lebenszyklus

Dienste und Kommunikationsverbindungen unterliegen in ara::com klar definierten Zustandsmodellen. Die allgemeine Dienstverfügbarkeit wird über die Enumeration ServiceState mit den Werten kAvailable und kNotAvailable repräsentiert ([SWS_CM_01071]). Zustandsänderungen können mittels registrierter ServiceStateHandler überwacht werden ([SWS_CM_01072]).

Für Ereignisse (Events) und Felder regelt SubscriptionState den Lebenszyklus eines Abonnements mit den Zuständen kNotSubscribed, kSubscriptionPending und kSubscribed ([SWS_CM_00310]). Zustandswechsel werden asynchron an einen SubscriptionStateChangeHandler gemeldet ([SWS_CM_00311]). Der Übergang von kNotSubscribed zu kSubscriptionPending erfolgt vermutlich unmittelbar durch das Absenden der Abonnement-Anfrage an das zugrunde liegende Transport-Binding. Frage Q-60f7ecdf5768217a (offen)

Auf Seiten der Service-Implementierung steuert MethodCallProcessingMode die Nebenläufigkeit eingehender Methodenaufrufe: kPoll für manuelles Polling, kEvent für nebenläufige, ereignisgesteuerte Bearbeitung und kEventSingleThread für sequenzielle Abarbeitung in einem einzelnen Thread ([SWS_CM_00301]). Die Probenverwaltung (Samples) nutzt senderseitig SampleAllocateePtr zur Optimierung von Allokationen (z. B. Zero-Copy-Ansätze via Shared Memory) ([SWS_CM_00308], ARAComAPI §6.18 „Event Allocate/Send sample Binding implementer hint“) und empfängerseitig SamplePtr ([SWS_CM_10432]).

Nutzungspfad

Ein typischer Ablauf zur Dienstnutzung vollzieht sich über die folgenden Schritte:

  1. Dienstsuche: Der Konsument initiiert die Suche nach kompatiblen Dienstinstanzen. Bei Verfügbarkeit übergibt die Middleware über FindServiceHandler einen ServiceHandleContainer mit gefundenen Handles sowie ein FindServiceHandle, mit dem laufende Suchen beendet werden können ([SWS_CM_00383], [SWS_CM_00304]).
  2. Proxy-Instanziierung: Mit einem passenden Handle wird die Proxy-Instanz lokal im Client erzeugt (ARAComAPI §6.3 „Handling of optional data elements on Skeleton side“).
  3. Methodenaufruf: Der Methodenaufruf überlädt den Klammeroperator der Methoden-Wrapper-Klasse. Eingabeparameter werden übergeben, und der Aufruf liefert ein ara::com::Future zurück, das die Ausgabeparameter kapselt (ARAComAPI §6.10 „Adjust Method Class“, ARAComAPI §6.12 „Adjust Method Class“).
  4. Ergebnisverarbeitung: Der Client ruft das Ergebnis synchron oder asynchron ab (z. B. via get()) und prüft optionale Feldelemente vor dem Zugriff auf deren Vorhandensein (ARAComAPI §6.3 „Handling of optional data elements on Skeleton side“).
  5. Ereignisempfang: Eintreffende Daten für abonnierte Events, Felder oder Trigger werden über registrierte Callbacks wie EventReceiveHandler ([SWS_CM_00309]), FieldReceiveHandler ([SWS_CM_11615]) oder TriggerReceiveHandler ([SWS_CM_00351]) verarbeitet.
Service-Interaktion von Dienstsuche bis ErgebnisabfrageAnwendung (Client)ProxySkeleton (Server)Use Case: Dienstsuche und InstanziierungFindServiceHandler registrierenServiceHandleContainer liefernProxy(handle) erzeugenUse Case: Methodenaufruf und FutureMethodenaufruf()Service-Aufruf weiterleitenara::com::Future zurückgebenErgebnis bereitstellenFuture::get() aufrufenErgebnisdaten liefern

Sequenzdiagramm: Aufrufreihenfolge von der Dienstsuche über den Methodenaufruf mit Future bis zum Ergebnisabruf. Quellen: [SWS_CM_00383], [SWS_CM_00304], ARAComAPI §6.3 „Handling of optional data elements on Skeleton side“, ARAComAPI §6.10 „Adjust Method Class“.

Fehlerszenarien

Fehlerbedingungen im Kommunikationssubsystem werden über ComErrorDomain und die Fehlercodes in ComErrc abgebildet ([SWS_CM_10432]). Der Zugriff auf die Domäne erfolgt über GetComErrorDomain() ([SWS_CM_11334]), während konkrete Fehler über MakeErrorCode() ([SWS_CM_11335]) instanziiert werden. Im Ausnahmefall wird ComException geworfen.

Zu den typischen Fehlerszenarien gehören:

  • Dienstverfügbarkeit: Aufrufe an nicht bereitgestellte Dienste führen zu ComErrc::kServiceNotOffered oder ComErrc::kServiceNotAvailable ([SWS_CM_10432]).
  • Konfigurations- und Instanzauflösungsfehler: Kann ein Bezeichner nicht auf einen InstanceIdentifier gemappt werden, meldet das System ComErrc::kInstanceIDNotResolvable ([SWS_CM_10432], ARAComAPI §6.6 „InstanceIdentifier Resolution“).
  • Ressourcen- und Abonnementgrenzen: Hält eine Applikation mehr SamplePtr-Instanzen als bei Subscribe() vereinbart, tritt ComErrc::kMaxSamplesExceeded auf ([SWS_CM_10432]). Weicht die maximale Probenanzahl beim Re-Abonnieren ab, resultiert dies in ComErrc::kMaxSampleCountNotRealizable ([SWS_CM_10432]).
  • Protokoll- und Zeitbedingungen: Bei Netzwerkfehlern oder Fehlern sicherer Kommunikation wird ComErrc::kCommunicationFailure gemeldet. Werden Sendeabstände unterschritten, schlägt die Übertragung mit ComErrc::kMinimumSendIntervalViolationError fehl ([SWS_CM_10432]).
  • Feldbehandlung: Nicht initialisierte Feldwerte führen zu ComErrc::kFieldValueNotInitialized, fehlende Set-Handler zu ComErrc::kFieldSetHandlerNotSet ([SWS_CM_10432]).

Dieser Leitfaden basiert auf den Spezifikationen der AUTOSAR Adaptive Platform Release R25-11.

Themenkarte

KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.

Klassendiagramm

Abgerundete Rahmen = Namespace- bzw. Klassen-Scopes; hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); graue Boxen = namespace-fremde bzw. externe Basisklassen. Klicken öffnet die jeweilige Klassen- bzw. cppreference-Seite.

G cluster_ns ara::com nara__com__ComErrorDomain ComErrorDomain next_ara__core__ErrorDomain ara::core::ErrorDomain nara__com__ComErrorDomain->next_ara__core__ErrorDomain nara__com__ComException ComException next_ara__core__Exception ara::core::Exception nara__com__ComException->next_ara__core__Exception nara__com__FindServiceHandle «struct» FindServiceHandle nara__com__InstanceIdentifier InstanceIdentifier nara__com__SamplePtr SamplePtr nara__com__ServiceIdentifierType ServiceIdentifierType nara__com__ServiceVersionType ServiceVersionType

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Fehlerbehandlung

Defines a class representing the Communication error domain.

erbt von ara::core::ErrorDomain

Defines a class for exceptions to be thrown by the API.

erbt von ara::core::Exception

Returns a reference to the ara::com::ComErrorDomain object

constexpr const ara::core::ErrorDomain & GetComErrorDomain () noexcept;
MakeErrorCode function

Creates an instance of ara::core::ErrorCode

ComErrc enumeration

Defines the error codes for the ara::com::ComErrorDomain

enum class ComErrc : ara::core::ErrorDomain::CodeType {...};

Dienstidentität

Unique identifier of a specific AdaptivePlatformServiceInstance, to distinguish different instances of exactly the same service

Specifies a Service Identifier The exact type may be overridden by the Communication Management software provider

Specifies a Service Version

Holds a list of ara::com::InstanceIdentifiers. The assigned data type is allowed to be changed by the Communication Management software provider, but must adhere to [container.requirements.general] and [sequence.reqmts] requirements as per [30] A ara::core::Vector ([SWS_CORE_01301]) for example fulfills these requirements.

using InstanceIdentifierContainer = ara::core::Vector<Instance Identifier>;

Dienstsuche

The exact definition of ara::com::FindServiceHandle is Communication Management implementation specific

Callback function invoked if service availability changes. It takes as input parameter a handle container containing handles for all matching service instances and a ara::com:: FindServiceHandle which can be used to invoke StopFindService() from within the ara::com::FindServiceHandler.

using FindServiceHandler = std::function<void(ServiceHandle Container<T>, FindServiceHandle)>;

Holds a list of service handles and is used as a return value of any of the FindService() methods) • [SWS_CM_00122] • [SWS_CM_00622] . The assigned data type is allowed to be changed by the Communication Management software provider, but must adhere to [container.requirements.general] and [sequence.reqmts] requirements as per [30]. A ara::core::Vector ([SWS_CORE_ 01301]) for example fulfills these requirements.

using ServiceHandleContainer = ara::core::Vector<T>;

Datenempfang

SamplePtr class

Emulates a std::unique_ptr to an event sample. The ara::com::SamplePtr behaves as a std::unique_ptr as long as the event/ field is subscrib ≙ std::unique_ptr

SubscriptionState enumeration

The subscription state of an event.

enum class SubscriptionState : std::uint8_t {...};

Callback function invoked if new event data arrives for an event. The event receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory. ≙ std::function

using EventReceiveHandler = std::function<void()>;

Callback function invoked if a new notification arrives for a field. The field receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory. ≙ std::function

using FieldReceiveHandler = std::function<void()>;

Pointer to an allocated (by Communication Management) data sample. The implementation is allowed to be changed by the Communication Management software provider.

using SampleAllocateePtr = std::unique_ptr<T>;

Callback function invoked if ara::com::SubscriptionState of an event has changed.

using SubscriptionStateChangeHandler = std::function<void(Subscription State)>;

A function wrapper for the handler function that gets called in case a new trigger arrives for an event. The trigger receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory. ≙ std::function

using TriggerReceiveHandler = std::function<void()>;

Dienstzustand

Processing modes for the service implementation.

enum class MethodCallProcessingMode : std::uint8_t {...};
ServiceState enumeration

The state of the service from GetServiceState()

enum class ServiceState : std::uint8_t {...};

Functor used as input arguments for any of the SetServiceStateChangeHandler() methods: • [SWS_CM_01074] • [SWS_CM_01076]

using ServiceStateHandler = std::function<void(ServiceState)>;

Enumerationen

enumeration ComErrc [SWS_CM_10432] Upstream: RS_AP_00130, RS_AP_00122, RS_AP_00127

enum class ComErrc :         ara::core::ErrorDomain::CodeType {...};

Defines the error codes for the ara::com::ComErrorDomain

Header-Datei#include "ara/com/com_error_domain.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com
SymbolComErrc
Basistypara::core::ErrorDomain::CodeType

Werte

EnumeratorBeschreibung
kServiceNotAvailable=1 Service is not available after being previously offered via Offer
Service()
kMaxSamplesExceeded=2 Application holds more ara::com::SamplePtrs than commited in Subscribe() Samples were possibly skipped.
kCommunicationFailure=3 The network binding reported a recoverable communications error or a secure communication failure
kFieldValueNotInitialized=6 Field value has yet not been initialized via Update() (see [SWS_CM_00128]
kFieldSetHandlerNotSet=7 Field SetHandler has not been registered via RegisterSet Handler()
kServiceNotOffered= 11 Service has not yet been offered via OfferService()
kInstanceIDNotResolvable= 15 The ara::core::InstanceSpecifier is valid but could not be resolved/mapped to an existing ara::com:: InstanceIdentifier
kMaxSampleCountNotRealizable= 16 Provided maxSampleCount for event re-subscription does not match the maxSampleCount for the current subscription
kUnknownApplicationError= 22 A remote service returned an unconfigured application error.
kMinimumSendIntervalViolationError= 23 Minimum Send Interval violation, because a transmission request for a service instance element (event, field or method call) was issued faster than allowed, i.e., the configured minimum send interval ServiceInterfaceDeploymentElement. minimumSendInterval for the service instance element has not yet expired.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 67f5508c5e1b Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Enumeration ComErrc definiert nach [SWS_CM_10432] die standardisierten Fehlercodes der ara::com::ComErrorDomain für behebbare Fehler (Recoverable Errors) gemäß EXP ARAComAPI §2 „Recoverable Errors“. Sie wird in Rückgabetypen wie ara::core::Result oder ara::core::Future von synchronen und asynchronen APIs des Kommunikationsmanagements transportiert, um funktionale Fehlerursachen im Client- oder Serverkontext präzise zu signalisieren.

Die Enumeratoren decken spezifische Fehlerfälle entlang des Dienstlebenszyklus und der Datenübertragung ab:

  • Dienstlebenszyklus und Bindung: kServiceNotOffered zeigt an, dass ein Dienst noch nicht über OfferService() bereitgestellt wurde ([SWS_CM_00101]), während kServiceNotAvailable den zwischenzeitlichen Verlust signalisiert. kInstanceIDNotResolvable tritt auf, wenn ein InstanceSpecifier nicht aufgelöst werden kann ([SWS_CM_00118]).
  • Ereignis- und Sample-Abonnements: kMaxSamplesExceeded warnt vor dem Überschreiten zugesagter SamplePtr-Kontingente, und kMaxSampleCountNotRealizable meldet unpassende Werte bei der Wiederanmeldung via [SWS_CM_00141].
  • Felder und Übertragung: kFieldValueNotInitialized weist auf eine fehlende Initialisierung vor Update() hin ([SWS_CM_00119]), kFieldSetHandlerNotSet auf einen fehlenden Setter-Handler. Lokale Netzwerkprobleme, etwa beim Trigger-Versand via [SWS_CM_00721], führen zu kCommunicationFailure ([SWS_CM_10517]). Zudem ahnden kMinimumSendIntervalViolationError Taktratenverletzungen und kUnknownApplicationError unerwartete Serverfehler ([SWS_CM_10432]).

Als reiner Aufzählungstyp besitzt ComErrc keinen eigenen Zustand; Lese- und Vergleichsoperationen auf Fehlerwerten dürften daher im aufrufenden Thread nebenläufig sicher sein. Frage Q-013822ee5711df2b (offen) Die eigentliche Fehlerprüfung obliegt der Anwendung nach Auswertung des jeweiligen Ergebnisobjekts.

Dieser Text wurde durch eine KI erstellt und kuratiert.

Implementer's Guide folgt (Komplexität I3)

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

Record
AUTOSAR/AP/record/SWS_CM_10432
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_10432@rel:R25-11#0540727f
Content hash
0540727f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_10432
Status: valid/unmigrated Version: rel:R25-11#a1bb25ac 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_CM_10432@rel:R25-11#a1bb25ac
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0540727f2026-09-30
  • R19-11rel:R19-11#e85687322026-10-14
  • R20-11rel:R20-11#d76a076f2026-10-14
  • R21-11rel:R21-11#bba466f32026-10-14
  • R22-11rel:R22-11#defb05652026-10-14
  • R23-11rel:R23-11#6109561d2026-10-14
  • R24-11rel:R24-11#75455b1d2026-10-14
  • R25-11rel:R25-11#a1bb25ac2026-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

enumeration MethodCallProcessingMode [SWS_CM_00301] Upstream: RS_CM_00211

enum class MethodCallProcessingMode :               std::uint8_t {...};

Processing modes for the service implementation.

Header-Datei#include "ara/com/types.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com
SymbolMethodCallProcessingMode
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kPollPolling mode
kEventEvent driven and concurrent mode
kEventSingleThreadEvent driven, sequential mode
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: ef6d7e9a36c3 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Enumeration ara::com::MethodCallProcessingMode definiert die Verarbeitungsmodi für eingehende Methodenaufrufe an einer Service-Instanz [SWS_CM_00301]. Sie wird als Parameter an die Konstruktoren der Skeleton-Klassen übergeben, wobei der Standardwert ara::com::MethodCallProcessingMode::kEvent vorgegeben ist [SWS_CM_00130], [SWS_CM_00152], [SWS_CM_00153].

Die Enumeratoren steuern die Nebenläufigkeit und den Ausführungskontext der Service-Methoden [SWS_CM_00301]:

  • kPoll: Polling-Modus. Eingehende Aufrufe von Service-Konsumenten werden nicht automatisch ausgeführt. Die Service-Implementierung steuert deren Ausführung aktiv über den Aufruf von ProcessNextMethodCall() [SWS_CM_00199]. Die anstehende Methode wird synchron im Kontext dieses Aufrufs abgearbeitet. Dies gewährleistet die volle Kontrolle über Thread- und Kontextwechsel auf Service-Seite ARAComAPI §6.3.3 „Event Buffering Approaches“.
  • kEvent: Ereignisgesteuerter und nebenläufiger Modus für die parallele Bearbeitung eingehender Aufrufe.
  • kEventSingleThread: Ereignisgesteuerter, sequentieller Modus zur Einzelausführung von Methodenaufrufen.

Fehlerbehandlung und Einschränkungen:

  • Wird ein unzulässiger Modus an einen Skeleton-Konstruktor übergeben, tritt die Verletzung WrongMethodCallProcessingModeViolation auf [SWS_CM_00130], [SWS_CM_00153].
  • Der Aufruf von ProcessNextMethodCall() an einem Skeleton, der mit kEvent konstruiert wurde, führt ebenfalls zu einer WrongMethodCallProcessingModeViolation [SWS_CM_00199] (Interpretation: dies dürfte ebenso für kEventSingleThread gelten, da die Methode nur für kPoll vorgesehen ist). Frage Q-bcd9f07119db44fb (offen)

Dieser Nutzungshinweis wurde automatisiert auf Basis der AUTOSAR-Spezifikationen generiert.

Implementer's Guide folgt (Komplexität I2)

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

Record
AUTOSAR/AP/record/SWS_CM_00301
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00301@rel:R25-11#0d3dccbc
Content hash
0d3dccbc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00301
Status: valid/unmigrated Version: rel:R25-11#80be2356 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_CM_00301@rel:R25-11#80be2356
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0d3dccbc2026-09-30
  • R19-11rel:R19-11#25b194492026-10-14
  • R20-11rel:R20-11#25b194492026-10-14
  • R21-11rel:R21-11#0ad7b7102026-10-14
  • R22-11rel:R22-11#0ad7b7102026-10-14
  • R23-11rel:R23-11#6f47e07b2026-10-14
  • R24-11rel:R24-11#80be23562026-10-14
  • R25-11rel:R25-11#80be23562026-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

enumeration ServiceState [SWS_CM_01071]

enum class ServiceState :            std::uint8_t {...};

The state of the service from GetServiceState()

Header-Datei#include "ara/com/types.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com
SymbolServiceState
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kNotAvailable=0 Service is not available
kAvailable=1 Service is available

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

Record
AUTOSAR/AP/record/SWS_CM_01071
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01071@rel:R25-11#8a4f1391
Content hash
8a4f1391
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01071
Status: valid/unmigrated Version: rel:R25-11#b7ec2dcd Versionshistorie & Revisions (1 transition, 5 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_CM_01071@rel:R25-11#b7ec2dcd
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#8a4f13912026-09-30
  • R22-11rel:R22-11#e2b5988f2026-10-14
  • R23-11rel:R23-11#e2b5988f2026-10-14
  • R24-11rel:R24-11#e3fd192b2026-10-14
  • R25-11rel:R25-11#b7ec2dcd2026-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

enumeration SubscriptionState [SWS_CM_00310] Upstream: RS_CM_00103, RS_CM_00104, RS_CM_00106

enum class SubscriptionState :              std::uint8_t {...};

The subscription state of an event.

Header-Datei#include "ara/com/types.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com
SymbolSubscriptionState
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kSubscribedSubscription is active
kNotSubscribedSubscription is not active
kSubscriptionPendingSubscription is pending
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: c356f26fdfb2 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Enumeration SubscriptionState [SWS_CM_00310] repräsentiert im Namensraum ara::com auf Basis des Typs std::uint8_t den aktuellen Zustand eines Abonnements. Sie definiert drei distinkte Zustände:

  • kNotSubscribed: Das Abonnement ist inaktiv.
  • kSubscriptionPending: Das Abonnement steht noch aus oder die Verbindung wird nach einem Ausfall wiederhergestellt.
  • kSubscribed: Das Abonnement ist aktiv.

Zur synchronen Abfrage dient die Methode GetSubscriptionState(), welche an Proxy-Events [SWS_CM_00316], Proxy-Fields [SWS_CM_11604] und Triggern [SWS_CM_01105] sowie Skeleton-Triggern [SWS_CM_01109] bereitgestellt wird. Alle diese Abfragefunktionen sind als noexcept deklariert und gewährleisten vollständige Ausnahmesicherheit.

Für asynchrone Reaktionen auf Statuswechsel können Anwendungen über SetSubscriptionStateChangeHandler() einen Callback des Typs SubscriptionStateChangeHandler registrieren [SWS_CM_00311] [SWS_CM_00333]. Falls ein ungültiger oder leerer Handler übergeben wird, tritt die Verletzung InvalidHandlerViolation auf [SWS_CM_00333]. Die Deregistrierung erfolgt über UnsetSubscriptionStateChangeHandler() [SWS_CM_00334]. Über eine Template-Überladung mit ExecutorT lässt sich zudem der Ausführungskontext für den Callback festlegen [SWS_CM_11354].

Im Lebenszyklus einer Proxy-Instanz ist SubscriptionState eng mit der automatischen Aktualisierung verzahnt: Fällt eine Service-Instanz aus, schlagen Methodenaufrufe fehl und GetSubscriptionState() liefert für zuvor abonnierte Events kSubscriptionPending ARAComAPI §6.1 „Auto Updating of Proxy Instance“. Sobald die Service-Instanz über die Service Discovery wieder erreichbar ist, aktualisiert die Kommunikationsverwaltung die Verbindung transparent; GetSubscriptionState() liefert daraufhin automatisch wieder kSubscribed AUTOSAR_AP_EXP_ARAComAPI §5.3.5.2. Ein manuelles Neuerstellen des Proxys oder erneutes Abonnieren ist dabei nicht erforderlich.

Dieser Text wurde von einer KI generiert und dient als orientierende Ergänzung der AUTOSAR-Spezifikation.

Implementer's Guide folgt (Komplexität I3)

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

Record
AUTOSAR/AP/record/SWS_CM_00310
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00310@rel:R25-11#316fa484
Content hash
316fa484
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00310
Status: valid/unmigrated Version: rel:R25-11#7680ddc8 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_CM_00310@rel:R25-11#7680ddc8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#316fa4842026-09-30
  • R19-11rel:R19-11#783a62a12026-10-14
  • R20-11rel:R20-11#783a62a12026-10-14
  • R21-11rel:R21-11#149257f62026-10-14
  • R22-11rel:R22-11#149257f62026-10-14
  • R23-11rel:R23-11#27673e7a2026-10-14
  • R24-11rel:R24-11#7680ddc82026-10-14
  • R25-11rel:R25-11#7680ddc82026-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

Typaliase

type alias EventReceiveHandler [SWS_CM_00309] Upstream: RS_CM_00203, RS_AP_00114, RS_AP_00120

using EventReceiveHandler = std::function<void()>;

Callback function invoked if new event data arrives for an event. The event receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolEventReceiveHandler

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

Record
AUTOSAR/AP/record/SWS_CM_00309
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00309@rel:R25-11#7b6d0555
Content hash
7b6d0555
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00309
Status: valid/unmigrated Version: rel:R25-11#223e8e61 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_CM_00309@rel:R25-11#223e8e61
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7b6d05552026-09-30
  • R19-11rel:R19-11#395af5f02026-10-14
  • R20-11rel:R20-11#395af5f02026-10-14
  • R21-11rel:R21-11#db7e05e52026-10-14
  • R22-11rel:R22-11#395af5f02026-10-14
  • R23-11rel:R23-11#2779dae62026-10-14
  • R24-11rel:R24-11#dcc5017d2026-10-14
  • R25-11rel:R25-11#223e8e612026-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

type alias FieldReceiveHandler [SWS_CM_11615] Upstream: RS_CM_00203, RS_AP_00114, RS_AP_00120

using FieldReceiveHandler = std::function<void()>;

Callback function invoked if a new notification arrives for a field. The field receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolFieldReceiveHandler

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

Record
AUTOSAR/AP/record/SWS_CM_11615
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11615@rel:R25-11#cfafcfd5
Content hash
cfafcfd5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11615
Status: valid/unmigrated Version: rel:R25-11#799baa76 Versionshistorie & Revisions (1 transition, 3 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_CM_11615@rel:R25-11#799baa76
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cfafcfd52026-09-30
  • R24-11rel:R24-11#fae206d62026-10-14
  • R25-11rel:R25-11#799baa762026-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

type alias FindServiceHandler [SWS_CM_00383] Upstream: RS_CM_00102

using FindServiceHandler = std::function<void(ServiceHandle Container<T>, FindServiceHandle)>;

Callback function invoked if service availability changes. It takes as input parameter a handle container containing handles for all matching service instances and a ara::com:: FindServiceHandle which can be used to invoke StopFindService() from within the ara::com::FindServiceHandler.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolFindServiceHandler

Template-Parameter

ParameterBeschreibung
TData type of data sample
Siehe auch: [SWS_CM_00125]

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

Record
AUTOSAR/AP/record/SWS_CM_00383
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00383@rel:R25-11#5bc754b2
Content hash
5bc754b2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00383
Status: valid/unmigrated Version: rel:R25-11#4bb13392 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_CM_00383@rel:R25-11#4bb13392
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5bc754b22026-09-30
  • R19-11rel:R19-11#e9374da52026-10-14
  • R20-11rel:R20-11#e9374da52026-10-14
  • R21-11rel:R21-11#e9374da52026-10-14
  • R22-11rel:R22-11#10a374092026-10-14
  • R23-11rel:R23-11#40b111b32026-10-14
  • R24-11rel:R24-11#29b459892026-10-14
  • R25-11rel:R25-11#4bb133922026-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

type alias InstanceIdentifierContainer [SWS_CM_00319] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00122

using InstanceIdentifierContainer = ara::core::Vector<Instance Identifier>;

Holds a list of ara::com::InstanceIdentifiers. The assigned data type is allowed to be changed by the Communication Management software provider, but must adhere to [container.requirements.general] and [sequence.reqmts] requirements as per [30] A ara::core::Vector ([SWS_CORE_01301]) for example fulfills these requirements.

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolInstanceIdentifierContainer

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

Record
AUTOSAR/AP/record/SWS_CM_00319
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00319@rel:R25-11#ef7a629e
Content hash
ef7a629e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00319
Status: valid/unmigrated Version: rel:R25-11#fa8d6921 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_CM_00319@rel:R25-11#fa8d6921
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ef7a629e2026-09-30
  • R19-11rel:R19-11#a868f3472026-10-14
  • R20-11rel:R20-11#92724e662026-10-14
  • R21-11rel:R21-11#431357ea2026-10-14
  • R22-11rel:R22-11#2ac28cb72026-10-14
  • R23-11rel:R23-11#bc0629c32026-10-14
  • R24-11rel:R24-11#e851c8ff2026-10-14
  • R25-11rel:R25-11#fa8d69212026-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

type alias SampleAllocateePtr [SWS_CM_00308] Upstream: RS_CM_00201

using SampleAllocateePtr = std::unique_ptr<T>;

Pointer to an allocated (by Communication Management) data sample. The implementation is allowed to be changed by the Communication Management software provider.

The precondition defined in [SWS_CM_00086] must be fulfilled. Otherwise it is considered a violation.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolSampleAllocateePtr

Template-Parameter

ParameterBeschreibung
TData type of data sample

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

Record
AUTOSAR/AP/record/SWS_CM_00308
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00308@rel:R25-11#adf0f02d
Content hash
adf0f02d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00308
Status: valid/unmigrated Version: rel:R25-11#039f8d79 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_CM_00308@rel:R25-11#039f8d79
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#adf0f02d2026-09-30
  • R19-11rel:R19-11#5ad593f62026-10-14
  • R20-11rel:R20-11#5ad593f62026-10-14
  • R21-11rel:R21-11#5ad593f62026-10-14
  • R22-11rel:R22-11#5ad593f62026-10-14
  • R23-11rel:R23-11#2153a31d2026-10-14
  • R24-11rel:R24-11#039f8d792026-10-14
  • R25-11rel:R25-11#039f8d792026-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

type alias ServiceHandleContainer [SWS_CM_00304] Upstream: RS_CM_00102

using ServiceHandleContainer = ara::core::Vector<T>;

Holds a list of service handles and is used as a return value of any of the FindService() methods) • [SWS_CM_00122] • [SWS_CM_00622] . The assigned data type is allowed to be changed by the Communication Management software provider, but must adhere to [container.requirements.general] and [sequence.reqmts] requirements as per [30]. A ara::core::Vector ([SWS_CORE_ 01301]) for example fulfills these requirements.

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolServiceHandleContainer

Template-Parameter

ParameterBeschreibung
Tservice handle

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

Record
AUTOSAR/AP/record/SWS_CM_00304
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00304@rel:R25-11#7afe7d37
Content hash
7afe7d37
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00304
Status: valid/unmigrated Version: rel:R25-11#6d2b7cf6 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_CM_00304@rel:R25-11#6d2b7cf6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7afe7d372026-09-30
  • R19-11rel:R19-11#5e4ae44f2026-10-14
  • R20-11rel:R20-11#f25f37592026-10-14
  • R21-11rel:R21-11#be1867dc2026-10-14
  • R22-11rel:R22-11#5d1adbf22026-10-14
  • R23-11rel:R23-11#156ff0142026-10-14
  • R24-11rel:R24-11#19b088802026-10-14
  • R25-11rel:R25-11#6d2b7cf62026-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

type alias ServiceStateHandler [SWS_CM_01072]

using ServiceStateHandler = std::function<void(ServiceState)>;

Functor used as input arguments for any of the SetServiceStateChangeHandler() methods: • [SWS_CM_01074] • [SWS_CM_01076]

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolServiceStateHandler

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

Record
AUTOSAR/AP/record/SWS_CM_01072
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01072@rel:R25-11#c869ffc2
Content hash
c869ffc2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01072
Status: valid/unmigrated Version: rel:R25-11#6c72f419 Versionshistorie & Revisions (1 transition, 5 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_CM_01072@rel:R25-11#6c72f419
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#c869ffc22026-09-30
  • R22-11rel:R22-11#152adeba2026-10-14
  • R23-11rel:R23-11#152adeba2026-10-14
  • R24-11rel:R24-11#720d0f2a2026-10-14
  • R25-11rel:R25-11#6c72f4192026-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

type alias SubscriptionStateChangeHandler [SWS_CM_00311] Upstream: RS_CM_00103, RS_CM_00104, RS_CM_00106

using SubscriptionStateChangeHandler = std::function<void(Subscription State)>;

Callback function invoked if ara::com::SubscriptionState of an event has changed.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolSubscriptionStateChangeHandler
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: e8a7f7be42ec Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Der Typalias SubscriptionStateChangeHandler im Namensraum ara::com ist als std::function<void(SubscriptionState)> in der Header-Datei ara/com/types.h deklariert ([SWS_CM_00311]). Er spezifiziert die Funktionssignatur für anwendungseigene Callbacks, die ausgelöst werden, sobald sich der ara::com::SubscriptionState eines abonnierten Proxy-Events ändert ([SWS_CM_00311], EXP_ARAComAPI §5.3 „Proxy Class API’s“). Beim Aufruf wird der neue Abonnementzustand direkt als Parameter übergeben; ein Rückgabewert ist nicht vorgesehen ([SWS_CM_00311]).

Die Registrierung des Handlers erfolgt über die Methode SetSubscriptionStateChangeHandler() der jeweiligen Proxy-Klasse (EXP_ARAComAPI §5.3.1 „Proxy Class API’s“, EXP_ARAComAPI §5.3 „Proxy Class API’s“). Diese Operation liefert ein ara::core::Result<void> zurück (EXP_ARAComAPI §5.3 „Proxy Class API’s“), worüber Anwendungsentwickler mögliche Fehler bei der Registrierung synchron prüfen können. Das gezielte Entfernen des registrierten Callbacks geschieht über den Aufruf von UnsetSubscriptionStateChangeHandler() gemäß [SWS_CM_00334] (EXP_ARAComAPI §1 „Introduction“, EXP_ARAComAPI §5.3.1 „Proxy Class API’s“).

Hinsichtlich des Ablaufs und der Nebenläufigkeit erfolgt die Zustandsbenachrichtigung asynchron. Der Aufruf des Handlers dürfte vermutlich im Thread-Kontext der Kommunikationsinfrastruktur erfolgen (Interpretation). Frage Q-8dda0cd4de0070bf (offen) Daher muss die Implementierung des Callbacks zügig zurückkehren und reentrant bzw. thread-sicher aufgebaut sein. Das Zusammenspiel des Handlers bindet sich eng an den Lebenszyklus des Event-Abonnements ein, insbesondere in Kombination mit Subscribe(), Unsubscribe() und GetSubscriptionState() (EXP_ARAComAPI §5.3.1 „Proxy Class API’s“).

Dieser Text wurde von einer KI erstellt; er ersetzt nicht die Lektüre der Spezifikation.

Implementer's Guide folgt (Komplexität I2)

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

Record
AUTOSAR/AP/record/SWS_CM_00311
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00311@rel:R25-11#ee97a259
Content hash
ee97a259
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00311
Status: valid/unmigrated Version: rel:R25-11#21ac17ff 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_CM_00311@rel:R25-11#21ac17ff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ee97a2592026-09-30
  • R19-11rel:R19-11#e22ba4e32026-10-14
  • R20-11rel:R20-11#e22ba4e32026-10-14
  • R21-11rel:R21-11#e22ba4e32026-10-14
  • R22-11rel:R22-11#e22ba4e32026-10-14
  • R23-11rel:R23-11#5878c7452026-10-14
  • R24-11rel:R24-11#287ce5e32026-10-14
  • R25-11rel:R25-11#21ac17ff2026-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

type alias TriggerReceiveHandler [SWS_CM_00351] Upstream: RS_CM_00203, RS_AP_00114, RS_AP_00120

using TriggerReceiveHandler = std::function<void()>;

A function wrapper for the handler function that gets called in case a new trigger arrives for an event. The trigger receiver must provide the function implementation which is not required to be re-entrant. Usage of std::function is recommended but not mandatory.

Header-Datei#include "ara/com/types.h"
Scopenamespace ara::com
SymbolTriggerReceiveHandler

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

Record
AUTOSAR/AP/record/SWS_CM_00351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00351@rel:R25-11#7e62cd34
Content hash
7e62cd34
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00351
Status: valid/unmigrated Version: rel:R25-11#fc6a9105 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_CM_00351@rel:R25-11#fc6a9105
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#7e62cd342026-09-30
  • R21-11rel:R21-11#4d5accb82026-10-14
  • R22-11rel:R22-11#7e2a7c042026-10-14
  • R23-11rel:R23-11#9b69b1902026-10-14
  • R24-11rel:R24-11#f8c62c622026-10-14
  • R25-11rel:R25-11#fc6a91052026-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

Dokumentation der freien Funktionen

function GetComErrorDomain [SWS_CM_11334] Upstream: RS_AP_00120, RS_AP_00130

constexpr const ara::core::ErrorDomain & GetComErrorDomain () noexcept;

Returns a reference to the ara::com::ComErrorDomain object

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 0c734de51692 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die globale Funktion GetComErrorDomain im Namensraum ara::com stellt eine Referenz auf das Fehlerbereichs-Objekt ara::com::ComErrorDomain bereit [SWS_CM_11334]. Die Deklaration ist über den Header ara/com/com_error_domain.h eingebunden und erfolgt als synchroner, parameterloser Aufruf SWS CommunicationManagement §8.12.3.1.1 „GetComErrorDomain“. Als Rückgabewert liefert die Funktion eine konstante Referenz des Typs const ara::core::ErrorDomain&, welche den Kommunikationsfehlerbereich im System repräsentiert.

Fehlerbehandlung und Exception-Sicherheit

Die Schnittstelle ist explizit als noexcept deklariert und gilt als ausnahmesicher (exception safe) [SWS_CM_11334]. Da der Funktionsaufruf stets erfolgreich ist, treten keine Laufzeitfehler auf. Aufrufer müssen daher keine Fehlerbehandlung für den Funktionsaufruf selbst vorsehen. Spezifische Fehlercodes, Rückmeldekanäle oder Meldungen an DET oder DEM sind für diesen Abruf in der Spezifikation nicht definiert.

Nebenläufigkeit und Zusammenspiel

Dank der Deklaration mit constexpr und noexcept dürfte die Funktion zustandslos, seiteneffektfrei sowie uneingeschränkt reentrant und threadsicher sein; vermutlich lässt sie sich auch zur Compilezeit ausführen. Frage Q-21aafe1fdcb5997b (offen) Die bereitgestellte Fehlerdomäne dient im Gesamtsystem als Referenzinstanz, um Fehlercodes aus Operationen des Communication Managements anhand ihrer Domänenzugehörigkeit zu verifizieren und von anderen Fehlerquellen abzugrenzen [SWS_CM_11334].

Dieser Nutzungshinweis wurde von einer KI auf Basis der Spezifikation AUTOSAR R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

Header-Datei#include "ara/com/com_error_domain.h"
Scopenamespace ara::com
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
const ara::core::ErrorDomain &Reference to the ara::com::ComErrorDomain object

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

Record
AUTOSAR/AP/record/SWS_CM_11334
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11334@rel:R25-11#84138e22
Content hash
84138e22
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11334
Status: valid/unmigrated Version: rel:R25-11#540ecd6a Versionshistorie & Revisions (1 transition, 7 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_CM_11334@rel:R25-11#540ecd6a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#84138e222026-09-30
  • R20-11rel:R20-11#6ab718532026-10-14
  • R21-11rel:R21-11#86c8bf622026-10-14
  • R22-11rel:R22-11#d0609f3d2026-10-14
  • R23-11rel:R23-11#93b5f2792026-10-14
  • R24-11rel:R24-11#8fd9abb62026-10-14
  • R25-11rel:R25-11#540ecd6a2026-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 MakeErrorCode [SWS_CM_11335] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00130

constexpr ara::core::ErrorCode MakeErrorCode (ara::com::ComErrc code, ara::core::ErrorDomain::SupportDataType data) noexcept;

Creates an instance of ara::core::ErrorCode

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 43b1024d6785 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Hilfsfunktion ara::com::MakeErrorCode dient der Erzeugung einer Instanz von ara::core::ErrorCode ([SWS_CM_11335], SWS CommunicationManagement §8.12.3.1.2 „MakeErrorCode“). Sie wird über die Header-Datei #include "ara/com/com_error_domain.h" im Namensraum ara::com deklariert. Als Eingabeparameter nimmt sie die Fehlernummer code vom Typ ara::com::ComErrc sowie herstellerspezifische Zusatzdaten data des Typs ara::core::ErrorDomain::SupportDataType entgegen und liefert das entsprechende Fehlerobjekt synchron zurück.

Hinsichtlich der Ausführungssicherheit ist die Funktion als noexcept spezifiziert und ausdrücklich als ausnahmesicher („exception safe“) eingestuft ([SWS_CM_11335]). Laufzeitmeldungen über DET oder DEM sind für diese Hilfsfunktion nicht vorgesehen, da sie ausschließlich der Konstruktion von Fehlerobjekten dient. Aufgrund der Deklaration als constexpr und noexcept dürfte die Funktion seiteneffektfrei und reentrant sein, wodurch Aufrufe auch zur Übersetzungszeit sowie aus nebenläufigen Kontexten zulässig sind. Frage Q-43f118920f402d86 (offen)

Das Architekturmuster folgt dem plattformweiten Fehlermodell von Adaptive AUTOSAR und wird für angrenzende Funktionsdomänen analog bereitgestellt: Für die End-to-End-Absicherung existiert die Funktion ara::com::e2e::MakeErrorCode ([SWS_CM_12511], SWS CommunicationManagement §8.15.2.1.2 „MakeErrorCode“), während für Sicherheitsfunktionen apext::com::secoc::MakeErrorCode zur Verfügung steht ([SWS_CM_12522], SWS CommunicationManagement §C.2.2.1.2 „MakeErrorCode“).

Dieser Text wurde von einer KI generiert und dient als Orientierungshilfe.

Implementer's Guide folgt (Komplexität I2)

Header-Datei#include "ara/com/com_error_domain.h"
Scopenamespace ara::com
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
codeError code number.
dataVendor defined data associated with the error

Rückgabewert

TypBeschreibung
ara::core::ErrorCodeAn ara::core::ErrorCode object.

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

Record
AUTOSAR/AP/record/SWS_CM_11335
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11335@rel:R25-11#e57005e7
Content hash
e57005e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11335
Status: valid/unmigrated Version: rel:R25-11#ed0a7b5c Versionshistorie & Revisions (1 transition, 7 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_CM_11335@rel:R25-11#ed0a7b5c
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#e57005e72026-09-30
  • R20-11rel:R20-11#3105d5f82026-10-14
  • R21-11rel:R21-11#14964c692026-10-14
  • R22-11rel:R22-11#d4a3decc2026-10-14
  • R23-11rel:R23-11#abab96942026-10-14
  • R24-11rel:R24-11#555364d52026-10-14
  • R25-11rel:R25-11#ed0a7b5c2026-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