DEENESPTFRRUARHIKOZHNL

class <SI-Namespace>::proxy::events::<Event>

User GuideAI-GENERATED

Enables client applications to subscribe to service events and receive typed new data samples.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 056774d8023a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Enables client applications to subscribe to service events and receive typed new data samples.

The interface class <SI-Namespace>::proxy::events::<Event> enables client applications in the AUTOSAR Adaptive Platform to receive service events on the consumer side via the com module. The typical workflow comprises requesting the subscription via Subscribe [SWS_CM_00141], reactive notification via registered handlers, and synchronous sample retrieval using GetNewSamples [SWS_CM_00701]. In doing so, no more sample pointers may be held concurrently than were reserved during subscription, and all references must be released prior to unsubscription via Unsubscribe.

Context

The C++ class <SI-Namespace>::proxy::events::<Event> represents the consumer-side interface for a service event in the com module of the AUTOSAR Adaptive Platform (Release R25-11). Within the service-oriented communication pattern, this generated class serves as the local representative of an event provided by the server skeleton. Client applications use instances of this class to subscribe to event data, receive incoming samples from the communication network, and control their lifecycle on the consumer side AUTOSAR_AP_EXP_ARAComAPI p. 10.

The essential interaction partners of the class are:

  • Application (Subscriber): Initiates the registration of the event subscription via Subscribe [SWS_CM_00141], provides callback routines for data reception as well as status changes, and queries new samples via GetNewSamples [SWS_CM_00701].
  • Communication Management: Coordinates the transmission of event data across the underlying middleware, manages the network status, and executes the registered notification handlers upon arrival of new events or state changes [SWS_CM_00181], [SWS_CM_00333].
  • Execution context (Executor): When using overloaded registration methods, asynchronous handlers are executed within an explicitly passed context ExecutorT [SWS_CM_11354], [SWS_CM_11356], [SWS_CM_00100].
EventKontext Anwendung Application ProxyEvent Proxy-Event Anwendung->ProxyEvent Subscribe / GetNewSamples ProxyEvent->Anwendung Handler-Aufruf CommunicationManagement Communication Management CommunicationManagement->ProxyEvent Ereignisdaten / Status

Context diagram: Interaction relationships between application, proxy event, and Communication Management. Sources: [SWS_CM_00141], [SWS_CM_00181], AUTOSAR_AP_EXP_ARAComAPI p. 10

Lifecycle

The instantiation and destruction of <SI-Namespace>::proxy::events::<Event>, as a member of the enclosing proxy class, is presumably tightly bound to the lifetime of the service proxy. Question Q-6c591ea580278c12 (open) After creation, the event is initially in the unsubscribed state. The current subscription status can be queried at any time via GetSubscriptionState, which returns the state as ara::com::SubscriptionState [SWS_CM_00316].

The transition to the active subscription state is initiated via Subscribe, where the maximum number of concurrently available cache slots is specified via maxSampleCount [SWS_CM_00141]. If the event is already in the states kSubscribed or kSubscriptionPending at the time of the call and the passed value matches the current one, the call has no effect [SWS_CM_00141]. Communication Management reports state changes of the subscription via a handler registered by means of SetSubscriptionStateChangeHandler [SWS_CM_00333] or with an execution context via SetSubscriptionStateChangeHandler [SWS_CM_11354]. This registration can be revoked via UnsetSubscriptionStateChangeHandler [SWS_CM_00334] AUTOSAR_AP_EXP_ARAComAPI p. 10.

In addition, the class manages the state of End-to-End protection (E2E). Via GetE2EStateMachineState, the state ara::com::e2e::SMState of the E2E state machine is determined as determined during the most recent internal call to E2E_Check() during GetNewSamples() [SWS_CM_11554]. Faulty transmission conditions can be monitored by handlers set via SetTransportFaultConditionHandler [SWS_CM_00099] or [SWS_CM_00100] and removed via UnsetTransportFaultConditionHandler [SWS_CM_00105].

The subscription is terminated via Unsubscribe [SWS_CM_00151] AUTOSAR_AP_EXP_ARAComAPI p. 10. If the event is not subscribed at this time, the method returns without action [SWS_CM_00151]. All member functions are declared as noexcept and provide full exception safety.

Usage Path

The typical procedure for using the proxy event is divided into the following sequential phases:

  1. Initiate subscription: The application calls Subscribe(maxSampleCount) [SWS_CM_00141] to reserve the buffer size for incoming samples.
  2. Configure notification: Via SetReceiveHandler [SWS_CM_00181] (or with execution context via [SWS_CM_11356]), a parameterless callback is registered that is invoked by Communication Management when new events arrive.
  3. Retrieve and process samples: In the callback, the application calls GetNewSamples [SWS_CM_00701]. A passed callable f with signature void(ara::com::SamplePtr<SampleType const>) processes each sample sequentially. Here, SampleType corresponds to the type-specific payload type of the event [SWS_CM_11401]. The return value provides, as ara::core::Result<std::size_t>, the exact number of samples passed to f [SWS_CM_00701].
  4. Monitor cache: Using GetFreeSampleCount [SWS_CM_00705], the application can check the number of unused slots in the local cache to detect buffer bottlenecks early.
  5. Dereferencing and unsubscription: After data processing is complete, the receive trigger is deactivated with UnsetReceiveHandler [SWS_CM_00183] and the subscription is terminated via Unsubscribe [SWS_CM_00151].
