DEENESPTFRRUARHIKOZHNL

classe <SI-Namespace>::proxy::<SI>Proxy

[SWS_CM_00004] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00122

class <SI>Proxy final {...};

Service Interface Proxy

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Forwarding-Header#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy/<SiShortname>_proxy_fwd.h"
Scopenamespace <SI-Namespace>::proxy

Guide utilisateurGÉNÉRÉ PAR IA

Sert de mandataire typé aux applications clientes pour la recherche de services et l’interaction avec une instance de service.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : cc07b1e12dfe Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Sert de mandataire typé aux applications clientes pour la recherche de services et l’interaction avec une instance de service.

La classe <SI>Proxy sert de mandataire typé aux applications clientes pour une Service Interface afin de transmettre des appels de méthode, des événements et des champs [SWS_CM_99447]. Après une recherche de service réussie, l’instance est créée de préférence via la méthode de fabrique sans exception Create() [SWS_CM_10438]. La classe possède une sémantique de déplacement exclusif (move-only) et exige la libération intégrale de tous les échantillons de données référencés avant sa destruction afin d’éviter les violations de préconditions [SWS_CM_99444].

Contexte

La classe générée <SI>Proxy agit au sein de l’architecture de communication de l’AUTOSAR Adaptive Platform en tant que point de terminaison client typé pour une Service Interface définie. Elle encapsule l’interaction d’une application cliente avec une instance distante ou locale de ce service. Parmi les partenaires d’interaction figurent le composant logiciel applicatif, l’instance de mandataire elle-même ainsi que le gestionnaire de communication sous-jacent (ara::com), qui contrôle la liaison réseau et la transmission des messages. Par le biais des éléments de données dédiés events::<Event> [SWS_CM_99445], fields::<Field> [SWS_CM_99446] et methods::<Method> [SWS_CM_99447], le mandataire fournit un accès direct aux événements, champs et méthodes de l’interface de service.

client Application cliente proxy <SI>Proxy (events, methods, fields) client->proxy Methodenaufrufe, Ereignisabonnement proxy->client Ergebnisse, Callbacks runtime Communication Management (ara::com / Binding) proxy->runtime Dienstsuche, Nachrichtenversand runtime->proxy Zustands- & Ereignisdaten

Diagramme de contexte : intégration du mandataire de Service Interface entre l’application cliente et la gestion de communication. Sources : [SWS_CM_99445], [SWS_CM_99446], [SWS_CM_99447].

Cycle de vie

La création d’une instance de mandataire présuppose une recherche de service préalable effectuée avec succès et fournissant une instance de handle valide (HandleType). La création privilégiée s’effectue sans exception via la méthode de fabrique statique Create() selon l’idiome du constructeur nommé [SWS_CM_10438], qui renvoie un ara::core::Result contenant le mandataire ou un code d’erreur. Il existe par ailleurs un constructeur explicite <SI>Proxy(handle), qui est spécifié comme n’étant pas sûr vis-à-vis des exceptions et peut lever une ara::com::ComException en cas d’erreur [SWS_CM_00131]. Le handle utilisé pour l’initialisation peut être interrogé à tout moment via GetHandle() [SWS_CM_10383].

En matière de propriété, le mandataire possède une sémantique de déplacement exclusif (move-only) : le constructeur de copie [SWS_CM_00136] et l’opérateur d’assignation par copie [SWS_CM_11551] sont explicitement supprimés. Un transfert de l’instance n’est autorisé que par le constructeur de déplacement [SWS_CM_00137] ou l’opérateur d’assignation par déplacement sûr vis-à-vis des exceptions [SWS_CM_11552]. Durant la durée de vie, l’état de disponibilité du service peut être déterminé activement à l’aide de GetServiceState() [SWS_CM_01073]. Alternativement, SetServiceStateChangeHandler() permet l’enregistrement d’une fonction de rappel lors de changements d’état [SWS_CM_01074], qui peut être liée facultativement à un contexte défini par l’utilisateur via un ExecutorT [SWS_CM_01076]. L’enregistrement du gestionnaire peut être annulé via UnsetServiceStateChangeHandler() [SWS_CM_01075].

La destruction s’effectue via le destructeur ~<SI>Proxy() [SWS_CM_99444]. Celui-ci est déclaré comme non sûr vis-à-vis des exceptions et requiert, comme précondition obligatoire, qu’aucun échantillon de données ouvert ne soit encore détenu par le client avant la destruction, afin d’éviter toute violation [SWS_CM_99444].

Parcours d'utilisation

Le chemin d’utilisation typique se divise en quatre phases :

  1. Recherche de service : le client recherche des instances du service soit de manière synchrone via FindService() avec un InstanceIdentifier [SWS_CM_00122] ou un InstanceSpecifier [SWS_CM_00622] EXP ARAComAPI §2 « Service Interface Proxy » basé sur un modèle, soit de manière asynchrone via StartFindService() [SWS_CM_00123] [SWS_CM_00623]. Pour les recherches asynchrones, un ExecutorT peut être transmis en complément [SWS_CM_11352] [SWS_CM_11365] EXP ARAComAPI §2 « Service Interface Proxy ». Les recherches asynchrones doivent être arrêtées via StopFindService() une fois l’instance souhaitée trouvée [SWS_CM_00125] EXP ARAComAPI §2 « Service Interface Proxy ».
  2. Instanciation : un handle est sélectionné à partir du ServiceHandleContainer obtenu et transmis à Create() pour créer l’instance de mandataire [SWS_CM_10438]. Interprétation : la méthode de fabrique Create() devrait constituer la voie d’instanciation principale par rapport au constructeur levant des exceptions. Question Q-cf53ee7076736baf (ouverte)
  3. Interaction : l’application interagit avec le service par des appels de méthodes (methods::<Method>) [SWS_CM_99447], la surveillance d’événements (events::<Event>) [SWS_CM_99445] ou des accès aux champs (fields::<Field>) [SWS_CM_99446].
  4. Nettoyage : une fois les interactions terminées, l’instance de mandataire est détruite, en s’assurant qu’aucune référence d’échantillon non valide ne subsiste [SWS_CM_99444].
Déroulement de la recherche de service et interaction avec le proxyClient<SI>ProxyCommunicationManagementUse Case: 1. DienstsucheFindService(instance)Dienstinstanzen ermittelnServiceHandleContainerResult<ServiceHandleContainer>Use Case: 2. InstanziierungCreate(handle)Result<<SI>Proxy>Use Case: 3. Dienstnutzungmethods::<Method>()Transmettre l'appel de méthodeAntwortdatenValeur de retourUse Case: 4. Destruction~<SI>Proxy()

Diagramme de séquence : déroulement typique de la recherche de service, de l’instanciation du mandataire et de l’interaction de méthode. Sources : [SWS_CM_00122], [SWS_CM_10438], [SWS_CM_99447], [SWS_CM_99444].

Scénarios d'erreur

Les erreurs sont principalement signalées via le type d’erreur ara::com::ComErrc dans ara::core::Result :

  • ComErrc::kServiceNotAvailable : survient lors de Create() lorsqu’un service précédemment proposé n’est plus disponible [SWS_CM_10438]. En cas d’appel direct du constructeur, cela se traduit plutôt par une ara::com::ComException [SWS_CM_00131].
  • ComErrc::kCommunicationFailure : est signalé par FindService() [SWS_CM_00122] [SWS_CM_00622], StartFindService() [SWS_CM_00123] [SWS_CM_00623], Create() [SWS_CM_10438] et GetServiceState() [SWS_CM_01073] lorsque la liaison réseau constate une erreur de communication récupérable ou une erreur lors de la communication sécurisée.

