DEENESPTFRRUARHIKOZHNL

struct ara::com::FindServiceHandle

[SWS_CM_00303] Upstream: RS_CM_00102

struct FindServiceHandle {...};

The exact definition of ara::com::FindServiceHandle is Communication Management implementation specific. ara::com::FindServiceHandle satisfies the [equalitycomparable] and [lessthancomparable] requirements as per [30] to allow storing and managing ara::com::FindServiceHandles by the application.

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

Header-Datei#include "ara/com/service/find_service_handle.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com

User GuideAI-GEGENEREERD

Dient als besturingstoken voor het beheren en beëindigen van een lopende asynchrone achtergrondzoekopdracht naar service-instanties.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: eb9ee1985b4b Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Dient als besturingstoken voor het beheren en beëindigen van een lopende asynchrone achtergrondzoekopdracht naar service-instanties.

De structuur ara::com::FindServiceHandle dient als uniek controletoken voor de besturing van een op de achtergrond actieve servicebewaking (AUTOSAR_AP_EXP_ARAComAPI p. 34). Aangezien de standaardconstructor verwijderd is ([SWS_CM_00353]), wordt de handle uitsluitend door StartFindService aangemaakt en maakt deze na ontvangst van asynchrone status-callbacks het gericht beëindigen van de zoekopdracht via StopFindService mogelijk (AUTOSAR_AP_EXP_ARAComAPI p. 30). Ondersteunde vergelijkingsoperatoren waarborgen bovendien het opslagbare beheer van meerdere zoekopdrachten in standaardcontainers ([SWS_CM_11526], [SWS_CM_11527]).

Context

De structuur ara::com::FindServiceHandle fungeert in de module com van het Adaptive Platform als unieke identificator en controletoken voor een asynchrone, continue servicezoekopdracht. Terwijl een synchrone bevraging via FindService eenmalig passende service-instanties vaststelt en direct handle-containers retourneert, initieert StartFindService een permanente bewaking van de servicebeschikbaarheid op de achtergrond (AUTOSAR_AP_EXP_ARAComAPI p. 34). Bij dit proces zijn typisch de applicatie-instantie, de typespecifieke proxyklasse (bijvoorbeeld RadarServiceProxy) evenals een door de gebruiker gedefinieerde callbackfunctie van het type FindServiceHandler betrokken (AUTOSAR_AP_EXP_ARAComAPI p. 30). De concrete interne representatie van ara::com::FindServiceHandle is implementatiespecifiek voor het desbetreffende Communication Management vormgegeven, maar stelt gestandaardiseerde C++-interfaces voor de hantering beschikbaar.

Levenscyclus

De levenscyclus van een ara::com::FindServiceHandle is vast gekoppeld aan het actieve zoekproces in het Communication Management:

  • Aanmaak: De standaardconstructor is expliciet verwijderd ([SWS_CM_00353]). Een applicatie kan daardoor handle-instanties niet ongeïnitialiseerd of op eigen initiatief aanmaken. In plaats daarvan wordt een geldige handle uitsluitend gegenereerd als payload van een ara::core::Result door de statische methode StartFindService (AUTOSAR_AP_EXP_ARAComAPI p. 30).
  • Beheer en eigenaarschap: Een handle ondersteunt toewijzing via de copy assignment operator [SWS_CM_11528]. Om de applicatie in staat te stellen meerdere zoekopdrachten in standaardcontainers (zoals geordende verzamelingen of associatieve geheugens) op te slaan en te organiseren, voldoet het type aan de C++-concepten [equalitycomparable] en [lessthancomparable] via de operatoren operator== ([SWS_CM_11526]) en operator< ([SWS_CM_11527]).
  • Beëindiging en vernietiging: De handle blijft geldig zolang de achtergrondbewaking actief is. De beëindiging van de zoekopdracht vindt plaats door overdracht van de handle aan StopFindService (AUTOSAR_AP_EXP_ARAComAPI p. 30, AUTOSAR_AP_EXP_ARAComAPI p. 34). Na deze aanroep representeert de handle niet langer een lopend zoekproces.

Gebruikspad

Het reguliere verloop omvat de registratie van de zoekopdracht, de continue ontvangst van beschikbaarheidsupdates en het ordentelijk stoppen van het bewakingsproces:

  1. Zoekstart: De applicatie registreert een FindServiceHandler via StartFindService om geïnformeerd te worden over nieuw beschikbare of wegvallende service-instanties (AUTOSAR_AP_EXP_ARAComAPI p. 30, AUTOSAR_AP_EXP_ARAComAPI p. 34).
  2. Handle-ontvangst: Bij een succesvolle start levert de aanroep een ara::core::Result met de FindServiceHandle op (AUTOSAR_AP_EXP_ARAComAPI p. 30), die de applicatie bewaart voor latere besturingsaanroepen.
  3. Asynchrone notificatie: Het Communication Management voert de achtergrondzoekopdracht uit en roept bij statuswijzigingen de beschikbaar gestelde handler aan (AUTOSAR_AP_EXP_ARAComAPI p. 34).
  4. Zoekstop: Zodra de instanties zijn gevonden of de bewaking niet meer vereist is, overhandigt de applicatie de handle aan StopFindService (AUTOSAR_AP_EXP_ARAComAPI p. 30, AUTOSAR_AP_EXP_ARAComAPI p. 34).
Verloop van het asynchrone zoeken naar diensten met FindServiceHandleApplikationProxyFindServiceHandlerStartFindService(handler)Result<FindServiceHandle>Use Case: Achtergrondbewaking actiefMelding over instantiesUse Case: Beëindiging van de bewakingStopFindService(handle)