Event subscription and sample processingApplicationProxy-EventCommunication ManagementSubscribe(maxSampleCount)Abonnement anfordernSetReceiveHandler(handler)handler()GetNewSamples(f, maxNumberOfSamples)ara::core::Result<std::size_t>Unsubscribe()

Sequence diagram: Typical sequence of subscription, notification, sample processing, and unsubscription. Sources: [SWS_CM_00141], [SWS_CM_00181], [SWS_CM_00701], [SWS_CM_00151]

Error Scenarios

When using the class, specific error codes and runtime violations can occur that require defensive checks:

  • Configuration error during re-subscription: If Subscribe is called while the event is already subscribed, and the new maxSampleCount differs from the current value, the call fails with error code ComErrc::kMaxSampleCountNotRealizable [SWS_CM_00141]. In case of missing permissions, the system refuses execution with a InsufficientPermissionsViolation [SWS_CM_00141].
  • Exceeding buffer limits: If the application holds more instances of ara::com::SamplePtr than were guaranteed in the previous call to Subscribe, GetNewSamples returns the error code ComErrc::kMaxSamplesExceeded; in this case, data samples may have been dropped [SWS_CM_00701].
  • Invalid handler passed: If an invalid or empty (null) callable object is passed to SetReceiveHandler, SetSubscriptionStateChangeHandler, or SetTransportFaultConditionHandler, a InvalidHandlerViolation is triggered ([SWS_CM_00181], [SWS_CM_11356], [SWS_CM_00333], [SWS_CM_11354], [SWS_CM_00099], [SWS_CM_00100]).
  • Remaining samples upon unsubscription: If not all held ara::com::SamplePtr are released prior to calling Unsubscribe, this results in a DanglingSamplesViolation [SWS_CM_00151].

This guide was generated by an AI based on the AUTOSAR R25-11 specification.

Member map

Class diagram

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

G n_SI_Namespace___proxy__events___Event_711 <Event> + SetTransportFaultConditionHandler() + UnsetTransportFaultConditionHandler() + GetE2EStateMachineState() + GetFreeSampleCount() + GetNewSamples() + GetSubscriptionState() + SetSubscriptionStateChangeHandler() + Subscribe() + UnsetSubscriptionStateChangeHandler() + Unsubscribe() + SetReceiveHandler() + UnsetReceiveHandler()

Detail view

Select an entry in the outline.

Methods

Returns the state of the specific event class, which was determined by the last run of E2E_Check() function invoked during the last call of GetNewSamples()

ara::com::e2e::SMState GetE2EStateMachineState () const noexcept;

Query Free Sample Slots

std::size_t GetFreeSampleCount () const noexcept;
GetNewSamples function

Method to update the event cache.

template <typename F> ara::core::Result< std::size_t > GetNewSamples (F &&f, std::size_t max NumberOfSamples=std::numeric_limits< std::size_t >::max()) noexcept;

Query ara::com::SubscriptionState, as per [SWS_CM_00310].

ara::com::SubscriptionState GetSubscriptionState () const noexcept;

Set/Register the event receive handler

Overloads SetReceiveHandler 2
void SetReceiveHandler (ara::com::EventReceiveHandler handler) noexcept; SWS_CM_00181
template <typename ExecutorT> void SetReceiveHandler (ara::com::EventReceiveHandler handler, ExecutorT &&executor) noexcept; SWS_CM_11356

Set ara::com::SubscriptionState change handler

Overloads SetSubscriptionStateChangeHandler 2
void SetSubscriptionStateChangeHandler (ara::com::SubscriptionState ChangeHandler handler) noexcept; SWS_CM_00333
template <typename ExecutorT> void SetSubscriptionStateChangeHandler (ara::com::SubscriptionState ChangeHandler handler, ExecutorT &&executor) noexcept; SWS_CM_11354

Provides possibility to register a ara::com::e2e::TransportFaultConditionHandler for a given Proxy Event.

Overloads SetTransportFaultConditionHandler 2
void SetTransportFaultConditionHandler (ara::com::e2e::TransportFault ConditionHandler handler) noexcept; SWS_CM_00099
template <typename ExecutorT> void SetTransportFaultConditionHandler (ara::com::e2e::TransportFault ConditionHandler handler, ExecutorT &&executor) noexcept; SWS_CM_00100
Subscribe function

Method to subscribe to a service event. If the Event is already in state kSubscribed or in state kSubscriptionPending at the time of the call, and the provided maxSampleCount value is the same as for the current subscription, the method shall return without action.

ara::core::Result< void > Subscribe (std::size_t maxSampleCount) noexcept;

Disable service event trigger

void UnsetReceiveHandler () noexcept;

Unset ara::com::SubscriptionState change handler

void UnsetSubscriptionStateChangeHandler () noexcept;

Provides the possibility to unregister a previously set ara::com::e2e:: TransportFaultConditionHandler for a given Proxy Event.

void UnsetTransportFaultConditionHandler () noexcept;
Unsubscribe function

Method to unsubscribe from a service event. If the Event is not subscribed to at the time of the call, the method shall return without action.

void Unsubscribe () noexcept;

Type aliases

SampleType type alias

As per [SWS_CM_11400]

using SampleType = <PSampleCppidt>;

Method documentation

function GetE2EStateMachineState [SWS_CM_11554] Upstream: RS_CM_00224, RS_E2E_08534