De plus, les violations suivantes sont spécifiées :

  • ErroneousServiceHandleViolation : le handle transmis à Create() ou au constructeur est non valide ou corrompu [SWS_CM_10438] [SWS_CM_00131].
  • InsufficientPermissionsViolation : refus de l’accès lors de la recherche de service ou de l’instanciation par l’application des autorisations (Grant Enforcement) [SWS_CM_00122] [SWS_CM_10438].
  • InvalidHandlerViolation : transmission d’un rappel non valide ou vide à StartFindService() [SWS_CM_00123] ou SetServiceStateChangeHandler() [SWS_CM_01074].
  • InstanceSpecifierMappingIntegrityViolation, PortInterfaceMappingViolation, ProcessMappingViolation, InstanceSpecifierAlreadyInUseViolation : surviennent lors des appels de recherche basés sur un modèle si l’assignation du InstanceSpecifier est erronée ou déjà en cours d’utilisation [SWS_CM_00622] [SWS_CM_00623].
  • DanglingSamplesViolation : destruction du mandataire alors que des références à des échantillons de données subsistent [SWS_CM_99444].

Ce guide se base sur les spécifications AUTOSAR pour l’Adaptive Platform version R25-11 et résume les mécanismes de communication du mandataire de Service Interface.

Carte des membres

Diagramme de classes

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

G n_SI_Namespace___proxy___SI_Proxy329 <SI>Proxy + <Event> + <Field> + <Method> + operator=() + Proxy() + Create() + FindService() + GetHandle() + GetServiceState() + SetServiceStateChangeHandler() + Service() + StartFindService() + StopFindService() + UnsetServiceStateChangeHandler()

Vue détaillée

Sélectionnez une entrée dans le plan.

Méthodes

Create fonction

Exception-less construction of a Proxy from a HandleType using the Named Constructor idiom.

static ara::core::Result< <SI>Proxy > Create (const <SI-Namespace>::proxy:: <SI>Proxy::HandleType &handle) noexcept;
FindService fonction 2

Find a service using an ara::com::InstanceIdentifier, with immediately returned request

Surcharges FindService 2
GetHandle fonction

Return the handle used to create the proxy instance

HandleType GetHandle () const noexcept;

Returns the state of the service

ara::core::Result< ara::com::ServiceState > GetServiceState () noexcept;
Proxy fonction 4

Construction of the service proxy from the found handles (from any of the FindService()/ StartFindService() methods)

Surcharges Proxy 4
explicit <SI>Proxy (const HandleType &handle); SWS_CM_00131
<SI>Proxy (const <SI-Namespace>::proxy:: <SI>Proxy &other)=delete; SWS_CM_00136
<SI>Proxy ( <SI-Namespace>::proxy:: <SI>Proxy &&other); SWS_CM_00137
Service fonction 2

Find a service using an ara::com::InstanceIdentifier, with handler registration

Surcharges Service 2
static ara::core::Result< ara::com::FindServiceHandle > StartFind Service (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::com::InstanceIdentifier instance) noexcept; SWS_CM_00123
static ara::core::Result< ara::com::FindServiceHandle > StartFind Service (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::core::InstanceSpecifier instance) noexcept; SWS_CM_00623

Register a service state change handler. This handler shall be called by the Communication Management implementation as soon as the service availability state has changed. The Handler may be overwritten during runtime.

Surcharges SetServiceStateChangeHandler 2
void SetServiceStateChangeHandler (ara::com::ServiceStateHandler handler) noexcept; SWS_CM_01074
template <typename ExecutorT> void SetServiceStateChangeHandler (ara::com::ServiceStateHandler handler, ExecutorT &&executor) noexcept; SWS_CM_01076
StartFindService fonction 2

Find a service using an ara::com::InstanceIdentifier, with handler registration, - in a provided execution context

Surcharges StartFindService 2
template <typename ExecutorT> static ara::com::FindServiceHandle StartFindService (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::com::InstanceIdentifier instance, ExecutorT &&executor) noexcept; SWS_CM_11352
template <typename ExecutorT> static ara::com::FindServiceHandle StartFindService (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::core::InstanceSpecifier instance, ExecutorT &&executor) noexcept; SWS_CM_11365

Stop an ongoing StartFindService() - Stops receiving further notifications for the provided ara::com::FindServiceHandle

void StopFindService (ara::com::FindServiceHandle handle) noexcept;

As per [SWS_CM_01074]

void UnsetServiceStateChangeHandler () noexcept;

Opérateurs

operator= fonction 2

Copy assignment constructor deletion

Surcharges = 2
<SI>Proxy & operator= (const <SI-Namespace>::proxy:: <SI>Proxy &other)=delete; SWS_CM_11551
<SI-Namespace>::proxy:: <SI>Proxy & operator= ( <SI-Namespace>::proxy:: <SI>Proxy &&other) noexcept; SWS_CM_11552

Constantes

<Event> variable

Event member, one for each VariableDataPrototype defined in the ServiceInterface in the role event.

events::<Event> <Event>;
<Field> variable

Field member, one for each Field defined in the ServiceInterface in the role field.

fields::<Field> <Field>;
<Method> variable

Method member, one for each ClientServerOperation defined in the ServiceInterface in the role method.

methods::<Method> <Method>;

Types imbriqués

HandleType classe

Documentation des méthodes

fonction Create [SWS_CM_10438] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00139

static ara::core::Result< <SI>Proxy > Create (const <SI-Namespace>::proxy:: <SI>Proxy::HandleType &handle) noexcept;

Exception-less construction of a Proxy from a HandleType using the Named Constructor idiom.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 7ecc1087a58a Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation et sémantique

La méthode de fabrique statique Create sert, conformément à [SWS_CM_10438], à la création sans exception d'une instance de proxy (<SI>Proxy) selon l'idiome du constructeur nommé. Elle requiert comme paramètre handle un handle de service préalablement déterminé conformément à [SWS_CM_00131]. L'appel s'effectue de manière synchrone et est déclaré comme noexcept. Le résultat est retourné dans un ara::core::Result, qui contient l'instance de proxy prête à l'emploi en cas de succès.

Gestion des erreurs

Si une erreur survient pendant l'instanciation, Create renvoie via le ara::core::Result un code d'erreur de type ara::com::ComErrc [SWS_CM_10438] :

  • ComErrc::kServiceNotAvailable : Le service n'est plus disponible après une offre préalable via OfferService().
  • ComErrc::kCommunicationFailure : Le binding réseau signale une erreur de communication récupérable ou l'échec d'une connexion sécurisée.

Les deux erreurs présentent une sémantique de rollback [SWS_CM_10438]. En cas d'erreurs structurelles ou liées à la sécurité, des violations spécifiées s'appliquent : si le handle transmis est nul ou corrompu, il s'agit d'une ErroneousServiceHandleViolation. Si le processus appelant ne dispose pas des autorisations nécessaires pour l'instance dans le cadre du grant enforcement, la requête est rejetée et traitée comme une InsufficientPermissionsViolation (SWS CommunicationManagement §8 « Security », [SWS_CM_10438]).

Concurrence et contraintes

Interprétation : Étant donné que Create fonctionne de manière synchrone et lie des ressources de communication, l'appel devrait être réentrant pour différents handles, mais ne devrait pas être exécuté dans des boucles hard real-time à temps critique en raison d'initialisations réseau possibles. Question Q-f7ba23670f562788 (ouverte)

Ce texte a été généré par un système d'IA sur la base de la spécification AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitexception safe
Verletzungen (Violations)ErroneousService- Provided HandleType is null or corrupt HandleViolation InsufficientPer- Refused by Grant Enforcement missionsViolation

Parameter (in)

ParameterBeschreibung
handleAs per [SWS_CM_00131]

Rückgabewert

TypBeschreibung
ara::core::Result< {<service-interface-name> }Proxy >• If successful: an ara::core::Result containing a ara:: core::Result::value_type containing a Proxy • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kServiceNotAvailablerollback_semantics Service is not available after being previously offered via Offer Service()
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_10438
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_10438@rel:R25-11#9fb67ef3
Content hash
9fb67ef3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_10438
Status: valid/unmigrated Version: rel:R25-11#cfeddea9 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_10438@rel:R25-11#cfeddea9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b417ae7a2026-09-30
  • R19-11rel:R19-11#7e4e18b92026-10-14
  • R20-11rel:R20-11#f1232f7e2026-10-14
  • R21-11rel:R21-11#f1232f7e2026-10-14
  • R22-11rel:R22-11#38bf837e2026-10-14
  • R23-11rel:R23-11#38bf837e2026-10-14
  • R24-11rel:R24-11#08265d1c2026-10-14
  • R25-11rel:R25-11#cfeddea92026-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