Sequentiediagram: Typisch verloop van de asynchrone servicezoekopdracht vanaf de registratie via notificaties tot aan het beëindigen via FindServiceHandle. Bronnen: AUTOSAR_AP_EXP_ARAComAPI p. 30, AUTOSAR_AP_EXP_ARAComAPI p. 34.

Foutscenario's

Bij het gebruik van ara::com::FindServiceHandle moeten de volgende systeemspecifieke randvoorwaarden in acht worden genomen:

  • Mislukte zoekstart: Indien technische bindings niet beschikbaar zijn of de service-deploymentconfiguratie foutief is (AUTOSAR_AP_EXP_ARAComAPI p. 34), mislukt StartFindService. De geretourneerde ara::core::Result bevat in dit geval geen geldige handle, maar een foutcode (AUTOSAR_AP_EXP_ARAComAPI p. 30).
  • Uitzonderingsveiligheid: De geïmplementeerde vergelijkings- en toewijzingsoperatoren operator== ([SWS_CM_11526]), operator< ([SWS_CM_11527]) en operator= ([SWS_CM_11528]) zijn in de specificatie expliciet als niet uitzonderingsveilig (not exception safe) gedeclareerd.
  • Meervoudig stoppen: Een herhaalde aanroep van StopFindService met dezelfde handle blijft vermoedelijk zonder effect of leidt tot een runtimefout, aangezien de onderliggende bewakingsactiviteit al is verwijderd. Vraag Q-f44130c33fa1caea (open)

Deze handleiding is gebaseerd op de AUTOSAR-specificatie voor het Adaptive Platform (release R25-11). De getoonde interfaces en gedragingen steunen op de gereferentieerde SWS-eisen en API-beschrijvingen.

Ledenkaart

Constructors en destructor

1

Klassendiagram

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

G nara__com__FindServiceHandle138 «struct» FindServiceHandle + FindServiceHandle() + operator=() + operator<() + operator==()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Default constructor deletion

FindServiceHandle ()=delete;

Operatoren

operator< functie

LessThan operator as per [lessthancomparable] in [30]

bool operator< (const FindServiceHandle &other) const;
operator= functie

Copy assignment constructor

FindServiceHandle & operator= (const FindServiceHandle &other);
operator== functie

Equality operator as per [equalitycomparable] in [30]

bool operator== (const FindServiceHandle &other) const;

Documentatie van de methoden

functie FindServiceHandle [SWS_CM_00353] Upstream: RS_AP_00146

FindServiceHandle ()=delete;

Default constructor deletion

Header-Datei#include "ara/com/service/find_service_handle.h"
Scopestruct ara::com::FindServiceHandle

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

Record
AUTOSAR/AP/record/SWS_CM_00353
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00353@rel:R25-11#de4a4920
Content hash
de4a4920
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00353
Status: valid/unmigrated Version: rel:R25-11#8a450052 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_00353@rel:R25-11#8a450052
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b1f430d12026-09-30
  • R23-11rel:R23-11#604163032026-10-14
  • R24-11rel:R24-11#8a4500522026-10-14
  • R25-11rel:R25-11#8a4500522026-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

functie operator< [SWS_CM_11527]

bool operator< (const FindServiceHandle &other) const;

LessThan operator as per [lessthancomparable] in [30]

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

Header-Datei#include "ara/com/service/find_service_handle.h"
Scopestruct ara::com::FindServiceHandle
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::FindServiceHandle to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is less than *this, FALSE otherwise.

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

Record
AUTOSAR/AP/record/SWS_CM_11527
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11527@rel:R25-11#0cfe55e6
Content hash
0cfe55e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11527
Status: valid/unmigrated Version: rel:R25-11#b1ec1ec0 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_11527@rel:R25-11#b1ec1ec0
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9b3fc18e2026-09-30
  • R24-11rel:R24-11#2bb55cbe2026-10-14
  • R25-11rel:R25-11#b1ec1ec02026-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

functie operator= [SWS_CM_11528]

FindServiceHandle & operator= (const FindServiceHandle &other);

Copy assignment constructor

Header-Datei#include "ara/com/service/find_service_handle.h"
Scopestruct ara::com::FindServiceHandle
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::FindServiceHandle to copy

Rückgabewert

TypBeschreibung
FindServiceHandle &New ara::com::FindServiceHandle

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

Record
AUTOSAR/AP/record/SWS_CM_11528
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11528@rel:R25-11#9cca2cbd
Content hash
9cca2cbd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11528
Status: valid/unmigrated Version: rel:R25-11#847556b4 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_11528@rel:R25-11#847556b4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#414d7a6c2026-09-30
  • R24-11rel:R24-11#f73bf3482026-10-14
  • R25-11rel:R25-11#847556b42026-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

functie operator== [SWS_CM_11526]

bool operator== (const FindServiceHandle &other) const;

Equality operator as per [equalitycomparable] in [30]

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

Header-Datei#include "ara/com/service/find_service_handle.h"
Scopestruct ara::com::FindServiceHandle
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::FindServiceHandle to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is equal to *this, FALSE otherwise.

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

Record
AUTOSAR/AP/record/SWS_CM_11526
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11526@rel:R25-11#4751463d
Content hash
4751463d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11526
Status: valid/unmigrated Version: rel:R25-11#d2ea98ee 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_11526@rel:R25-11#d2ea98ee
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d9c8643c2026-09-30
  • R24-11rel:R24-11#491d93d72026-10-14
  • R25-11rel:R25-11#d2ea98ee2026-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