ara::com::e2e::SMState GetE2EStateMachineState () const noexcept;

Returns the state of the specific event class, which was determined by the last run of E2E_Check() function invoked during the last call of GetNewSamples()

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
ara::com::e2e::SMStateState of the specific event class
Siehe auch: [SWS_CM_90417]

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

Record
AUTOSAR/AP/record/SWS_CM_11554
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11554@rel:R25-11#f9e47818
Content hash
f9e47818
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11554
Status: valid/unmigrated Version: rel:R25-11#4c81e570 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_11554@rel:R25-11#4c81e570
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f9e478182026-09-30
  • R24-11rel:R24-11#5c2922c82026-10-14
  • R25-11rel:R25-11#4c81e5702026-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 GetFreeSampleCount [SWS_CM_00705] Upstream: RS_CM_00202, RS_AP_00114, RS_AP_00120, RS_AP_00127, RS_AP_00128, RS_AP_00139

std::size_t GetFreeSampleCount () const noexcept;

Query Free Sample Slots

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
std::size_tThe number of free/unused slots for event sample data in the local cache

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

Record
AUTOSAR/AP/record/SWS_CM_00705
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00705@rel:R25-11#2f7ed596
Content hash
2f7ed596
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00705
Status: valid/unmigrated Version: rel:R25-11#f96adb34 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_00705@rel:R25-11#f96adb34
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2f7ed5962026-09-30
  • R19-11rel:R19-11#008f5d482026-10-14
  • R20-11rel:R20-11#e5d3f0782026-10-14
  • R21-11rel:R21-11#c65b737d2026-10-14
  • R22-11rel:R22-11#c65b737d2026-10-14
  • R23-11rel:R23-11#c65b737d2026-10-14
  • R24-11rel:R24-11#61ce58d62026-10-14
  • R25-11rel:R25-11#f96adb342026-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 GetNewSamples [SWS_CM_00701] Upstream: RS_CM_00202, RS_AP_00114, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00139

template <typename F> ara::core::Result< std::size_t > GetNewSamples (F &&f, std::size_t max NumberOfSamples=std::numeric_limits< std::size_t >::max()) noexcept;

Method to update the event cache.

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Template-Parameter

ParameterBeschreibung
FFunctor which shall process the received samples

Parameter (in)

ParameterBeschreibung
fCallable ([[func.wrap]]) f with signature void(ara::com:: SamplePtr<SampleType const>)
maxNumberOfSamplesMaximum number of received data samples being processed in the function call.

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >• If successful: an ara::core::Result containing a ara:: core::Result::value_type i.e. a std::size_t the total number of data samples passed to f • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kMaxSamplesExceededno_rollback_semantics Application holds more ara::com::SamplePtrs than commited in Subscribe() Samples were possibly skipped.

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

Record
AUTOSAR/AP/record/SWS_CM_00701
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00701@rel:R25-11#35572f2e
Content hash
35572f2e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00701
Status: valid/unmigrated Version: rel:R25-11#7a1e5108 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_00701@rel:R25-11#7a1e5108
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#35572f2e2026-09-30
  • R19-11rel:R19-11#a5b2b06e2026-10-14
  • R20-11rel:R20-11#d77236b02026-10-14
  • R21-11rel:R21-11#687f003e2026-10-14
  • R22-11rel:R22-11#687f003e2026-10-14
  • R23-11rel:R23-11#687f003e2026-10-14
  • R24-11rel:R24-11#a6b509202026-10-14
  • R25-11rel:R25-11#7a1e51082026-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 GetSubscriptionState [SWS_CM_00316] Upstream: RS_CM_00106

ara::com::SubscriptionState GetSubscriptionState () const noexcept;
Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
ara::com::SubscriptionStateThe state of the subscription.

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

Record
AUTOSAR/AP/record/SWS_CM_00316
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00316@rel:R25-11#6bf8f888
Content hash
6bf8f888
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00316
Status: valid/unmigrated Version: rel:R25-11#755da336 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_00316@rel:R25-11#755da336
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6bf8f8882026-09-30
  • R19-11rel:R19-11#cabe62962026-10-14
  • R20-11rel:R20-11#cabe62962026-10-14
  • R21-11rel:R21-11#cabe62962026-10-14
  • R22-11rel:R22-11#cabe62962026-10-14
  • R23-11rel:R23-11#4857a81f2026-10-14
  • R24-11rel:R24-11#3c50d0a12026-10-14
  • R25-11rel:R25-11#755da3362026-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 SetReceiveHandler [SWS_CM_00181] Upstream: RS_CM_00203, RS_AP_00114, RS_AP_00120, RS_AP_00121

void SetReceiveHandler (ara::com::EventReceiveHandler handler) noexcept;

Set/Register the event receive handler

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 262c351f3d58 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function SetReceiveHandler is used on the client side in scope <SI-Namespace>::proxy::events::<Event> to register a callback handler for incoming events [SWS_CM_00181]. Passed as parameter is a ara::com::EventReceiveHandler, which is defined as a parameterless function and is called by Communication Management upon event arrival [SWS_CM_00181]. The function has no return value (void) [SWS_CM_00181].

Error Handling and Exception Behavior

The operation is specified as noexcept and exception-safe (exception safe) [SWS_CM_00181]. If the passed callable does not exist or is null, this is treated as a InvalidHandlerViolation [SWS_CM_00181].

Execution context and interaction