fonction FindService [SWS_CM_00122] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00120, RS_AP_00121

static ara::core::Result< ara::com::ServiceHandleContainer< HandleType > > FindService (ara::com::InstanceIdentifier instance) noexcept;

Find a service using an ara::com::InstanceIdentifier, with immediately returned request

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 1c6c926e4b24 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode statique FindService de la classe Proxy sert à la recherche synchrone d’instances de service disponibles à l’aide d’un ara::com::InstanceIdentifier ([SWS_CM_00122]). L’appel renvoie directement le résultat sous la forme d’un ara::core::Result, lequel contient un ara::com::ServiceHandleContainer en cas d’exécution réussie ([SWS_CM_00122]). Ce conteneur — généralement implémenté sous forme d’un ara::core::Vector ([SWS_CM_00304]) — peut être vide, comporter un unique descripteur d’instance ou plusieurs descripteurs selon l’état de mise à disposition effectif (ARAComAPI §6.5 « Service Discovery »).

En cas d’erreur, le ara::core::Result renvoie un code d’erreur issu de ara::com::ComErrc, à savoir ComErrc::kCommunicationFailure, lorsque le binding réseau signale une erreur de transmission récupérable ou un problème lors de la communication sécurisée ([SWS_CM_00122]). De plus, l’accès est soumis au contrôle des droits ; des autorisations insuffisantes mènent à une InsufficientPermissionsViolation ([SWS_CM_00122]).

Concernant le déroulement et la concurrence, les conditions suivantes s’appliquent :

  • Contexte d’appel et synchronicité : la recherche étant exécutée immédiatement, seules sont trouvées les instances pour lesquelles OfferService() a été préalablement appelé côté serveur (ARAComAPI §6.5 « Service Discovery »).
  • Sécurité vis-à-vis des exceptions et réentrance : la fonction est spécifiée comme noexcept et sûre vis-à-vis des exceptions (exception-safe) ([SWS_CM_00122]). Comme la méthode est statique et n’exige aucun état d’objet modifiable, elle devrait pouvoir être appelée de manière réentrante et sûre pour les threads. Question Q-3228cc998c4a737e (ouverte)
  • Traitement ultérieur : les descripteurs trouvés servent à l’instanciation d’objets Proxy via le constructeur Proxy(const HandleType &handle) ([SWS_CM_00131]). Pour une recherche basée sur des modèles, la surcharge avec ara::core::InstanceSpecifier est alternativement disponible ([SWS_CM_00622]).

Cette note d’utilisation a été générée par une IA sur la base de la spécification AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité I2)

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

Parameter (in)

ParameterBeschreibung
instanceara::com::InstanceIdentifier qualifying the wanted instance of the service

Rückgabewert

TypBeschreibung
ara::core::Result<ara::com::ServiceHandleContainer< {<hierarchical-namespace-list-lower-proxy> }::proxy::{<service-interface-name> }Proxy::HandleType > >• If successful: an ara::core::Result containing a ara:: core::Result::value_type containing a ara::com:: ServiceHandleContainer further containing HandleTypes for all matching services • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_00122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00122@rel:R25-11#37227dfe
Content hash
37227dfe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00122
Status: valid/unmigrated Version: rel:R25-11#6f2101ad 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_00122@rel:R25-11#6f2101ad
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bcc92a852026-09-30
  • R19-11rel:R19-11#088b9ecc2026-10-14
  • R20-11rel:R20-11#d4d640972026-10-14
  • R21-11rel:R21-11#746c23552026-10-14
  • R22-11rel:R22-11#2b7e51e42026-10-14
  • R23-11rel:R23-11#2b7e51e42026-10-14
  • R24-11rel:R24-11#12aa77e32026-10-14
  • R25-11rel:R25-11#6f2101ad2026-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

fonction FindService [SWS_CM_00622] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00121, RS_AP_00127, RS_AP_00137

static ara::core::Result< ara::com::ServiceHandleContainer< HandleType > > FindService (ara::core::InstanceSpecifier instance) noexcept;

Find a service using an ara::core::InstanceSpecifier, with immediately returned request

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 4b1386a8f38a Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction statique FindService de la classe de proxy sert, conformément à [SWS_CM_00622], à la recherche synchrone d'instances de service disponibles à l'aide d'un ara::core::InstanceSpecifier avec retour immédiat (« immediately returned request »). Le prérequis pour la recherche est que l'instance de squelette de service respective ait été préalablement mise à disposition au moyen de OfferService() (ARAComAPI p. 103 « Figure 6.5: Service Discovery »).

Valeurs de retour et interaction

Comme résultat, l'appel fournit un ara::core::Result avec un ara::com::ServiceHandleContainer selon [SWS_CM_00622], qui repose par défaut sur ara::core::Vector [SWS_CM_00304]. Ce conteneur peut être vide, contenir un handle unique ou plusieurs instances trouvées (ARAComAPI p. 103 « Figure 6.5: Service Discovery »). Les handles de service obtenus sont ensuite transmis au constructeur pour l'instanciation de l'objet proxy [SWS_CM_00131]. Pour une recherche asynchrone pilotée par événements avec notification, StartFindService est disponible en alternative [SWS_CM_00623], tandis que pour les identifiants d'instance, la surcharge de [SWS_CM_00122] est utilisée.

Gestion des erreurs et conditions limites

La fonction est déclarée comme noexcept et considérée comme sûre vis-à-vis des exceptions (« exception safe ») selon [SWS_CM_00622]. En cas d'erreur, l'objet Result contient le code d'erreur ComErrc::kCommunicationFailure, par exemple lors de perturbations de communication du binding réseau [SWS_CM_00622]. De plus, [SWS_CM_00622] définit des violations de modèle et de droits d'accès telles que InstanceSpecifierMappingIntegrityViolation, PortInterfaceMappingViolation, ProcessMappingViolation, InstanceSpecifierAlreadyInUseViolation ainsi que InsufficientPermissionsViolation.

Interprétation : en raison du retour synchrone et immédiat, la méthode devrait convenir en premier lieu pour les phases initiales d'initialisation ou un polling ciblé, pour autant qu'aucune observation continue par callback ne soit requise. Question Q-ea5b242a6fe41d20 (ouverte)

Cette note d'utilisation a été générée par une IA sur la base des données de spécification issues d'AUTOSAR Adaptive R25-11.

Guide de l'implémenteur à venir (complexité I3)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitexception safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of the executable, or it refers to a model element other than tegrityViolation a PortPrototype. PortInterfaceMap- The type of mapping does not match the expected type of Port pingViolation Interface: ServiceInterface referenced by a ServiceInstanceToPortPrototypeMapping. ProcessMappingVio- The type of mapping does not match the expected type of Port lation Interface InstanceSpecifier- The constructor was called with an Instance Specifier already AlreadyInUseViola- tion InsufficientPer- Refused by Grant Enforcement missionsViolation

Parameter (in)

ParameterBeschreibung
instanceara::core::InstanceSpecifier qualifying the wanted instance of the service

Rückgabewert

TypBeschreibung
ara::core::Result<ara::com::ServiceHandleContainer< {<hierarchical-namespace-list-lower-proxy>}::proxy::{<service-interface-name> }Proxy::HandleType > >As per [SWS_CM_00122]

Fehler

FehlercodeBeschreibung
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_00622
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00622@rel:R25-11#8d926ab7
Content hash
8d926ab7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00622
Status: valid/unmigrated Version: rel:R25-11#b658bb0b 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_00622@rel:R25-11#b658bb0b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#06c9698f2026-09-30
  • R19-11rel:R19-11#9aca721e2026-10-14
  • R20-11rel:R20-11#a72540782026-10-14
  • R21-11rel:R21-11#ddb1520c2026-10-14
  • R22-11rel:R22-11#93fa43952026-10-14
  • R23-11rel:R23-11#72729ae82026-10-14
  • R24-11rel:R24-11#d99b30fa2026-10-14
  • R25-11rel:R25-11#b658bb0b2026-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

