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

Guia do utilizadorGERADO POR IA

Serve como representante tipificado para aplicações cliente para localização de serviços e interação com uma instância de serviço.
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: cc07b1e12dfe Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Serve como representante tipificado para aplicações cliente para localização de serviços e interação com uma instância de serviço.

A classe <SI>Proxy serve a aplicações cliente como um representante tipificado para um Service Interface visando à transmissão de chamadas de métodos, eventos e campos [SWS_CM_99447]. Após uma localização de serviço bem-sucedida, a instância é criada preferencialmente por meio do método de fábrica livre de exceções Create() [SWS_CM_10438]. A classe possui semântica somente de movimento (move-only) e exige a liberação completa de todas as amostras de dados referenciadas antes de sua destruição, a fim de evitar violações de pré-condições [SWS_CM_99444].

Contexto

A classe gerada <SI>Proxy atua dentro da arquitetura de comunicação da AUTOSAR Adaptive Platform como um terminal de cliente tipificado para um Service Interface definido. Ela encapsula a interação de uma aplicação cliente com uma instância remota ou local desse serviço. Entre os parceiros de interação estão o componente de software aplicativo, a própria instância do proxy e o gerenciamento de comunicação subjacente (ara::com), que controla a vinculação de rede e a transmissão de mensagens. Por meio dos elementos de dados dedicados events::<Event> [SWS_CM_99445], fields::<Field> [SWS_CM_99446] e methods::<Method> [SWS_CM_99447], o proxy fornece acesso direto a eventos, campos e métodos da interface de serviço.

client Aplicação 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

Diagrama de contexto: integração do proxy de Service Interface entre a aplicação cliente e o gerenciamento de comunicação. Fontes: [SWS_CM_99445], [SWS_CM_99446], [SWS_CM_99447].

Ciclo de vida

A criação de uma instância de proxy pressupõe uma localização de serviço realizada anteriormente com sucesso, a qual fornece uma instância válida de manipulador (HandleType). A criação preferencial ocorre sem exceções por meio do método de fábrica estático Create() de acordo com o padrão named constructor [SWS_CM_10438], o qual retorna um ara::core::Result contendo o proxy ou um código de erro. Alternativamente, existe um construtor explícito <SI>Proxy(handle), especificado como não seguro quanto a exceções e que, em caso de erro, pode lançar uma ara::com::ComException [SWS_CM_00131]. O manipulador utilizado para inicialização pode ser consultado a qualquer momento por meio de GetHandle() [SWS_CM_10383].

Em relação às relações de posse, o proxy possui semântica somente de movimento: o construtor de cópia [SWS_CM_00136] e o operador de atribuição por cópia [SWS_CM_11551] estão explicitamente excluídos. A transferência da instância é permitida exclusivamente por meio do construtor de movimento [SWS_CM_00137] ou do operador de atribuição por movimento seguro quanto a exceções [SWS_CM_11552]. Durante a vida útil, o status de disponibilidade do serviço pode ser determinado ativamente por meio de GetServiceState() [SWS_CM_01073]. Alternativamente, SetServiceStateChangeHandler() permite registrar uma função de retorno de chamada mediante alterações de status [SWS_CM_01074], a qual pode opcionalmente ser vinculada a um contexto definido pelo usuário através de um ExecutorT [SWS_CM_01076]. O registro do manipulador pode ser cancelado por meio de UnsetServiceStateChangeHandler() [SWS_CM_01075].

A destruição ocorre por meio do destrutor ~<SI>Proxy() [SWS_CM_99444]. Este é declarado como não seguro quanto a exceções e exige, como pré-condição obrigatória, que nenhuma amostra de dados aberta seja mais retida pelo cliente antes da destruição, a fim de evitar violações [SWS_CM_99444].

Caminho de utilização