Within the proxy interfaces, SetReceiveHandler belongs to the basic mechanisms alongside calls such as UnsetReceiveHandler() and GetNewSamples() ARAComAPI §5.3.1 “Proxy Class API’s”. If the handler is to be executed in a specified context, the template overload with ExecutorT is available [SWS_CM_11356] (ARAComAPI p. 10).

The same notification approach is also used for triggers via [SWS_CM_00250] (with context: [SWS_CM_00352]) as well as for fields via [SWS_CM_11605] (with context: [SWS_CM_11611]) ARAComAPI §4.2 “Means of Communication”.

This usage note was generated by an AI based on the specification AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Parameter (in)

ParameterBeschreibung
handlerThe handler that shall be called by Communication Management upon event arrival. The EventReceiveHandler constitutes a function without parameters and has to use the f method of the specific Event class to access the retrieved event data. See [SWS_CM_00309] for its definition.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00181
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00181@rel:R25-11#20b3d958
Content hash
20b3d958
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00181
Status: valid/unmigrated Version: rel:R25-11#bc1861fe 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_00181@rel:R25-11#bc1861fe
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#20b3d9582026-09-30
  • R19-11rel:R19-11#7d8bf15d2026-10-14
  • R20-11rel:R20-11#60f2a7dc2026-10-14
  • R21-11rel:R21-11#240b5a672026-10-14
  • R22-11rel:R22-11#ab46c35e2026-10-14
  • R23-11rel:R23-11#345270f22026-10-14
  • R24-11rel:R24-11#0dc195ca2026-10-14
  • R25-11rel:R25-11#bc1861fe2026-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 SetReceiveHandler [SWS_CM_11356] Upstream: RS_CM_00211, RS_AP_00114, RS_AP_00120, RS_AP_00127, RS_AP_00128, RS_AP_00138

template <typename ExecutorT> void SetReceiveHandler (ara::com::EventReceiveHandler handler, ExecutorT &&executor) noexcept;

As per [SWS_CM_00181] but the method shall execute in a provided context

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Template-Parameter

ParameterBeschreibung
ExecutorTAs per [SWS_CM_11360]

Parameter (in)

ParameterBeschreibung
handlerAs per [SWS_CM_00181]
executorAs per [SWS_CM_11360]

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_11356
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11356@rel:R25-11#5d1f0334
Content hash
5d1f0334
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11356
Status: valid/unmigrated Version: rel:R25-11#e20529b7 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_11356@rel:R25-11#e20529b7
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#5d1f03342026-09-30
  • R20-11rel:R20-11#fec7d2902026-10-14
  • R21-11rel:R21-11#386272552026-10-14
  • R22-11rel:R22-11#386272552026-10-14
  • R23-11rel:R23-11#a1cf75c52026-10-14
  • R24-11rel:R24-11#0f9051a22026-10-14
  • R25-11rel:R25-11#e20529b72026-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 SetSubscriptionStateChangeHandler [SWS_CM_00333] Upstream: RS_CM_00106

void SetSubscriptionStateChangeHandler (ara::com::SubscriptionState ChangeHandler handler) noexcept;

Set ara::com::SubscriptionState change handler

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a54152e96424 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method SetSubscriptionStateChangeHandler in namespace proxy::events::<Event> registers a callback function that Communication Management calls as soon as the state ara::com::SubscriptionState of the event changes ([SWS_CM_00333]). The function is declared as noexcept and is considered exception-safe ([SWS_CM_00333]).

Usage and Asynchronous Semantics

Calls to Subscribe() operate asynchronously in principle; a successful subscription may only be considered completed once the registered handler or GetSubscriptionState() reports state kSubscribed ([SWS_CM_12006]). The handler is called with kSubscriptionPending if the subscription does not take effect immediately (for example, due to bus protocol latencies) or if the server instance is unreachable due to restarts or network errors ([SWS_CM_00313]). Deregistration of the handler is performed via UnsetSubscriptionStateChangeHandler() (EXP ARAComAPI §5.3.1 “Proxy Class API’s”).

Error Handling and Boundary Conditions

If no valid callback object is passed or if it is null, error case InvalidHandlerViolation is present ([SWS_CM_00333]). Regarding the call order, the handler should expediently be registered before Subscribe() in order to reliably capture early state transitions. Question Q-3b9c25c6aa2d0a0f (open)

Interaction and Variants

For executing the handler in a specified thread or work context, the overloaded template variant with parameter ExecutorT is available ([SWS_CM_11354]). Parallel interfaces exist for proxy triggers ([SWS_CM_01107]), proxy fields ([SWS_CM_11607]), and at the skeleton level ([SWS_CM_12008]).

AI-generated usage note based on AUTOSAR R25-11.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Parameter (in)

ParameterBeschreibung
handlerThe handler that shall be called by Communication Management when the ara::com::SubscriptionState of the event has changed.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00333
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00333@rel:R25-11#7e30b3f5
Content hash
7e30b3f5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00333
Status: valid/unmigrated Version: rel:R25-11#dcf32e4c 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_00333@rel:R25-11#dcf32e4c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e30b3f52026-09-30
  • R19-11rel:R19-11#ae3e84222026-10-14
  • R20-11rel:R20-11#32090fe52026-10-14
  • R21-11rel:R21-11#0c6444642026-10-14
  • R22-11rel:R22-11#b8f5d2782026-10-14
  • R23-11rel:R23-11#a0c415c22026-10-14
  • R24-11rel:R24-11#2a72383b2026-10-14
  • R25-11rel:R25-11#dcf32e4c2026-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 SetSubscriptionStateChangeHandler [SWS_CM_11354] Upstream: RS_CM_00211, RS_AP_00114, RS_AP_00120, RS_AP_00127, RS_AP_00128, RS_AP_00138