fonction GetHandle [SWS_CM_10383] Upstream: RS_CM_00107, RS_AP_00114, RS_AP_00119

HandleType GetHandle () const noexcept;

Return the handle used to create the proxy instance

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

Rückgabewert

TypBeschreibung
<SI-Namespace>::proxy::<SI>Proxy::HandleTypeAs per [SWS_CM_00312]

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

Record
AUTOSAR/AP/record/SWS_CM_10383
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_10383@rel:R25-11#5c2fcbb2
Content hash
5c2fcbb2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_10383
Status: valid/unmigrated Version: rel:R25-11#281a2b71 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_10383@rel:R25-11#281a2b71
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ec2e1e0d2026-09-30
  • R19-11rel:R19-11#b30af83b2026-10-14
  • R20-11rel:R20-11#b30af83b2026-10-14
  • R21-11rel:R21-11#b30af83b2026-10-14
  • R22-11rel:R22-11#b30af83b2026-10-14
  • R23-11rel:R23-11#b30af83b2026-10-14
  • R24-11rel:R24-11#ded2435a2026-10-14
  • R25-11rel:R25-11#281a2b712026-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

fonction GetServiceState [SWS_CM_01073]

ara::core::Result< ara::com::ServiceState > GetServiceState () noexcept;

Returns the state of the service

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

Rückgabewert

TypBeschreibung
ara::core::Result<ara::com::ServiceState >• If successful: an ara::core::Result containing a ara:: core::Result::value_type i.e. a ara::com:: ServiceState giving the service state • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_01073
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01073@rel:R25-11#18950664
Content hash
18950664
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01073
Status: valid/unmigrated Version: rel:R25-11#6c74cf42 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_01073@rel:R25-11#6c74cf42
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#3f41673b2026-09-30
  • R22-11rel:R22-11#dd9d89292026-10-14
  • R23-11rel:R23-11#ba4457f52026-10-14
  • R24-11rel:R24-11#3f9e72502026-10-14
  • R25-11rel:R25-11#6c74cf422026-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

fonction Proxy [SWS_CM_00131] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00121

explicit <SI>Proxy (const HandleType &handle);

Construction of the service proxy from the found handles (from any of the FindService()/ StartFindService() methods)

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 664b77b81789 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

Le constructeur explicite <SI>Proxy instancie la classe proxy de service spécifique au type dans l'espace de noms <SI-Namespace>::proxy [SWS_CM_00131]. Dans le cadre du patron proxy-skeleton, cet objet généré sert de façade locale du côté du consommateur de service, qui relaie les appels de méthode vers l'implémentation de service effective ARAComAPI Figure 5.1 « Proxy Skeleton Pattern ».

Pour la construction, une référence à un HandleType valide est transmise comme paramètre [SWS_CM_00131]. Cet identifiant doit avoir été obtenu au préalable via des mécanismes de Service Discovery – soit de façon synchrone via FindService() [SWS_CM_00122], soit de façon asynchrone via le callback enregistré de StartFindService() [SWS_CM_00123].

Gestion des erreurs

La construction n'est pas sûre face aux exceptions (not exception safe) [SWS_CM_00131]. Si le service référencé ne peut pas être atteint, une ara::com::ComException selon ara::com::ComErrc::kServiceNotAvailable est levée [SWS_CM_00131]. En outre, les violations suivantes sont définies :

  • ErroneousServiceHandleViolation : survient lorsque l'objet HandleType transmis est nul ou corrompu [SWS_CM_00131].
  • InsufficientPermissionsViolation : survient lorsque la création est refusée par le contrôle des droits (Grant Enforcement) [SWS_CM_00131].

Restrictions et cycle de vie

Pour la classe proxy, le constructeur de copie est explicitement supprimé (=delete) [SWS_CM_00136]. La transmission de l'instance est exclusivement autorisée via le constructeur de déplacement (Move Constructor), qui est également spécifié comme non sûr face aux exceptions [SWS_CM_00137]. À l'exécution, après une création réussie, la gestion de la communication met à jour automatiquement en arrière-plan l'adressage de la couche de transport de l'instance proxy existante en cas de défaillance temporaire et de retour de la disponibilité du service cible ARAComAPI Figure 6.1 « Auto Updating of Proxy Instance ».

Cette note d'utilisation a été générée automatiquement à partir de la spécification AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitnot exception safe
Verletzungen (Violations)ErroneousService- Provided HandleType is null or corrupt HandleViolation InsufficientPer- Refused by Grant Enforcement missionsViolation

Parameter (in)

ParameterBeschreibung
handleA found FindServiceHandle returned by any of the FindService() methods: • [SWS_CM_00122] • [SWS_CM_00622] or a FindServiceHandle found and sent to the assigned FindServiceHandler callback, by any of the StartFindService() methods: • [SWS_CM_00123] • [SWS_CM_00623] • [SWS_CM_11352] • [SWS_CM_11365]

Exceptions

ara::com:: As per ara::com::ComErrc::kServiceNotAvailable ComException

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

Record
AUTOSAR/AP/record/SWS_CM_00131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00131@rel:R25-11#ae119926
Content hash
ae119926
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00131
Status: valid/unmigrated Version: rel:R25-11#ee74be81 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_00131@rel:R25-11#ee74be81
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1a6321992026-09-30
  • R19-11rel:R19-11#592e8f7d2026-10-14
  • R20-11rel:R20-11#592e8f7d2026-10-14
  • R21-11rel:R21-11#592e8f7d2026-10-14
  • R22-11rel:R22-11#592e8f7d2026-10-14
  • R23-11rel:R23-11#592e8f7d2026-10-14
  • R24-11rel:R24-11#0ab8e3252026-10-14
  • R25-11rel:R25-11#ee74be812026-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

fonction Proxy [SWS_CM_00136] Upstream: RS_CM_00102, RS_AP_00114

<SI>Proxy (const <SI-Namespace>::proxy:: <SI>Proxy &other)=delete;

Copy Constructor deletion

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy

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

Record
AUTOSAR/AP/record/SWS_CM_00136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00136@rel:R25-11#2a154cb9
Content hash
2a154cb9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00136
Status: valid/unmigrated Version: rel:R25-11#95fda097 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_00136@rel:R25-11#95fda097
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#72db3c3c2026-09-30
  • R19-11rel:R19-11#f2cf188a2026-10-14
  • R20-11rel:R20-11#aeb5fe302026-10-14
  • R21-11rel:R21-11#f2cf188a2026-10-14
  • R22-11rel:R22-11#f2cf188a2026-10-14
  • R23-11rel:R23-11#f2cf188a2026-10-14
  • R24-11rel:R24-11#a2c02d102026-10-14
  • R25-11rel:R25-11#95fda0972026-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

fonction Proxy [SWS_CM_00137] Upstream: RS_CM_00102, RS_AP_00114

<SI>Proxy ( <SI-Namespace>::proxy:: <SI>Proxy &&other);

Move constructor

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherOther object to move

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

Record
AUTOSAR/AP/record/SWS_CM_00137
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00137@rel:R25-11#f7d13d68
Content hash
f7d13d68
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00137
Status: valid/unmigrated Version: rel:R25-11#a6236489 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_00137@rel:R25-11#a6236489
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8fb3b8362026-09-30
  • R19-11rel:R19-11#820da2b22026-10-14
  • R20-11rel:R20-11#820da2b22026-10-14
  • R21-11rel:R21-11#820da2b22026-10-14
  • R22-11rel:R22-11#820da2b22026-10-14
  • R23-11rel:R23-11#820da2b22026-10-14
  • R24-11rel:R24-11#466610572026-10-14
  • R25-11rel:R25-11#a62364892026-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