O caminho de uso típico divide-se em quatro fases:

  1. Localização de serviços: O cliente busca instâncias do serviço de forma síncrona via FindService() com um InstanceIdentifier [SWS_CM_00122] ou um InstanceSpecifier [SWS_CM_00622] EXP ARAComAPI §2 «Service Interface Proxy» baseado em modelo, ou de forma assíncrona por meio de StartFindService() [SWS_CM_00123] [SWS_CM_00623]. Para buscas assíncronas, pode-se passar adicionalmente um ExecutorT [SWS_CM_11352] [SWS_CM_11365] EXP ARAComAPI §2 «Service Interface Proxy». Buscas assíncronas devem ser interrompidas via StopFindService() após encontrar a instância desejada [SWS_CM_00125] EXP ARAComAPI §2 «Service Interface Proxy».
  2. Instanciação: A partir do ServiceHandleContainer determinado, um manipulador é selecionado e passado para Create() para criar a instância do proxy [SWS_CM_10438]. Interpretação: Supõe-se que o método de fábrica Create() seja o caminho primário de instanciação em comparação com o construtor que lança exceções. Pergunta Q-cf53ee7076736baf (aberta)
  3. Interação: A aplicação interage com o serviço por meio de chamadas de método (methods::<Method>) [SWS_CM_99447], monitoramento de eventos (events::<Event>) [SWS_CM_99445] ou acessos a campos (fields::<Field>) [SWS_CM_99446].
  4. Limpeza: Após a conclusão das interações, a instância do proxy é destruída, devendo-se assegurar que nenhuma referência inválida a amostras permaneça [SWS_CM_99444].
Fluxo da busca de serviço e interação com proxyClient<SI>ProxyCommunicationManagementUse Case: 1. DienstsucheFindService(instance)Dienstinstanzen ermittelnServiceHandleContainerResult<ServiceHandleContainer>Use Case: 2. InstanziierungCreate(handle)Result<<SI>Proxy>Use Case: 3. Dienstnutzungmethods::<Method>()Transmitir chamada de métodoAntwortdatenValor de retornoUse Case: 4. Destruição~<SI>Proxy()

Diagrama de sequência: fluxo típico de localização de serviços, instanciação de proxy e interação de métodos. Fontes: [SWS_CM_00122], [SWS_CM_10438], [SWS_CM_99447], [SWS_CM_99444].

Cenários de erro

Erros são reportados primariamente por meio do tipo de erro ara::com::ComErrc no ara::core::Result:

  • ComErrc::kServiceNotAvailable: Ocorre em Create() quando um serviço anteriormente oferecido não está mais disponível [SWS_CM_10438]. Na chamada direta do construtor, isso resulta, em vez disso, em uma ara::com::ComException [SWS_CM_00131].
  • ComErrc::kCommunicationFailure: É reportado por FindService() [SWS_CM_00122] [SWS_CM_00622], StartFindService() [SWS_CM_00123] [SWS_CM_00623], Create() [SWS_CM_10438] e GetServiceState() [SWS_CM_01073] quando a vinculação de rede identifica um erro de comunicação recuperável ou um erro na comunicação protegida.

Além disso, são especificadas as seguintes violações (Violations):

  • ErroneousServiceHandleViolation: O manipulador passado para Create() ou para o construtor é inválido ou corrompido [SWS_CM_10438] [SWS_CM_00131].
  • InsufficientPermissionsViolation: Negação de acesso na localização de serviços ou instanciação por aplicação de concessões (Grant Enforcement) [SWS_CM_00122] [SWS_CM_10438].
  • InvalidHandlerViolation: Passagem de um retorno de chamada inválido ou vazio para StartFindService() [SWS_CM_00123] ou SetServiceStateChangeHandler() [SWS_CM_01074].
  • InstanceSpecifierMappingIntegrityViolation, PortInterfaceMappingViolation, ProcessMappingViolation, InstanceSpecifierAlreadyInUseViolation: Ocorrem em chamadas de busca baseadas em modelo quando o mapeamento do InstanceSpecifier estiver incorreto ou já em uso [SWS_CM_00622] [SWS_CM_00623].
  • DanglingSamplesViolation: Destruição do proxy havendo referências ainda existentes para amostras de dados [SWS_CM_99444].

Este guia baseia-se nas especificações da AUTOSAR para a Adaptive Platform Release R25-11 e resume os mecanismos de comunicação do proxy de Service Interface.

Mapa de membros

Diagrama 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()

Vista de detalhes

Selecione uma entrada no índice.

Métodos

Create função

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 função 2

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

Sobrecargas FindService 2
GetHandle função

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 função 4

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

Sobrecargas 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 função 2

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

Sobrecargas 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.

Sobrecargas 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 função 2

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

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

Operadores

operator= função 2

Copy assignment constructor deletion

Sobrecargas = 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> variável

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

events::<Event> <Event>;
<Field> variável

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

fields::<Field> <Field>;
<Method> variável

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

methods::<Method> <Method>;

Tipos aninhados

HandleType classe

Documentação dos métodos

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 7ecc1087a58a Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Utilização e semântica