template <typename ExecutorT> void SetSubscriptionStateChangeHandler (ara::com::SubscriptionState ChangeHandler handler, ExecutorT &&executor) noexcept;

As per [SWS_CM_00333] but the method shall execute in a provided context

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5334daeddc44 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function SetSubscriptionStateChangeHandler in scope proxy::events::<Event> serves to register a callback function for subscription state changes (ara::com::SubscriptionState) ([SWS_CM_11354], AP EXP ARAComAPI §5.3.1 “Proxy Class API’s”). In contrast to the base function [SWS_CM_00333], the handler is not executed in the internal context of Communication Management, but is passed via template parameter ExecutorT to a provided execution context executor ([SWS_CM_11360], AP EXP ARAComAPI §1.0 “SetSubscriptionState with ExecutorT”).

Parameters and Return Values

  • handler: The callable to be invoked that is notified upon a change in the ara::com::SubscriptionState of the event ([SWS_CM_00333]).
  • executor: The execution context according to [SWS_CM_11360] in which the handler is to be processed.
  • Return value: The function has no return value (void).

Error Handling and Execution

The function is declared as noexcept and specified as exception-safe (exception safe). If the passed callable handler does not exist or is null, an InvalidHandlerViolation is thrown ([SWS_CM_11354]).

Interaction

The pattern of context-bound state monitoring with ExecutorT exists analogously for proxy triggers ([SWS_CM_01106]) as well as proxy fields ([SWS_CM_11608]). If no offloading to a specific context is required, variant [SWS_CM_00333] is available.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I3)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Template-Parameter

ParameterBeschreibung
ExecutorTAs per [SWS_CM_11360]

Parameter (in)

ParameterBeschreibung
handlerAs per [SWS_CM_00333]
executorAs per [SWS_CM_11360]

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_11354
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11354@rel:R25-11#98929d19
Content hash
98929d19
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11354
Status: valid/unmigrated Version: rel:R25-11#a42e5998 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_11354@rel:R25-11#a42e5998
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#98929d192026-09-30
  • R20-11rel:R20-11#17b3a5402026-10-14
  • R21-11rel:R21-11#f500c0cd2026-10-14
  • R22-11rel:R22-11#f500c0cd2026-10-14
  • R23-11rel:R23-11#7e227a6e2026-10-14
  • R24-11rel:R24-11#65eecdd42026-10-14
  • R25-11rel:R25-11#a42e59982026-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 SetTransportFaultConditionHandler [SWS_CM_00099] Upstream: RS_CM_00224, RS_E2E_08534

void SetTransportFaultConditionHandler (ara::com::e2e::TransportFault ConditionHandler handler) noexcept;

Provides possibility to register a ara::com::e2e::TransportFaultConditionHandler for a given Proxy Event.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f1aa03e805b1 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function SetTransportFaultConditionHandler serves on a proxy event ([SWS_CM_00099]) to register a callback function of type ara::com::e2e::TransportFaultConditionHandler. Via this handler, transmission errors detected on the transport level of the communication binding are reported ([SWS_CM_00211]).

Usage and semantics:

  • Call and parameters: The function takes the callable handler object handler and returns no value ([SWS_CM_00099]). The method signature is declared as noexcept ([SWS_CM_00099]).
  • Transmitted error states: In case of an error, the registered handler reports values of the enum ara::com::e2e::TransportFaultCondition, such as kSampleRejected in case of dropped samples of the underlying transport channel ([SWS_CM_00211]).
  • Execution context: For asynchronous executions, a template overload with an additional executor object ExecutorT&& executor is available ([SWS_CM_00100]).

Error handling and constraints:

  • Exception safety: The function is considered exception-safe (exception safe) ([SWS_CM_00099]).
  • Violations: If the passed callable does not exist or is null, a InvalidHandlerViolation violation is present ([SWS_CM_00099]).
  • Interaction: Equivalent interfaces for registering a TransportFaultConditionHandler also exist for triggers ([SWS_CM_00106]), field notifiers ([SWS_CM_00109]), and skeleton methods ([SWS_CM_00093]).

This usage note was created automatically based on the AUTOSAR specification.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Parameter (in)

ParameterBeschreibung
handlerHandler of type ara::com::e2e:: TransportFaultConditionHandler to be set

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00099
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00099@rel:R25-11#019ce799
Content hash
019ce799
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00099
Status: valid/unmigrated Version: rel:R25-11#e31b701b 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_00099@rel:R25-11#e31b701b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#019ce7992026-09-30
  • R24-11rel:R24-11#585ff7702026-10-14
  • R25-11rel:R25-11#e31b701b2026-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 SetTransportFaultConditionHandler [SWS_CM_00100] Upstream: RS_CM_00224, RS_E2E_08534

template <typename ExecutorT> void SetTransportFaultConditionHandler (ara::com::e2e::TransportFault ConditionHandler handler, ExecutorT &&executor) noexcept;