fonction Proxy [SWS_CM_99444] Upstream: RS_CM_00102, RS_AP_00114

~<SI>Proxy ();

Destruction of a Proxy

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : c536b9aecd57 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Le destructeur ~<SI>Proxy () termine le cycle de vie d'une instance de proxy de service et libère les ressources locales associées [SWS_CM_99444]. Un proxy de service fait office, côté consommateur, de façade locale pour interagir avec une implémentation de service potentiellement distante et relaie les appels ARAComAPI §5.1 « Proxy Skeleton Pattern ». L'objet proxy est préalablement instancié via un handle de service déterminé [SWS_CM_00131], lequel a été fourni via des fonctions de découverte de services telles que FindService [SWS_CM_00122].

Pour la destruction et le comportement à l'exécution, les directives et contraintes suivantes s'appliquent :

  • Cycle de vie et sémantique : la destruction s'effectue de manière synchrone lors de la sortie de la portée ou lors de la suppression explicite de l'instance. Alors que le constructeur de copie de la classe proxy est supprimé [SWS_CM_00136], l'objet peut être déplacé par sémantique de déplacement avant sa destruction [SWS_CM_00137].
  • Sécurité des exceptions : le destructeur est spécifié comme not exception safe [SWS_CM_99444].
  • Conditions préalables et comportement en cas d'erreur : la violation de la condition préalable [SWS_CM_00087] entraîne un DanglingSamplesViolation [SWS_CM_99444]. (Interprétation : avant l'appel du destructeur, l'ensemble des références d'échantillons ou des pointeurs de données détenus par le consommateur doivent vraisemblablement être libérés pour éviter les références invalides). Question Q-5488797b732d9be6 (ouverte)
  • Interaction : si des recherches asynchrones de services sont utilisées, celles-ci doivent, au besoin, être terminées via StopFindService avant la libération du contexte d'utilisation [SWS_CM_00125]. De plus, les gestionnaires de traitement des erreurs enregistrés pour les événements, déclencheurs (triggers) et champs peuvent être préalablement réinitialisés [SWS_CM_00105] [SWS_CM_00108] [SWS_CM_00126].

Cette note d'utilisation a été générée automatiquement sur la base des données de spécification.

Guide de l'implémenteur à venir (complexité I1)

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

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

Record
AUTOSAR/AP/record/SWS_CM_99444
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_99444@rel:R25-11#e712e991
Content hash
e712e991
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_99444
Status: valid/unmigrated Version: rel:R25-11#75a7089c 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_99444@rel:R25-11#75a7089c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#83fb25582026-09-30
  • R24-11rel:R24-11#9caace202026-10-14
  • R25-11rel:R25-11#75a7089c2026-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

fonction Service [SWS_CM_00123] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00120, RS_AP_00121

static ara::core::Result< ara::com::FindServiceHandle > StartFind Service (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::com::InstanceIdentifier instance) noexcept;

Find a service using an ara::com::InstanceIdentifier, with handler registration

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 0c76c8d95c3b Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode statique StartFindService [SWS_CM_00123] de la classe proxy démarre la recherche asynchrone d'instances de service à l'aide d'un ara::com::InstanceIdentifier avec enregistrement d'un gestionnaire de callback (ARAComAPI §6.5 « Service Discovery »). Un ara::com::FindServiceHandler ainsi que le ara::com::InstanceIdentifier recherché sont transmis à l'appel [SWS_CM_00123].

En cas de succès, la fonction renvoie un ara::core::Result avec un ara::com::FindServiceHandle [SWS_CM_00123]. Cet identifiant représente la requête de recherche active et est impérativement requis afin d'interrompre à nouveau ultérieurement la surveillance de la disponibilité du service ainsi que les appels ultérieurs du gestionnaire au moyen de StopFindService [SWS_CM_00125].

Si un problème de communication survient lors de l'établissement de la connexion, la méthode renvoie le code d'erreur ComErrc::kCommunicationFailure dans le ara::core::Result [SWS_CM_00123]. Si l'instance de callable transmise est invalide ou nulle, cela est considéré comme un InvalidHandlerViolation ; des droits d'accès manquants entraînent un InsufficientPermissionsViolation [SWS_CM_00123].

Dès qu'une instance de service appropriée devient disponible dans le système, le gestionnaire de communication appelle le gestionnaire enregistré avec les handles de service correspondants [SWS_CM_00123]. À l'aide d'un HandleType signalé, l'application peut créer une instance de proxy concrète via la méthode constructeur nommée Create [SWS_CM_10438]. Interprétation : le gestionnaire devrait être exécuté de manière asynchrone dans un thread du gestionnaire de communication, raison pour laquelle l'accès aux ressources partagées dans le gestionnaire doit s'effectuer de manière thread-safe. Question Q-9dc570d7e65fc808 (ouverte) Pour la recherche via un identifiant basé sur un modèle, StartFindService avec InstanceSpecifier est disponible comme alternative [SWS_CM_00623].

Cette note d'utilisation est basée sur les spécifications d'AUTOSAR Adaptive et a été vérifiée sur le plan rédactionnel.

Guide de l'implémenteur à venir (complexité I2)

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

Parameter (in)

ParameterBeschreibung
handlerA ara::com::FindServiceHandler for the corresponding ServiceProxy class, which gets called any time a AdaptivePlatformServiceInstance matching the given instance criteria is found.
instanceAs per [SWS_CM_00122]

Rückgabewert

TypBeschreibung
ara::core::Result<ara::com::FindServiceHandle >• If successful: an ara::core::Result containing a ara:: core::Result::value_type containing a ara::com:: FindServiceHandle for this search/find request which is needed to stop the service availability monitoring and related firing of the given handler. • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc

Fehler

FehlercodeBeschreibung
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_00123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00123@rel:R25-11#baf2d973
Content hash
baf2d973
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00123
Status: valid/unmigrated Version: rel:R25-11#5fed703f 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_00123@rel:R25-11#5fed703f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#288570952026-09-30
  • R19-11rel:R19-11#8b0f8dc42026-10-14
  • R20-11rel:R20-11#2e9f704d2026-10-14
  • R21-11rel:R21-11#f14ee6512026-10-14
  • R22-11rel:R22-11#c12cd1af2026-10-14
  • R23-11rel:R23-11#a53126272026-10-14
  • R24-11rel:R24-11#cef155e52026-10-14
  • R25-11rel:R25-11#5fed703f2026-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

fonction Service [SWS_CM_00623] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00121, RS_AP_00127, RS_AP_00137

static ara::core::Result< ara::com::FindServiceHandle > StartFind Service (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::core::InstanceSpecifier instance) noexcept;

Find a service using an ara::core::InstanceSpecifier, with handler registration

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 40cd4cda442b Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode statique StartFindService de la classe proxy démarre la recherche continue d'instances de service à l'aide d'un ara::core::InstanceSpecifier modélisé [SWS_CM_00623]. Lors de l'appel, le InstanceSpecifier ainsi qu'une fonction de callback de type ara::com::FindServiceHandler sont transmis [SWS_CM_00623]. Comme valeur de retour, la fonction renvoie un ara::core::Result<ara::com::FindServiceHandle> [SWS_CM_00623] qui, en cas d'enregistrement réussi, met à disposition un descripteur de recherche pour la gestion de la recherche.

Le traitement des erreurs s'effectue via le ara::core::Result renvoyé. Si une erreur de communication récupérable ou une erreur de communication sécurisée survient lors de la liaison réseau, le résultat contient le code d'erreur ComErrc::kCommunicationFailure [SWS_CM_00623]. En outre, des violations spécifiques sont spécifiées : InvalidHandlerViolation si le gestionnaire transmis est invalide ou nul, InsufficientPermissionsViolation en cas d'autorisations manquantes par suite du Grant Enforcement, ainsi que des violations de modélisation telles que InstanceSpecifierMappingIntegrityViolation ou PortInterfaceMappingViolation [SWS_CM_00623].