O método de fábrica estático Create serve, conforme [SWS_CM_10438], para a criação livre de exceções de uma instância de proxy (<SI>Proxy) de acordo com a convenção de named constructor. Ele requer como parâmetro handle um handle de serviço previamente determinado de acordo com [SWS_CM_00131]. A chamada ocorre de forma síncrona e é declarada como noexcept. O resultado é retornado em um ara::core::Result, que em caso de sucesso contém a instância de proxy operacional.

Tratamento de erros

Se ocorrer um erro durante a instanciação, Create fornece através do ara::core::Result um código de erro do tipo ara::com::ComErrc [SWS_CM_10438]:

  • ComErrc::kServiceNotAvailable: O serviço não está mais disponível após ter sido oferecido anteriormente via OfferService().
  • ComErrc::kCommunicationFailure: O binding de rede relata um erro de comunicação recuperável ou a falha de uma conexão segura.

Ambos os erros apresentam uma semântica de rollback [SWS_CM_10438]. Em caso de erros estruturais ou relacionados à segurança, aplicam-se violações especificadas (Violations): se o handle fornecido for nulo ou estiver corrompido, ocorre uma ErroneousServiceHandleViolation. Se faltarem ao processo chamador as permissões necessárias para a instância no âmbito do Grant Enforcement, a requisição é rejeitada e tratada como InsufficientPermissionsViolation (SWS CommunicationManagement §8 «Security», [SWS_CM_10438]).

Simultaneidade e condições marginais

Interpretação: Como Create opera de forma síncrona e vincula recursos de comunicação, a chamada deve ser reentrante para handles diferentes, mas não deve ser executada em loops hard real-time de tempo crítico devido a possíveis inicializações de rede. Pergunta Q-f7ba23670f562788 (aberta)

Este texto foi gerado por um sistema de IA com base na especificação AUTOSAR R25-11.