Execution Context overload for hierarchicalnamespacelistlowerproxy::proxy:: events::eventname::SetTransportFaultConditionHandler for a given Proxy Event.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 45577c09ced5 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template function SetTransportFaultConditionHandler registers an application-specific handler of type ara::com::e2e::TransportFaultConditionHandler along with a user-defined executor ([SWS_CM_00100]) on a proxy event. It represents the execution-context overload of the parameter-less base function ([SWS_CM_00099]).

Usage and parameters: The method is called on instances of <SI-Namespace>::proxy::events::<Event> and returns no value (void) ([SWS_CM_00100]). It takes the handler to be called (handler) and accepts an executor object (executor as universal reference ExecutorT&&), in whose context any asynchronous execution of the handler is initiated ([SWS_CM_00100]). The function signature is declared with noexcept ([SWS_CM_00100]).

Error handling: The operation is specified as exception safe ([SWS_CM_00100]). If an invalid or non-existent callable (null) is passed, a violation in the form of InvalidHandlerViolation is present ([SWS_CM_00100]). Via the registered handler, detected transport errors are reported, such as TransportFaultCondition::kSampleRejected when incoming data samples are dropped by the underlying transport entity ([SWS_CM_00211]).

Interaction: While [SWS_CM_00099] performs registration without an explicit executor, this overload enables execution in the desired thread or task context ([SWS_CM_00100]). Analogous overloads with an executor are available for skeleton methods ([SWS_CM_00094]) and skeleton fields ([SWS_CM_00097]), as well as on the proxy side for triggers ([SWS_CM_00107]) and field notifiers ([SWS_CM_00110]).

This usage note was generated automatically based on the specification.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidHandlerVio- Provided Callable handler does not exist or is null lation

Parameter (in)

ParameterBeschreibung
handlerHandler of type ara::com::e2e:: TransportFaultConditionHandler to be set
executorExecutor object in which any asynchronous computation spawn shall be invoked

Rückgabewert

TypBeschreibung
None
Siehe auch: [SWS_CM_00099]

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

Record
AUTOSAR/AP/record/SWS_CM_00100
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00100@rel:R25-11#bf7821ea
Content hash
bf7821ea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00100
Status: valid/unmigrated Version: rel:R25-11#8df441ab 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_00100@rel:R25-11#8df441ab
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bf7821ea2026-09-30
  • R24-11rel:R24-11#bf203b682026-10-14
  • R25-11rel:R25-11#8df441ab2026-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 Subscribe [SWS_CM_00141] Upstream: RS_CM_00103

ara::core::Result< void > Subscribe (std::size_t maxSampleCount) noexcept;

Method to subscribe to a service event. If the Event is already in state kSubscribed or in state kSubscriptionPending at the time of the call, and the provided maxSampleCount value is the same as for the current subscription, the method shall return without action.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7e840633f446 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The method Subscribe registers the proxy element for receiving service events according to [SWS_CM_00141]. The call is asynchronous in nature: The return of the function merely confirms that Communication Management has accepted the registration request (AUTOSAR_AP_EXP_ARAComAPI §5.3.5.2 “Monitoring Event Subscription”). With the mandatory parameter maxSampleCount, the application bindingly communicates how many event samples it will hold at most simultaneously, thereby initializing the local receive buffer (AUTOSAR_AP_EXP_ARAComAPI p. 40).

Error Handling and Boundary Conditions

If the event is already in state kSubscribed or kSubscriptionPending upon the call and the passed value maxSampleCount matches the active subscription, the method returns successfully without action ([SWS_CM_00141]). If, on the other hand, the cache size differs upon renewed subscription, the call fails and returns the error code ComErrc::kMaxSampleCountNotRealizable in ara::core::Result ([SWS_CM_00141]). In case of missing access permissions, the call is rejected (InsufficientPermissionsViolation according to [SWS_CM_00141]). The signature is declared as noexcept and is considered exception-safe.

Interaction

The reserved cache capacity limits subsequent data reception via GetNewSamples ([SWS_CM_00701]); if the application holds more smart pointers than specified, the error ComErrc::kMaxSamplesExceeded is triggered ([SWS_CM_10432]). While field events are subscribed to identically via maxSampleCount ([SWS_CM_11601]), pure trigger events do not require a buffer size specification ([SWS_CM_00723]).

This text was generated automatically using specifications and design guidelines.

Implementer's Guide to follow (complexity I3)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)InsufficientPer- Refused by Grant Enforcement missionsViolation

Parameter (in)

ParameterBeschreibung
maxSampleCountThe cacheSize of the subscription.

Rückgabewert

TypBeschreibung
ara::core::Result< void >• If successful: an ara::core::Result containing a ara:: core::Result::value_type containing a void • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kMaxSampleCountNotRealizablerollback_semantics Provided maxSampleCount for event re-subscription does not match the maxSampleCount for the current subscription

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

Record
AUTOSAR/AP/record/SWS_CM_00141
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00141@rel:R25-11#639e0162
Content hash
639e0162
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00141
Status: valid/unmigrated Version: rel:R25-11#fab10569 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_00141@rel:R25-11#fab10569
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#639e01622026-09-30
  • R19-11rel:R19-11#19cbb2e62026-10-14
  • R20-11rel:R20-11#42b50f0e2026-10-14
  • R21-11rel:R21-11#7783d2a22026-10-14
  • R22-11rel:R22-11#8604fb982026-10-14
  • R23-11rel:R23-11#c0e97b762026-10-14
  • R24-11rel:R24-11#9932adce2026-10-14
  • R25-11rel:R25-11#fab105692026-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 UnsetReceiveHandler [SWS_CM_00183] Upstream: RS_CM_00203