Concernant la concurrence et les conditions aux limites, la fonction est déclarée comme noexcept et spécifiée comme sûre vis-à-vis des exceptions [SWS_CM_00623]. L'exécution du gestionnaire enregistré devrait vraisemblablement s'effectuer de manière asynchrone par l'administration de communication dès que des instances de service correspondantes sont détectées dans le système. Question Q-79fb3ff78d517714 (ouverte)

Dans l'interaction avec les interfaces associées, les points suivants s'appliquent :

  • Le ara::com::FindServiceHandle renvoyé doit être conservé afin de mettre fin à la recherche en cours via StopFindService [SWS_CM_00125] et d'interrompre la réception de notifications supplémentaires.
  • Les descripteurs mis à disposition via le callback (HandleType) servent typiquement à instancier l'objet proxy au moyen de la méthode de fabrique Create [SWS_CM_10438].
  • En alternative à la recherche via un InstanceSpecifier, une recherche peut également être initiée avec un ara::com::InstanceIdentifier [SWS_CM_00123].

Ce texte a été généré par une IA et repose sur l'état de la spécification d'AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitexception safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of the executable, or it refers to a model element other than tegrityViolation a PortPrototype. PortInterfaceMap- The type of mapping does not match the expected type of Port pingViolation Interface: ServiceInterface referenced by a ServiceInstanceToPortPrototypeMapping. ProcessMappingVio- The type of mapping does not match the expected type of Port lation Interface InstanceSpecifier- The constructor was called with an Instance Specifier already AlreadyInUseViola- tion InvalidHandlerVio- Provided Callable handler does not exist or is null lation InsufficientPer- Refused by Grant Enforcement missionsViolation

Parameter (in)

ParameterBeschreibung
handlerAs per [SWS_CM_00123]
instanceAs per [SWS_CM_00622]

Rückgabewert

TypBeschreibung
ara::core::Result<ara::com::FindServiceHandle >As per [SWS_CM_00123]

Fehler

FehlercodeBeschreibung
ComErrc::kCommunicationFailurerollback_semantics The network binding reported a recoverable communications error or a secure communication failure

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

Record
AUTOSAR/AP/record/SWS_CM_00623
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00623@rel:R25-11#0b68ffb1
Content hash
0b68ffb1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00623
Status: valid/unmigrated Version: rel:R25-11#53a828a4 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_00623@rel:R25-11#53a828a4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#71acdb2b2026-09-30
  • R19-11rel:R19-11#74bab8b92026-10-14
  • R20-11rel:R20-11#d103521b2026-10-14
  • R21-11rel:R21-11#cf6bd2292026-10-14
  • R22-11rel:R22-11#e4c0996e2026-10-14
  • R23-11rel:R23-11#4ffba6b82026-10-14
  • R24-11rel:R24-11#810427ab2026-10-14
  • R25-11rel:R25-11#53a828a42026-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

fonction SetServiceStateChangeHandler [SWS_CM_01074]

void SetServiceStateChangeHandler (ara::com::ServiceStateHandler handler) noexcept;

Register a service state change handler. This handler shall be called by the Communication Management implementation as soon as the service availability state has changed. The Handler may be overwritten during runtime.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 186ab9eb37c5 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Sur une instance de proxy, la méthode SetServiceStateChangeHandler sert à enregistrer une fonction de rappel destinée à surveiller les changements de disponibilité du service concerné ([SWS_CM_01074], SWS CommunicationManagement §8.3.8.2.4.6 « SetServiceStateChangeHandler(ara::com::ServiceStateHandler) »). La gestion de la communication appelle ce gestionnaire dès que l'état de disponibilité du service (ServiceState) change ([SWS_CM_01074]).

Un objet fonction de type ara::com::ServiceStateHandler, spécifié comme std::function<void(ServiceState)> ([SWS_CM_01072]), est transmis en paramètre. La fonction ne possède aucune valeur de retour. Un gestionnaire déjà enregistré peut être écrasé pendant l'exécution par un nouvel appel ([SWS_CM_01074]).

Concernant le traitement des erreurs, la fonction est déclarée comme sûre face aux exceptions (noexcept) ([SWS_CM_01074]). Si l'élément appelable transmis n'existe pas ou est nul, la violation InvalidHandlerViolation est caractérisée ([SWS_CM_01074]).

Concernant l'environnement d'exécution, [SWS_CM_01074] constitue l'interface de base. Comme aucun exécuteur ne peut être transmis ici, le rappel devrait vraisemblablement être exécuté dans le contexte de thread interne de la gestion de la communication. Question Q-7833435e7aa1da9f (ouverte) Si une exécution dans un contexte d'application spécifique est requise, la variante template surchargée avec un executor selon [SWS_CM_01076] est disponible en alternative (SWS CommunicationManagement §8.3.8.2.4.5 « SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&) »).

Ce texte a été généré par une IA. Il ne remplace pas l'examen des spécifications AUTOSAR sous-jacentes.

Guide de l'implémenteur à venir (complexité I2)

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

Parameter (in)

ParameterBeschreibung
handlerThe callback for service state change handler

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_01074
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01074@rel:R25-11#f2825622
Content hash
f2825622
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01074
Status: valid/unmigrated Version: rel:R25-11#a6d97b14 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_01074@rel:R25-11#a6d97b14
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#1277a2d02026-09-30
  • R22-11rel:R22-11#91401b222026-10-14
  • R23-11rel:R23-11#fec38b202026-10-14
  • R24-11rel:R24-11#12032ba22026-10-14
  • R25-11rel:R25-11#a6d97b142026-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

fonction SetServiceStateChangeHandler [SWS_CM_01076]

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

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

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 7e2d99ac7d24 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation et contexte d'appel

La méthode modèle SetServiceStateChangeHandler sert, sur la classe proxy générée <SI-Namespace>::proxy::<SI>Proxy, à enregistrer un rappel pour surveiller la disponibilité du service [SWS_CM_01076]. La fonction prend deux paramètres AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.5 « SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&) » :

  • handler : un foncteur de type ara::com::ServiceStateHandler (défini comme std::function<void(ServiceState)>), appelé à chaque changement de l'état de disponibilité [SWS_CM_01072], [SWS_CM_01074].
  • executor : un contexte d'exécution du type modèle ExecutorT selon [SWS_CM_11360], dans lequel le gestionnaire enregistré est exécuté [SWS_CM_01076].

La fonction ne possède pas de valeur de retour (void) [SWS_CM_01076].

Gestion des erreurs et sécurité vis-à-vis des exceptions

La fonction est déclarée comme noexcept et spécifiée comme sûre vis-à-vis des exceptions (exception safe) [SWS_CM_01076]. Si le gestionnaire appelable transmis n'existe pas ou est null, une InvalidHandlerViolation est déclenchée [SWS_CM_01076].

Concurrence et restrictions

Un gestionnaire enregistré peut être remplacé au moment de l'exécution [SWS_CM_01074]. L'exécution s'effectuant via l'objet executor transmis [SWS_CM_01076], la notification est vraisemblablement traitée de manière asynchrone dans le contexte de thread ou de répartition fourni par l'utilisateur. Question Q-349c5224c3b9cc20 (ouverte)

Interaction

La méthode enrichit la variante élémentaire [SWS_CM_01074] de la spécification explicite du contexte d'exécution [SWS_CM_01076]. L'en-tête <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h est requis pour l'intégration, tandis que le type de gestionnaire provient de ara/com/types.h [SWS_CM_01072].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR AP Release R25-11.

Guide de l'implémenteur à venir (complexité I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
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_01074]
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_01076
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01076@rel:R25-11#6884e2b3
Content hash
6884e2b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01076
Status: valid/unmigrated Version: rel:R25-11#42c2fc88 Versionshistorie & Revisions (1 transition, 4 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_01076@rel:R25-11#42c2fc88
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#364c6b732026-09-30
  • R23-11rel:R23-11#00e316b22026-10-14
  • R24-11rel:R24-11#bc0c225f2026-10-14
  • R25-11rel:R25-11#42c2fc882026-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