Guia do implementador em breve (complexidade 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#e659befc
Content hash
e659befc
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 1c6c926e4b24 Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método estático FindService da classe de proxy serve para a localização síncrona de instâncias de serviço disponíveis com base num ara::com::InstanceIdentifier ([SWS_CM_00122]). A chamada devolve o resultado imediatamente como ara::core::Result, o qual contém um ara::com::ServiceHandleContainer em caso de execução bem-sucedida ([SWS_CM_00122]). Este contentor — tipicamente implementado como ara::core::Vector ([SWS_CM_00304]) — pode estar vazio, conter um único handle de instância ou múltiplos handles, dependendo do estado atual de disponibilização (ARAComAPI §6.5 «Service Discovery»).

Em caso de erro, o ara::core::Result devolve um código de erro de ara::com::ComErrc, nominalmente ComErrc::kCommunicationFailure, se o binding de rede comunicar um erro de transmissão recuperável ou um problema na comunicação segura ([SWS_CM_00122]). Além disso, o acesso está sujeito a verificação de permissões; permissões insuficientes resultam numa InsufficientPermissionsViolation ([SWS_CM_00122]).

Relativamente ao fluxo e à concorrência, aplicam-se as seguintes condições:

  • Contexto de chamada e sincronicidade: Como a pesquisa é executada imediatamente, apenas são encontradas as instâncias para as quais OfferService() foi previamente chamado no lado do servidor (ARAComAPI §6.5 «Service Discovery»).
  • Segurança contra exceções e reentrância: A função está especificada como noexcept e exception-safe ([SWS_CM_00122]). Como o método é estático e não requer estado de objeto mutável, deverá poder ser chamado de forma reentrante e segura para threads. Pergunta Q-3228cc998c4a737e (aberta)
  • Processamento posterior: Os handles encontrados servem para a instanciação de objetos de proxy através do construtor Proxy(const HandleType &handle) ([SWS_CM_00131]). Para uma pesquisa baseada em modelo, está alternativamente disponível a sobrecarga com ara::core::InstanceSpecifier ([SWS_CM_00622]).

Esta nota de utilização foi gerada por uma IA com base na especificação AUTOSAR R25-11.

Guia do implementador em breve (complexidade 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#14f3e6d7
Content hash
14f3e6d7
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 4b1386a8f38a Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

A função estática FindService da classe de proxy serve, de acordo com [SWS_CM_00622], para a localização síncrona de instâncias de serviço disponíveis com base num ara::core::InstanceSpecifier com retorno imediato («immediately returned request»). O pré-requisito para a localização é que a respetiva instância de skeleton de serviço tenha sido previamente disponibilizada por meio de OfferService() (ARAComAPI p. 103 «Figure 6.5: Service Discovery»).

Valores de retorno e interação

Como resultado, a chamada retorna um ara::core::Result com um ara::com::ServiceHandleContainer em conformidade com [SWS_CM_00622], que por padrão se baseia em ara::core::Vector [SWS_CM_00304]. Este contentor pode estar vazio, conter um único handle ou múltiplas instâncias encontradas (ARAComAPI p. 103 «Figure 6.5: Service Discovery»). Os handles de serviço apurados são seguidamente passados ao construtor para instanciação do objeto de proxy [SWS_CM_00131]. Para uma pesquisa orientada a eventos e assíncrona com notificação, está disponível em alternativa StartFindService [SWS_CM_00623], enquanto para identificadores de instância é utilizada a sobrecarga de [SWS_CM_00122].

Tratamento de erros e condições de contorno

A função está declarada como noexcept e é considerada segura contra exceções («exception safe») de acordo com [SWS_CM_00622]. Em caso de erro, o objeto Result contém o código de erro ComErrc::kCommunicationFailure, por exemplo em caso de anomalias de comunicação do binding de rede [SWS_CM_00622]. Além disso, [SWS_CM_00622] define violações de modelo e de permissões tais como InstanceSpecifierMappingIntegrityViolation, PortInterfaceMappingViolation, ProcessMappingViolation, InstanceSpecifierAlreadyInUseViolation bem como InsufficientPermissionsViolation.

Interpretação: Devido ao retorno síncrono e imediato, o método deverá ser adequado primariamente para fases iniciais de inicialização ou polling direcionado, desde que não seja necessária uma monitorização contínua via callback. Pergunta Q-ea5b242a6fe41d20 (aberta)

Esta nota de utilização foi gerada por uma IA com base nos dados de especificação do AUTOSAR Adaptive R25-11.

Guia do implementador em breve (complexidade 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#d7832d7a
Content hash
d7832d7a
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

função 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#3bf730ed
Content hash
3bf730ed
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

função 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#1932272c
Content hash
1932272c
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

função 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)

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 664b77b81789 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

usar

O construtor explícito <SI>Proxy instancia a classe proxy de serviço específica de tipo no namespace <SI-Namespace>::proxy [SWS_CM_00131]. No âmbito do padrão proxy-skeleton, este objeto gerado atua no lado do consumidor do serviço como fachada local, que encaminha chamadas de método para a implementação real do serviço ARAComAPI Figure 5.1 «Proxy Skeleton Pattern».

Para a construção, é passada como parâmetro uma referência para um HandleType válido [SWS_CM_00131]. Este identificador deve ter sido obtido previamente por meio de mecanismos de Service Discovery – seja de forma síncrona por meio de FindService() [SWS_CM_00122] ou de forma assíncrona por meio do callback registrado de StartFindService() [SWS_CM_00123].

Tratamento de erros

A construção não é segura contra exceções (not exception safe) [SWS_CM_00131]. Se o serviço referenciado não puder ser alcançado, é disparada uma ara::com::ComException conforme ara::com::ComErrc::kServiceNotAvailable [SWS_CM_00131]. Além disso, estão definidas as seguintes violações:

  • ErroneousServiceHandleViolation: ocorre quando o objeto HandleType passado é nulo ou corrompido [SWS_CM_00131].
  • InsufficientPermissionsViolation: ocorre quando a criação é negada pela verificação de permissões (Grant Enforcement) [SWS_CM_00131].

Restrições e ciclo de vida

Para a classe proxy, o construtor de cópia está explicitamente excluído (=delete) [SWS_CM_00136]. O repasse da instância é permitido exclusivamente por meio do construtor de movimentação (Move Constructor), que também está especificado como não seguro contra exceções [SWS_CM_00137]. Em tempo de execução, o gerenciamento de comunicação atualiza automaticamente em segundo plano o endereçamento da camada de transporte da instância proxy existente, após criação bem-sucedida, em caso de falha temporária e redisponibilização do serviço de destino ARAComAPI Figure 6.1 «Auto Updating of Proxy Instance».

Esta nota de uso foi gerada automaticamente com base na especificação AUTOSAR Adaptive R25-11.

Guia do implementador em breve (complexidade 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#97fe633c
Content hash
97fe633c
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

função 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#d44ba31f
Content hash
d44ba31f
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

função 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#6972af2e
Content hash
6972af2e
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

função Proxy [SWS_CM_99444] Upstream: RS_CM_00102, RS_AP_00114

~<SI>Proxy ();

Destruction of a Proxy

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: c536b9aecd57 Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O destrutor ~<SI>Proxy () encerra o ciclo de vida de uma instância de proxy de serviço e liberta os recursos locais associados [SWS_CM_99444]. Um proxy de serviço serve, do lado do consumidor, como uma fachada local para a interação com uma implementação de serviço potencialmente remota e encaminha chamadas ARAComAPI §5.1 «Proxy Skeleton Pattern». O objeto de proxy é previamente instanciado através de um handle de serviço determinado [SWS_CM_00131], o qual foi disponibilizado por funções de Service Discovery como FindService [SWS_CM_00122].

Para a destruição e o comportamento em tempo de execução aplicam-se as seguintes diretrizes e condições de contorno:

  • Ciclo de vida e semântica: a destruição ocorre de forma síncrona ao sair do âmbito de validade ou mediante a eliminação explícita da instância. Embora o construtor de cópia da classe de proxy esteja eliminado [SWS_CM_00136], o objeto pode ser movido através da semântica de movimento antes da sua destruição [SWS_CM_00137].
  • Segurança face a exceções: o destrutor está especificado como not exception safe [SWS_CM_99444].
  • Pré-condições e comportamento de erro: se a pré-condição [SWS_CM_00087] for violada, tal resulta num DanglingSamplesViolation [SWS_CM_99444]. (Interpretação: antes da chamada do destrutor, presume-se que todas as referências de amostras ou ponteiros de dados detidos pelo consumidor devam ser libertados para evitar referências inválidas.) Pergunta Q-5488797b732d9be6 (aberta)
  • Interação: se forem utilizadas pesquisas assíncronas de serviços, estas devem, se necessário, ser terminadas através de StopFindService antes da libertação do contexto de utilização [SWS_CM_00125]. Além disso, os manipuladores de tratamento de erros registados para eventos, triggers e campos podem ser previamente reinicializados [SWS_CM_00105] [SWS_CM_00108] [SWS_CM_00126].

Esta nota de uso foi gerada automaticamente com base nos dados da especificação.

Guia do implementador em breve (complexidade 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#d471e443
Content hash
d471e443
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 0c76c8d95c3b Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método estático StartFindService [SWS_CM_00123] da classe Proxy inicia a busca assíncrona por instâncias de serviço com base em um ara::com::InstanceIdentifier sob registro de um callback handler (ARAComAPI §6.5 «Service Discovery»). À chamada são passados um ara::com::FindServiceHandler bem como o ara::com::InstanceIdentifier procurado [SWS_CM_00123].

Em caso de sucesso, a função retorna um ara::core::Result com um ara::com::FindServiceHandle [SWS_CM_00123]. Esse identificador representa a requisição de busca ativa e é estritamente necessário para encerrar novamente o monitoramento da disponibilidade do serviço bem como chamadas subsequentes do handler mais tarde por meio de StopFindService [SWS_CM_00125].

Se ocorrer um problema de comunicação durante o estabelecimento da conexão, o método retorna no ara::core::Result o código de erro ComErrc::kCommunicationFailure [SWS_CM_00123]. Se a instância de callable passada for inválida ou nula, isso é avaliado como InvalidHandlerViolation; permissões de acesso ausentes levam a uma InsufficientPermissionsViolation [SWS_CM_00123].

Assim que uma instância de serviço correspondente se torna disponível no sistema, o gerenciamento de comunicação chama o handler registrado com os respectivos service handles [SWS_CM_00123]. Com base em um HandleType reportado, a aplicação pode criar uma instância de proxy concreta através do método named constructor Create [SWS_CM_10438]. Interpretação: o handler deve ser executado de forma assíncrona em uma thread do gerenciamento de comunicação, razão pela qual o acesso a recursos compartilhados no handler deve ser realizado de forma thread-safe. Pergunta Q-9dc570d7e65fc808 (aberta) Para a busca por meio de um identificador baseado em modelo, StartFindService com InstanceSpecifier está disponível como alternativa [SWS_CM_00623].

Esta nota de utilização baseia-se nas definições da especificação AUTOSAR Adaptive e foi verificada editorialmente.

Guia do implementador em breve (complexidade 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#a196e7d9
Content hash
a196e7d9
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 40cd4cda442b Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método estático StartFindService da classe de proxy inicia a busca contínua por instâncias de serviço com base em um ara::core::InstanceSpecifier modelado [SWS_CM_00623]. Durante a chamada, são passados o InstanceSpecifier e uma função de callback do tipo ara::com::FindServiceHandler [SWS_CM_00623]. Como valor de retorno, a função fornece um ara::core::Result<ara::com::FindServiceHandle> [SWS_CM_00623], que, em caso de registro bem-sucedido, disponibiliza um manipulador de busca (handle) para o gerenciamento da busca.

O tratamento de erros ocorre por meio do ara::core::Result retornado. Se ocorrer um erro de comunicação recuperável ou um erro de comunicação segura na vinculação de rede, o resultado conterá o código de erro ComErrc::kCommunicationFailure [SWS_CM_00623]. Além disso, violações específicas são especificadas: InvalidHandlerViolation, caso o manipulador fornecido seja inválido ou nulo, InsufficientPermissionsViolation em caso de permissões ausentes por Grant Enforcement, bem como violações de modelagem como InstanceSpecifierMappingIntegrityViolation ou PortInterfaceMappingViolation [SWS_CM_00623].

Em relação à concorrência e condições de contorno, a função é declarada como noexcept e especificada como segura contra exceções [SWS_CM_00623]. Presume-se que a execução do manipulador registrado ocorra de forma assíncrona pelo gerenciamento de comunicação, assim que instâncias de serviço correspondentes forem detectadas no sistema. Pergunta Q-79fb3ff78d517714 (aberta)

Na interação com interfaces relacionadas, aplicam-se os seguintes pontos:

  • O ara::com::FindServiceHandle retornado deve ser retido para encerrar a busca em andamento via StopFindService [SWS_CM_00125] e interromper o recebimento de notificações adicionais.
  • Os handles (HandleType) fornecidos por meio do callback servem tipicamente para instanciar o objeto proxy via o método fábrica Create [SWS_CM_10438].
  • Como alternativa à busca por meio de um InstanceSpecifier, uma busca também pode ser iniciada com um ara::com::InstanceIdentifier [SWS_CM_00123].

Este texto foi criado por uma IA e baseia-se no estado de especificação do AUTOSAR R25-11.

Guia do implementador em breve (complexidade 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#6dd68a2d
Content hash
6dd68a2d
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

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 186ab9eb37c5 Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método SetServiceStateChangeHandler serve, numa instância de proxy, para registar uma função de callback para monitorização de alterações de disponibilidade do respetivo serviço ([SWS_CM_01074], SWS CommunicationManagement §8.3.8.2.4.6 «SetServiceStateChangeHandler(ara::com::ServiceStateHandler)»). A gestão de comunicação chama este handler assim que o estado da disponibilidade do serviço (ServiceState) se altera ([SWS_CM_01074]).

Como parâmetro é passado um objeto de função do tipo ara::com::ServiceStateHandler, o qual está especificado como std::function<void(ServiceState)> ([SWS_CM_01072]). A função não possui valor de retorno. Um handler já registado pode ser substituído durante o tempo de execução através de nova chamada ([SWS_CM_01074]).

No que diz respeito ao tratamento de erros, a função está declarada como segura contra exceções (noexcept) ([SWS_CM_01074]). Se o callable passado não existir ou for nulo, verifica-se a violação InvalidHandlerViolation ([SWS_CM_01074]).

Quanto ao ambiente de execução, [SWS_CM_01074] representa a interface base. Como aqui não pode ser passado nenhum executor, o callback deverá presumivelmente ser executado no contexto de thread interno da gestão de comunicação. Caso seja necessária uma execução num contexto de aplicação específico, está disponível em alternativa a variante de template sobrecarregada com um executor de acordo com [SWS_CM_01076] (SWS CommunicationManagement §8.3.8.2.4.5 «SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&)»). Pergunta Q-7833435e7aa1da9f (aberta)

Este texto foi criado por uma IA. Não substitui a consulta das especificações AUTOSAR subjacentes.

Guia do implementador em breve (complexidade 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#9e6fbabf
Content hash
9e6fbabf
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

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 7e2d99ac7d24 Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Utilização e contexto de chamada

O método de template SetServiceStateChangeHandler serve, na classe de proxy gerada <SI-Namespace>::proxy::<SI>Proxy, para o registro de um callback para monitoramento da disponibilidade do serviço [SWS_CM_01076]. A função recebe dois parâmetros AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.5 «SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&)»:

  • handler: Um functor do tipo ara::com::ServiceStateHandler (definido como std::function<void(ServiceState)>), que é chamado a cada alteração do status de disponibilidade [SWS_CM_01072], [SWS_CM_01074].
  • executor: Um contexto de execução do tipo de template ExecutorT conforme [SWS_CM_11360], no qual o tratador registrado é executado [SWS_CM_01076].

A função não possui valor de retorno (void) [SWS_CM_01076].

Tratamento de erros e segurança de exceções

A função é declarada como noexcept e especificada como segura contra exceções (exception safe) [SWS_CM_01076]. Caso o tratador chamável fornecido não exista ou seja null, é disparada uma InvalidHandlerViolation [SWS_CM_01076].

Simultaneidade e restrições

Um tratador registrado pode ser sobrescrito em tempo de execução [SWS_CM_01074]. Como a execução ocorre por meio do objeto executor fornecido [SWS_CM_01076], a notificação provavelmente é processada de forma assíncrona no contexto de thread ou dispatch disponibilizado pelo usuário. Pergunta Q-349c5224c3b9cc20 (aberta)

Interação

O método estende a variante elementar [SWS_CM_01074] com a definição explícita do contexto de execução [SWS_CM_01076]. Para a inclusão é necessário o cabeçalho <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h, enquanto o tipo do tratador é originário de ara/com/types.h [SWS_CM_01072].

Esta nota de utilização foi criada de forma automatizada com base na especificação AUTOSAR AP Release R25-11.

Guia do implementador em breve (complexidade 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#f04058a7
Content hash
f04058a7
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 966a42ce08ac Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método de modelo estático StartFindService inicia a monitorização assíncrona em segundo plano para localização de instâncias de um serviço com base num ara::com::InstanceIdentifier ([SWS_CM_11352], EXP_ARAComAPI §5.3.3 «Proxy Class API’s»). Além da instância de destino (instance de acordo com [SWS_CM_00122]), são registados uma função de callback (handler de acordo com [SWS_CM_00123]) bem como um contexto de execução (executor do tipo de modelo ExecutorT de acordo com [SWS_CM_11360]) ([SWS_CM_11352]). As notificações de callback deverão ser processadas no contexto de thread ou tarefa do executor transmitido ([SWS_CM_11352]). Pergunta Q-1db520123c1e49a4 (aberta)

Como valor de retorno, a chamada fornece um ara::com::FindServiceHandle ([SWS_CM_11352]). Este identificador identifica a atividade de pesquisa em curso e é necessário para encerrar explicitamente a atividade em segundo plano mais tarde através de [SWS_CM_00125] (StopFindService) (EXP_ARAComAPI §5.3.3 «Proxy Class API’s»). Os identificadores de serviço (HandleType) obtidos através do callback registado servem posteriormente para a construção das instâncias de proxy associadas ([SWS_CM_00131]).

A função está declarada como noexcept e especificada como segura contra exceções (exception safe) ([SWS_CM_11352]). Estão definidas as seguintes violações em tempo de execução (Violations):

  • InvalidHandlerViolation: Ocorre se a função manipuladora transmitida for inválida ou corresponder a null ([SWS_CM_11352]).
  • InsufficientPermissionsViolation: Ocorre se o acesso for recusado pelo sistema de autorizações (Grant Enforcement) ([SWS_CM_11352]).

Se, em vez disso, um serviço dever ser pesquisado através de um ara::core::InstanceSpecifier baseado em modelo, está disponível como alternativa a variante da função [SWS_CM_11365].

Este texto foi criado e com curadoria por uma IA. Todas as informações baseiam-se em AUTOSAR Adaptive R25-11.

Guia do implementador em breve (complexidade 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#8f270da1
Content hash
8f270da1
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: cdf801d69b3d Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

A função de modelo estática StartFindService inicia a pesquisa contínua e assíncrona de instâncias de serviço com base num ara::core::InstanceSpecifier mediante o registo de um manipulador de notificação num contexto de execução transmitido [SWS_CM_11365]. Ao contrário de pesquisas pontuais síncronas, despoleta uma atividade em segundo plano para monitorização da disponibilidade do serviço e retorna um ara::com::FindServiceHandle EXP_ARAComAPI §5.3 «Proxy Class APIs».

Parâmetros e execução

A função recebe três parâmetros [SWS_CM_11365]:

  • handler: Função de callback do tipo ara::com::FindServiceHandler de acordo com [SWS_CM_00123], que é invocada em caso de alterações da disponibilidade da instância.
  • instance: O ara::core::InstanceSpecifier a pesquisar de acordo com [SWS_CM_00123].
  • executor: Um contexto de execução do tipo de modelo ExecutorT de acordo com [SWS_CM_11360]. Interpretação: o argumento de modelo ExecutorT deverá definir em que contexto de thread ou de tarefas o callback registado é executado. Pergunta Q-6d46f67d536a391e (aberta)

Tratamento de erros e condições de contorno

A assinatura está declarada como noexcept e especificada como exception safe [SWS_CM_11365]. Especificativamente estão definidas violações funcionais (Violations): InstanceSpecifierMappingIntegrityViolation (resolução no contexto do executável falhou ou não é PortPrototype), PortInterfaceMappingViolation e ProcessMappingViolation (mapeamentos de PortInterface não coincidentes), InstanceSpecifierAlreadyInUseViolation, InvalidHandlerViolation (manipulador inválido ou inexistente) bem como InsufficientPermissionsViolation em caso de falta de autorização de acesso [SWS_CM_11365].

Interação

O FindServiceHandle obtido serve para terminar de forma controlada a monitorização contínua em segundo plano mediante a passagem para StopFindService [SWS_CM_00125]. Os identificadores reportados ao manipulador são utilizados para instanciar proxies de serviço concretos por meio de Proxy(handle) [SWS_CM_00131]. Para pesquisas por meio de ara::com::InstanceIdentifier, existe uma sobrecarga alternativa [SWS_CM_11352].

Este texto foi criado por uma IA; não substitui o estudo da especificação AUTOSAR subjacente.

Guia do implementador em breve (complexidade 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#162d239b
Content hash
162d239b
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

função 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

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 5a542928a936 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

A função estática StopFindService da classe proxy termina uma pesquisa assíncrona de serviço previamente iniciada com StartFindService e interrompe a receção de notificações adicionais para o identificador (handle) [SWS_CM_00125] transmitido. Deste modo, a atividade em segundo plano em curso para monitorização da disponibilidade do serviço é cessada pelo binding técnico AP EXP ARAComAPI §5.3 «Proxy Class API’s».

Utilização e semântica

Esta nota de utilização foi gerada por uma IA com base nos documentos de especificação para AUTOSAR Adaptive R25-11.

Guia do implementador em breve (complexidade 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#25381db7
Content hash
25381db7
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

função UnsetServiceStateChangeHandler [SWS_CM_01075]

void UnsetServiceStateChangeHandler () noexcept;
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: bd7a765f57bb Procedência Perguntas em aberto (2)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

A função-membro UnsetServiceStateChangeHandler é parte integrante da classe de proxy gerada no namespace <SI-Namespace>::proxy::<SI>Proxy de acordo com [SWS_CM_01075] (AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.12 «UnsetServiceStateChangeHandler»). É incluída através do cabeçalho #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h".

No que diz respeito à utilização, comportamento e concorrência, aplicam-se as seguintes definições:

  • Utilização: o método possui a assinatura void UnsetServiceStateChangeHandler() noexcept;. Não recebe parâmetros e não retorna nenhum valor. Interpretação: de acordo com o identificador e a referência a [SWS_CM_01074], a chamada serve para reinicializar ou cancelar o registo de um manipulador de callback previamente registado para alterações do estado do serviço na instância de proxy. Pergunta Q-6eb71298a6f37ad9 (aberta)
  • Tratamento de erros e segurança face a exceções: a operação é declarada como noexcept e especificada como exception safe ([SWS_CM_01075]). Não lança exceções e não reporta códigos de erro ao chamador.
  • Interação e condições de contorno: a semântica funcional remete para a definição em [SWS_CM_01074]. Interpretação: o cancelamento do registo deverá produzir efeitos de forma síncrona, de modo que, após o retorno da chamada da função, não sejam entregues mais transições de estado através do callback anterior. Pergunta Q-31348a50d9be537d (aberta)

Esta nota de uso foi gerada por uma IA com base na especificação AUTOSAR.

Guia do implementador em breve (complexidade 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#8c165e6a
Content hash
8c165e6a
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

função 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#f68fcb8b
Content hash
f68fcb8b
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

função 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#236416c7
Content hash
236416c7
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

Documentação das constantes / variáveis

variável <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#3dcd9c7c
Content hash
3dcd9c7c
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

variável <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#0f691ab2
Content hash
0f691ab2
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

variável <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#f42d70c5
Content hash
f42d70c5
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