void UnsetReceiveHandler () noexcept;

Disable service event trigger

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 51bbc4b93d81 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function UnsetReceiveHandler is part of the event wrapper in scope <SI-Namespace>::proxy::events::<Event> and is included via header file #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h" ([SWS_CM_00183]). It accepts no input parameters and has no return value (void). The call removes an application-specific receive handler for a service event that was previously registered with SetReceiveHandler (EXP ARAComAPI §5.3.2 “RadarService Proxy Class Example”). This allows the receiving application to switch at any time between event-driven reception (\"event-driven\") and active querying (\"polling style\") using GetNewSamples() (EXP ARAComAPI §5.3.2 “RadarService Proxy Class Example”).

Error handling

The method is declared with noexcept and possesses the property exception safe ([SWS_CM_00183]). It does not throw exceptions at runtime and does not report specific error codes.

Concurrency and Binding

While the registered callback handler does not need to be reentrant because Communication Management serializes calls (EXP ARAComAPI §5.3.2 “RadarService Proxy Class Example”), UnsetReceiveHandler deactivates the event trigger for receiving further notifications ([SWS_CM_00183]). In the context of the DDS binding, the method UnsetReceiveHandler() is mapped to the corresponding DataReader according to [SWS_CM_11141] in line with the specification [SWS_CM_11026].

Interaction

The function forms the direct counterpart to the registration via SetReceiveHandler ([SWS_CM_11140], EXP ARAComAPI §5.3.1 “Proxy Class API’s”). Related functions can be found in other proxy interfaces:

  • For fields, an identically named function UnsetReceiveHandler exists in scope <SI-Namespace>::proxy::fields::<Field>, which is likewise defined as noexcept and exception safe ([SWS_CM_11606]).
  • For triggers, UnsetReceiveHandler is available in scope <SI-Namespace>::proxy::triggers::<Trigger>, but is declared differently as not exception safe ([SWS_CM_11614]).

This usage note was generated automatically based on the AUTOSAR specifications for Release R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00183
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00183@rel:R25-11#25a6b80b
Content hash
25a6b80b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00183
Status: valid/unmigrated Version: rel:R25-11#e2575812 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_00183@rel:R25-11#e2575812
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#25a6b80b2026-09-30
  • R19-11rel:R19-11#fd0581df2026-10-14
  • R20-11rel:R20-11#3f0ce8552026-10-14
  • R21-11rel:R21-11#28b9e8462026-10-14
  • R22-11rel:R22-11#28b9e8462026-10-14
  • R23-11rel:R23-11#668a18f72026-10-14
  • R24-11rel:R24-11#2c9f36f32026-10-14
  • R25-11rel:R25-11#e25758122026-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 UnsetSubscriptionStateChangeHandler [SWS_CM_00334] Upstream: RS_CM_00106, RS_AP_00114, RS_AP_00120

void UnsetSubscriptionStateChangeHandler () noexcept;

Unset ara::com::SubscriptionState change handler

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 72320dd7a142 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function UnsetSubscriptionStateChangeHandler serves to reset and unregister a previously set callback handler for changes of the subscription status (ara::com::SubscriptionState) on the proxy side ([SWS_CM_00334], EXP ARAComAPI §1.0). The function is part of the event interface and is located in the application-specific namespace under proxy::events ([SWS_CM_00334], SWS CommunicationManagement §8.3.2.2.4.5 “UnsetSubscriptionStateChangeHandler”). To use it, the generated proxy header file <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h is included ([SWS_CM_00334]). The call is synchronous, takes no parameters, and returns no value ([SWS_CM_00334]).

Error handling

According to the specification, the function is declared with the identifier noexcept and classified as exception-safe ("exception safe") ([SWS_CM_00334]). In case of error, it throws no C++ exceptions and reports no error codes back ([SWS_CM_00334]).

Concurrency and Interaction

The function is part of a suite of proxy APIs for service discovery and event management such as Subscribe(), Unsubscribe(), GetSubscriptionState(), and SetSubscriptionStateChangeHandler() (EXP ARAComAPI §5.3.1 “Proxy Class API’s”). As an interpretation, no further notifications via the unregistered handler should be triggered after the call. Question Q-6173c01e6ca93876 (open) Symmetrical counterparts for resetting handlers for status changes are defined in the specification for proxy fields ([SWS_CM_11609], SWS CommunicationManagement §8.3.3.2.4.5 “UnsetSubscriptionStateChangeHandler”) and triggers ([SWS_CM_01108]), as well as on the service provider side (skeleton) for events ([SWS_CM_12010]) and triggers ([SWS_CM_01112]).

This usage note was created automatically and is based on the AUTOSAR Adaptive specification of release R25-11.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00334
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00334@rel:R25-11#b959e818
Content hash
b959e818
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00334
Status: valid/unmigrated Version: rel:R25-11#d651d646 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_00334@rel:R25-11#d651d646
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b959e8182026-09-30
  • R19-11rel:R19-11#39ef71622026-10-14
  • R20-11rel:R20-11#39ef71622026-10-14
  • R21-11rel:R21-11#39ef71622026-10-14
  • R22-11rel:R22-11#b7b5edfa2026-10-14
  • R23-11rel:R23-11#45ddf5232026-10-14
  • R24-11rel:R24-11#a6b5c2732026-10-14
  • R25-11rel:R25-11#d651d6462026-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 UnsetTransportFaultConditionHandler [SWS_CM_00105] Upstream: RS_CM_00224, RS_E2E_08534