fonction StartFindService [SWS_CM_11352] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00120, RS_AP_00121

template <typename ExecutorT> static ara::com::FindServiceHandle StartFindService (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::com::InstanceIdentifier instance, ExecutorT &&executor) noexcept;

Find a service using an ara::com::InstanceIdentifier, with handler registration, - in a provided execution context

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 966a42ce08ac Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode statique de modèle StartFindService démarre la surveillance asynchrone en arrière-plan pour la découverte d'instances d'un service à l'aide d'un ara::com::InstanceIdentifier ([SWS_CM_11352], EXP_ARAComAPI §5.3.3 « Proxy Class API’s »). Outre l'instance cible (instance selon [SWS_CM_00122]), une fonction de rappel (handler selon [SWS_CM_00123]) ainsi qu'un contexte d'exécution (executor du type de modèle ExecutorT selon [SWS_CM_11360]) sont enregistrés ([SWS_CM_11352]). Les notifications de rappel devraient ainsi être traitées dans le contexte de thread ou de tâche du executor transmis ([SWS_CM_11352]). Question Q-1db520123c1e49a4 (ouverte)

En tant que valeur de retour, l'appel fournit un ara::com::FindServiceHandle ([SWS_CM_11352]). Ce handle identifie l'activité de recherche en cours et est requis pour terminer explicitement ultérieurement l'activité en arrière-plan via [SWS_CM_00125] (StopFindService) (EXP_ARAComAPI §5.3.3 « Proxy Class API’s »). Les handles de service (HandleType) obtenus via le rappel enregistré servent ensuite à la construction des instances proxy associées ([SWS_CM_00131]).

La fonction est déclarée comme noexcept et spécifiée sûre face aux exceptions (exception safe) ([SWS_CM_11352]). Les violations à l'exécution (Violations) suivantes sont définies :

  • InvalidHandlerViolation : survient lorsque la fonction de gestionnaire transmise est invalide ou correspond à null ([SWS_CM_11352]).
  • InsufficientPermissionsViolation : survient lorsque l'accès est refusé par le système d'autorisations (Grant Enforcement) ([SWS_CM_11352]).

Si un service doit plutôt être recherché via un ara::core::InstanceSpecifier basé sur un modèle, la variante de fonction [SWS_CM_11365] est disponible à titre d'alternative.

Ce texte a été généré et sélectionné par une IA. Toutes les indications sont basées sur AUTOSAR Adaptive R25-11.

Guide de l'implémenteur à venir (complexité I3)

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

Template-Parameter

ParameterBeschreibung
ExecutorTAs per [SWS_CM_11360]

Parameter (in)

ParameterBeschreibung
handlerAs per [SWS_CM_00123]
instanceAs per [SWS_CM_00122]
executorAs per [SWS_CM_11360]

Rückgabewert

TypBeschreibung
ara::com::FindServiceHandleAs per [SWS_CM_00123]

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

Record
AUTOSAR/AP/record/SWS_CM_11352
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11352@rel:R25-11#b85257e6
Content hash
b85257e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11352
Status: valid/unmigrated Version: rel:R25-11#a0653886 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_11352@rel:R25-11#a0653886
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b506106e2026-09-30
  • R20-11rel:R20-11#1e2172bd2026-10-14
  • R21-11rel:R21-11#3fa9f7922026-10-14
  • R22-11rel:R22-11#3fa9f7922026-10-14
  • R23-11rel:R23-11#72eaa22f2026-10-14
  • R24-11rel:R24-11#749e20a42026-10-14
  • R25-11rel:R25-11#a06538862026-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

fonction StartFindService [SWS_CM_11365] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00115, RS_AP_00119, RS_AP_00120, RS_AP_00121

template <typename ExecutorT> static ara::com::FindServiceHandle StartFindService (ara::com::FindServiceHandler< <SI-Namespace>::proxy:: <SI>Proxy::HandleType > handler, ara::core::InstanceSpecifier instance, ExecutorT &&executor) noexcept;

Find a service using an ara::core::InstanceSpecifier, with handler registration, in a provided context

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : cdf801d69b3d Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction statique de modèle StartFindService démarre la recherche continue et asynchrone d'instances de service à l'aide d'un ara::core::InstanceSpecifier avec enregistrement d'un gestionnaire de notification dans un contexte d'exécution transmis [SWS_CM_11365]. Contrairement aux recherches ponctuelles synchrones, elle déclenche une activité en arrière-plan pour surveiller la disponibilité du service et renvoie un ara::com::FindServiceHandle EXP_ARAComAPI §5.3 « Proxy Class APIs ».

Paramètres et exécution

La fonction accepte trois paramètres [SWS_CM_11365] :

  • handler : fonction de rappel de type ara::com::FindServiceHandler selon [SWS_CM_00123], appelée lors de modifications de la disponibilité de l'instance.
  • instance : le ara::core::InstanceSpecifier à rechercher selon [SWS_CM_00123].
  • executor : un contexte d'exécution du type de modèle ExecutorT selon [SWS_CM_11360]. Interprétation : l'argument de modèle ExecutorT devrait déterminer dans quel contexte de thread ou de tâche le rappel enregistré est exécuté. Question Q-6d46f67d536a391e (ouverte)

Gestion des erreurs et conditions limites

La signature est déclarée comme noexcept et spécifiée comme sûre face aux exceptions [SWS_CM_11365]. Du point de vue de la spécification, des violations fonctionnelles (Violations) sont définies : InstanceSpecifierMappingIntegrityViolation (résolution échouée dans le contexte Executable ou aucun PortPrototype), PortInterfaceMappingViolation et ProcessMappingViolation (mappages PortInterface non concordants), InstanceSpecifierAlreadyInUseViolation, InvalidHandlerViolation (gestionnaire invalide ou inexistant) ainsi que InsufficientPermissionsViolation en cas d'autorisation d'accès manquante [SWS_CM_11365].

Interaction

Le FindServiceHandle obtenu sert à terminer de manière contrôlée la surveillance continue en arrière-plan par transmission à StopFindService [SWS_CM_00125]. Les handles signalés au gestionnaire sont utilisés pour instancier des proxys de service concrets au moyen de Proxy(handle) [SWS_CM_00131]. Pour les recherches au moyen de ara::com::InstanceIdentifier, une surcharge alternative [SWS_CM_11352] existe.

Ce texte a été créé par une IA ; il ne remplace pas l'étude de la spécification AUTOSAR sous-jacente.

Guide de l'implémenteur à venir (complexité I2)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Exception-Sicherheitexception safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of the executable, or it refers to a model element other than tegrityViolation a PortPrototype. PortInterfaceMap- The type of mapping does not match the expected type of Port pingViolation Interface: ServiceInterface referenced by a ServiceInstanceToPortPrototypeMapping. ProcessMappingVio- The type of mapping does not match the expected type of Port lation Interface InstanceSpecifier- The constructor was called with an Instance Specifier already AlreadyInUseViola- tion InvalidHandlerVio- Provided Callable handler does not exist or is null lation InsufficientPer- Refused by Grant Enforcement missionsViolation

Template-Parameter

ParameterBeschreibung
ExecutorTAs per [SWS_CM_11360]

Parameter (in)

ParameterBeschreibung
handlerAs per [SWS_CM_00123]
instanceAs per [SWS_CM_00123]
executorAs per [SWS_CM_11360]

Rückgabewert

TypBeschreibung
ara::com::FindServiceHandleAs per [SWS_CM_00123]

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

Record
AUTOSAR/AP/record/SWS_CM_11365
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11365@rel:R25-11#7404fbc3
Content hash
7404fbc3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11365
Status: valid/unmigrated Version: rel:R25-11#53bcbb23 Versionshistorie & Revisions (1 transition, 4 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_11365@rel:R25-11#53bcbb23
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#c0c22af02026-09-30
  • R23-11rel:R23-11#ef07eadd2026-10-14
  • R24-11rel:R24-11#203448af2026-10-14
  • R25-11rel:R25-11#53bcbb232026-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