void UnsetTransportFaultConditionHandler () noexcept;

Provides the possibility to unregister a previously set ara::com::e2e:: TransportFaultConditionHandler for a given Proxy Event.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 91b2726516e3 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function UnsetTransportFaultConditionHandler in namespace <SI-Namespace>::proxy::events::<Event> serves to deregister a previously registered ara::com::e2e::TransportFaultConditionHandler for a specific proxy event [SWS_CM_00105]. The function declaration is provided via the header file <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h AUTOSAR_AP_SWS_CommunicationManagement §8.3.2.2.1.3 “UnsetTransportFaultConditionHandler”. The call takes no parameters and returns no value (void).

Error Handling and Exception Safety

The function is declared with identifier noexcept and specified as exception-safe (exception safe) [SWS_CM_00105]. Neither specific error codes nor notifications to error or diagnostic subsystems are defined in the standard.

Sequence and boundary conditions

The call is expected to be executed synchronously to immediately disable E2E error handling at the event level, for example when the event is no longer to be monitored or before the associated proxy object is released (interpretation). Question Q-ff00695fff5407fe (open) After execution, the communication layer no longer processes E2E transport errors via the previously registered callback of this event.

Interaction

Deregistering handlers for transport errors follows a uniform pattern across various communication elements:

  • For notifiers of fields at the proxy level, the function [SWS_CM_00126] is used.
  • For proxy triggers, the handler is deregistered via [SWS_CM_00108].
  • On the skeleton side, analogous interfaces are available for all methods of a service interface ([SWS_CM_00095]) as well as for getters/setters of fields ([SWS_CM_00098]).

This usage note was generated by an AI based on the AUTOSAR specification.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00105@rel:R25-11#cbff526c
Content hash
cbff526c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00105
Status: valid/unmigrated Version: rel:R25-11#5d00ece2 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_00105@rel:R25-11#5d00ece2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cbff526c2026-09-30
  • R24-11rel:R24-11#0a8243012026-10-14
  • R25-11rel:R25-11#5d00ece22026-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 Unsubscribe [SWS_CM_00151] Upstream: RS_CM_00104

void Unsubscribe () noexcept;

Method to unsubscribe from a service event. If the Event is not subscribed to at the time of the call, the method shall return without action.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: fb295b3ef414 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The method Unsubscribe() terminates the active subscription of a service event on the proxy side ([SWS_CM_00151], EXP_ARAComAPI §5.5). It is defined in scope <SI-Namespace>::proxy::events::<Event> and included via header file #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h" ([SWS_CM_00151]). The function takes no input parameters and returns no return value (void). If the event was not subscribed at the time of the call, the method returns without taking any action ([SWS_CM_00151]).

Error Handling and Exception Safety

The operation is declared with the identifier noexcept and specified as exception-safe ([SWS_CM_00151]). A DanglingSamplesViolation is provided as a violation if the precondition according to [SWS_CM_00085] was violated prior to the method call ([SWS_CM_00151]).

Interaction and related interfaces

At the network layer, terminating the subscription initiates the sending of SOME/IP messages of type StopSubscribeEventgroup ([SWS_CM_10378], SWS_CommunicationManagement §7.2.1.2.6). Within the proxy interfaces, Unsubscribe() belongs to the group of subscription management methods (EXP_ARAComAPI §5.3.1). An identical unsubscribe semantics is also available for service triggers ([SWS_CM_00810], EXP_ARAComAPI §4) and field notifications ([SWS_CM_11602]).

This usage note was generated automatically. All technical specifications are based on the referenced AUTOSAR specifications.

Implementer's Guide to follow (complexity I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
Exception-Sicherheitexception safe
Verletzungen (Violations)DanglingSamplesVi- Precondition [SWS_CM_00085] has been violated. olation

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00151@rel:R25-11#e7217716
Content hash
e7217716
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00151
Status: valid/unmigrated Version: rel:R25-11#4a3ec37b 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_00151@rel:R25-11#4a3ec37b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e72177162026-09-30
  • R19-11rel:R19-11#aeb6a3702026-10-14
  • R20-11rel:R20-11#4ea795962026-10-14
  • R21-11rel:R21-11#4ea795962026-10-14
  • R22-11rel:R22-11#4ea795962026-10-14
  • R23-11rel:R23-11#8175f92c2026-10-14
  • R24-11rel:R24-11#3ccefaa42026-10-14
  • R25-11rel:R25-11#4a3ec37b2026-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 documentation

type alias SampleType [SWS_CM_11401] Upstream: RS_CM_00103

using SampleType = <PSampleCppidt>;
Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::events::<Event>
SymbolSampleType

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

Record
AUTOSAR/AP/record/SWS_CM_11401
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11401@rel:R25-11#9606a74c
Content hash
9606a74c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11401
Status: valid/unmigrated Version: rel:R25-11#5ce42900 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_11401@rel:R25-11#5ce42900
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#9606a74c2026-09-30
  • R22-11rel:R22-11#076d95632026-10-14
  • R23-11rel:R23-11#076d95632026-10-14
  • R24-11rel:R24-11#99e1a61e2026-10-14
  • R25-11rel:R25-11#5ce429002026-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