fonction StopFindService [SWS_CM_00125] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00120, RS_AP_00121

void StopFindService (ara::com::FindServiceHandle handle) noexcept;

Stop an ongoing StartFindService() - Stops receiving further notifications for the provided ara::com::FindServiceHandle

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 5a542928a936 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction statique StopFindService de la classe proxy met fin à une recherche de service asynchrone démarrée précédemment avec StartFindService et arrête la réception de notifications supplémentaires pour le handle transmis [SWS_CM_00125]. L'activité d'arrière-plan en cours destinée à surveiller la disponibilité du service est ainsi arrêtée par le binding technique AP EXP ARAComAPI §5.3 « Proxy Class API’s ».

Utilisation et sémantique

Cette note d'utilisation a été générée par une IA sur la base des documents de spécification pour AUTOSAR Adaptive R25-11.

Guide de l'implémenteur à venir (complexité I2)

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

Parameter (in)

ParameterBeschreibung
handleThe ara::com::FindServiceHandle returned by StartFind Service methods: • [SWS_CM_00123] • [SWS_CM_00623] • [SWS_CM_11352] • [SWS_CM_11365]

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_00125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00125@rel:R25-11#5137ba12
Content hash
5137ba12
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00125
Status: valid/unmigrated Version: rel:R25-11#e35ad180 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_00125@rel:R25-11#e35ad180
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a95890d12026-09-30
  • R19-11rel:R19-11#ceab02e62026-10-14
  • R20-11rel:R20-11#ceab02e62026-10-14
  • R21-11rel:R21-11#ceab02e62026-10-14
  • R22-11rel:R22-11#ceab02e62026-10-14
  • R23-11rel:R23-11#ceab02e62026-10-14
  • R24-11rel:R24-11#d8b592732026-10-14
  • R25-11rel:R25-11#e35ad1802026-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

fonction UnsetServiceStateChangeHandler [SWS_CM_01075]

void UnsetServiceStateChangeHandler () noexcept;
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : bd7a765f57bb Provenance Questions ouvertes (2)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction membre UnsetServiceStateChangeHandler fait partie de la classe de proxy générée dans l'espace de noms <SI-Namespace>::proxy::<SI>Proxy conformément à [SWS_CM_01075] (AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.12 « UnsetServiceStateChangeHandler »). Elle est incluse via l'en-tête #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h".

Concernant l'utilisation, le comportement et la concurrence, les dispositions suivantes s'appliquent :

  • Utilisation : la méthode possède la signature void UnsetServiceStateChangeHandler() noexcept;. Elle ne prend aucun paramètre et ne renvoie aucune valeur de retour. Interprétation : d'après l'identifiant ainsi que la référence à [SWS_CM_01074], l'appel sert à réinitialiser ou à désinscrire un gestionnaire de rappel préalablement enregistré pour les changements d'état du service sur l'instance de proxy. Question Q-6eb71298a6f37ad9 (ouverte)
  • Traitement des erreurs et sécurité des exceptions : l'opération est déclarée comme noexcept et spécifiée comme sans danger vis-à-vis des exceptions (exception safe) ([SWS_CM_01075]). Elle ne lève aucune exception et ne renvoie aucun code d'erreur à l'appelant.
  • Interaction et contraintes : la sémantique fonctionnelle renvoie à la définition figurant dans [SWS_CM_01074]. Interprétation : la désinscription devrait prendre effet de manière synchrone, de sorte qu'aucun changement d'état ultérieur ne soit délivré via le rappel antérieur après le retour de l'appel de fonction. Question Q-31348a50d9be537d (ouverte)

Cette note d'utilisation a été générée par une IA sur la base de la spécification AUTOSAR.

Guide de l'implémenteur à venir (complexité I1)

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
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_01075
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_01075@rel:R25-11#a1f29506
Content hash
a1f29506
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_01075
Status: valid/unmigrated Version: rel:R25-11#9a8d00b1 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_01075@rel:R25-11#9a8d00b1
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#acd5afba2026-09-30
  • R22-11rel:R22-11#266981b82026-10-14
  • R23-11rel:R23-11#7fa74f802026-10-14
  • R24-11rel:R24-11#0398d0122026-10-14
  • R25-11rel:R25-11#9a8d00b12026-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

fonction operator= [SWS_CM_11551] Upstream: RS_CM_00102, RS_AP_00114

<SI>Proxy & operator= (const <SI-Namespace>::proxy:: <SI>Proxy &other)=delete;

Copy assignment constructor deletion

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy

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

Record
AUTOSAR/AP/record/SWS_CM_11551
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11551@rel:R25-11#8e3e132a
Content hash
8e3e132a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11551
Status: valid/unmigrated Version: rel:R25-11#d1bb516a 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_11551@rel:R25-11#d1bb516a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#48b1d1052026-09-30
  • R24-11rel:R24-11#53d4fe222026-10-14
  • R25-11rel:R25-11#d1bb516a2026-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

fonction operator= [SWS_CM_11552] Upstream: RS_CM_00102, RS_AP_00114

<SI-Namespace>::proxy:: <SI>Proxy & operator= ( <SI-Namespace>::proxy:: <SI>Proxy &&other) noexcept;

Move assignment constructor

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

Parameter (in)

ParameterBeschreibung
otherOther object to move

Rückgabewert

TypBeschreibung
<SI-Namespace>::proxy::{<service-interface-name> }Proxy &The moved object

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

Record
AUTOSAR/AP/record/SWS_CM_11552
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11552@rel:R25-11#4a3d4443
Content hash
4a3d4443
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11552
Status: valid/unmigrated Version: rel:R25-11#d00c3051 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_11552@rel:R25-11#d00c3051
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e1e91d572026-09-30
  • R24-11rel:R24-11#743e1f3d2026-10-14
  • R25-11rel:R25-11#d00c30512026-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

Documentation des constantes / variables

variable <Event> [SWS_CM_99445] Upstream: RS_CM_00201, RS_AP_00114

events::<Event> <Event>;

Event member, one for each VariableDataPrototype defined in the ServiceInterface in the role event.

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Symbol<Event>
Typevents::<Event>

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

Record
AUTOSAR/AP/record/SWS_CM_99445
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_99445@rel:R25-11#af3ce7b8
Content hash
af3ce7b8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_99445
Status: valid/unmigrated Version: rel:R25-11#9c64ddce 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_99445@rel:R25-11#9c64ddce
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#af3ce7b82026-09-30
  • R24-11rel:R24-11#fcd66cc52026-10-14
  • R25-11rel:R25-11#9c64ddce2026-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

variable <Field> [SWS_CM_99446] Upstream: RS_CM_00216, RS_AP_00114

fields::<Field> <Field>;

Field member, one for each Field defined in the ServiceInterface in the role field.

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Symbol<Field>
Typfields::<Field>

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

Record
AUTOSAR/AP/record/SWS_CM_99446
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_99446@rel:R25-11#44127f5b
Content hash
44127f5b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_99446
Status: valid/unmigrated Version: rel:R25-11#7b384735 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_99446@rel:R25-11#7b384735
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#44127f5b2026-09-30
  • R24-11rel:R24-11#f92e65aa2026-10-14
  • R25-11rel:R25-11#7b3847352026-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

variable <Method> [SWS_CM_99447] Upstream: RS_CM_00212, RS_CM_00213, RS_AP_00114

methods::<Method> <Method>;

Method member, one for each ClientServerOperation defined in the ServiceInterface in the role method.

Header-Datei#include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h"
Scopeclass <SI-Namespace>::proxy::<SI>Proxy
Symbol<Method>
Typmethods::<Method>

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

Record
AUTOSAR/AP/record/SWS_CM_99447
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_99447@rel:R25-11#1d379a32
Content hash
1d379a32
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_99447
Status: valid/unmigrated Version: rel:R25-11#798a90d2 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_99447@rel:R25-11#798a90d2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1d379a322026-09-30
  • R24-11rel:R24-11#a0578b1e2026-10-14
  • R25-11rel:R25-11#798a90d22026-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