DEENESPTFRRUARHIKOZHNL

类 <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

用户指南人工智能生成

用作客户端应用程序的类型化代理,用于服务发现以及与服务实例交互。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cc07b1e12dfe 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用作客户端应用程序的类型化代理,用于服务发现以及与服务实例交互。

类 <SI>Proxy 用作客户端应用程序针对 Service Interface 的类型化代理,用于传输方法调用、事件和字段 [SWS_CM_99447]。在成功进行服务发现后,优先通过无异常的工厂方法 Create() 创建该实例 [SWS_CM_10438]。该类具有仅移动语义,并要求在其析构前完全释放所有引用的数据样本,以避免前置条件违规 [SWS_CM_99444]。

上下文

生成的类 <SI>Proxy 在 AUTOSAR Adaptive Platform 的通信架构中充当已定义 Service Interface 的类型化客户端端点。它封装了客户端应用程序与该服务的远程或本地实例之间的交互。交互伙伴包括使用它的软件组件、代理实例本身以及控制网络绑定和消息传输的基础通信管理(ara::com)。通过专用数据元素 events::<Event> [SWS_CM_99445]、fields::<Field> [SWS_CM_99446] 和 methods::<Method> [SWS_CM_99447],代理提供对服务接口的事件、字段和方法的直接访问。

client 客户端应用 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

上下文图:Service Interface 代理在客户端应用程序与通信管理之间的集成。来源:[SWS_CM_99445]、[SWS_CM_99446]、[SWS_CM_99447]。

生命周期

代理实例的创建以先前成功执行的服务发现为前提,该发现提供有效的句柄实例(HandleType)。首选创建方式是根据命名构造函数惯用法 [SWS_CM_10438],通过静态工厂方法 Create() 无异常地创建,该方法返回包含代理或错误代码的 ara::core::Result。或者,存在一个显式构造函数 <SI>Proxy(handle),它被指定为非异常安全,在出错时可能抛出 ara::com::ComException [SWS_CM_00131]。用于初始化的句柄可随时通过 GetHandle() 查询 [SWS_CM_10383]。

在所有权关系方面,代理具有仅移动语义:复制构造函数 [SWS_CM_00136] 和复制赋值运算符 [SWS_CM_11551] 已被显式删除。实例的转移仅允许通过移动构造函数 [SWS_CM_00137] 或异常安全的移动赋值运算符 [SWS_CM_11552] 进行。在生命周期内,可以通过 GetServiceState() 主动确定服务的可用性状态 [SWS_CM_01073]。或者,SetServiceStateChangeHandler() 允许在状态发生变化时注册回调函数 [SWS_CM_01074],该函数可选择通过 ExecutorT 绑定到用户定义的上下文 [SWS_CM_01076]。处理程序注册可通过 UnsetServiceStateChangeHandler() 注销 [SWS_CM_01075]。

析构通过析构函数 ~<SI>Proxy() 进行 [SWS_CM_99444]。该析构函数未声明为异常安全,并要求强制性前置条件:在析构前,客户端不得再持有未完成的数据样本,以避免违规 [SWS_CM_99444]。

使用路径

典型使用路径分为四个阶段:

  1. 服务发现:客户端寻找服务实例,既可以通过带有 InstanceIdentifier [SWS_CM_00122] 或基于模型的 InstanceSpecifier [SWS_CM_00622] EXP ARAComAPI §2 “Service Interface Proxy” 的 FindService() 同步进行,也可以通过 StartFindService() [SWS_CM_00123] [SWS_CM_00623] 异步进行。对于异步发现,还可以额外传递 ExecutorT [SWS_CM_11352] [SWS_CM_11365] EXP ARAComAPI §2 “Service Interface Proxy”。在找到所需实例后,必须通过 StopFindService() 停止异步发现 [SWS_CM_00125] EXP ARAComAPI §2 “Service Interface Proxy”。
  2. 实例化:从确定的 ServiceHandleContainer 中选择一个句柄,并传递给 Create() 以创建代理实例 [SWS_CM_10438]。解释:相比于会抛出异常的构造函数,工厂方法 Create() 应当是主要的实例化路径。 问题 Q-cf53ee7076736baf (未决)
  3. 交互:应用程序通过方法调用(methods::<Method>)[SWS_CM_99447]、事件监控(events::<Event>)[SWS_CM_99445] 或字段访问(fields::<Field>)[SWS_CM_99446] 与服务进行交互。
  4. 清理:交互完成后,代理实例被析构,此时必须确保不残留无效的样本引用 [SWS_CM_99444]。
服务搜索和代理交互流程Client<SI>ProxyCommunicationManagementUse Case: 1. DienstsucheFindService(instance)Dienstinstanzen ermittelnServiceHandleContainerResult<ServiceHandleContainer>Use Case: 2. InstanziierungCreate(handle)Result<<SI>Proxy>Use Case: 3. Dienstnutzungmethods::<Method>()发送方法调用Antwortdaten返回值Use Case: 4. 销毁~<SI>Proxy()

时序图:服务发现、代理实例化和方法交互的典型流程。来源:[SWS_CM_00122]、[SWS_CM_10438]、[SWS_CM_99447]、[SWS_CM_99444]。

错误场景

错误主要通过 ara::core::Result 中的错误类型 ara::com::ComErrc 返回:

此外,还指定了以下违规(Violations):

  • ErroneousServiceHandleViolation:传递给 Create() 或构造函数的句柄无效或已损坏 [SWS_CM_10438] [SWS_CM_00131]。
  • InsufficientPermissionsViolation:在服务发现或实例化期间由于权限强制执行(Grant Enforcement)而拒绝访问 [SWS_CM_00122] [SWS_CM_10438]。
  • InvalidHandlerViolation:向 StartFindService() [SWS_CM_00123] 或 SetServiceStateChangeHandler() [SWS_CM_01074] 传递了无效或空的回调。
  • InstanceSpecifierMappingIntegrityViolation、PortInterfaceMappingViolation、ProcessMappingViolation、InstanceSpecifierAlreadyInUseViolation:在基于模型的发现调用中出现,当 InstanceSpecifier 的分配错误或已被使用时 [SWS_CM_00622] [SWS_CM_00623]。
  • DanglingSamplesViolation:在仍存在数据样本引用的情况下析构代理 [SWS_CM_99444]。

本指南基于 Adaptive Platform Release R25-11 的 AUTOSAR 规范,并总结了 Service Interface 代理的通信机制。

成员图

类图

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

详细视图

请在大纲中选择一个条目。

方法

Create 函数

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 函数 2

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

重载 FindService 2
GetHandle 函数

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 函数 4

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

重载 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 函数 2

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

重载 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.

重载 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

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

重载 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;

运算符

operator= 函数 2

Copy assignment constructor deletion

重载 = 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

常量

<Event> 变量

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

events::<Event> <Event>;
<Field> 变量

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

fields::<Field> <Field>;
<Method> 变量

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

methods::<Method> <Method>;

嵌套类型

方法文档

函数 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.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7ecc1087a58a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与语义

静态工厂方法Create用于根据[SWS_CM_10438]按照具名构造函数惯用法(Named-Constructor-Idiom)无异常地创建代理实例(<SI>Proxy)。它需要一个事先根据[SWS_CM_00131]确定的服务句柄作为参数handle。该调用同步进行,并被声明为noexcept。结果在ara::core::Result中返回,在成功情况下,该对象包含就绪可用的代理实例。

错误处理

如果在实例化期间发生错误,Create将通过ara::core::Result返回类型为ara::com::ComErrc的错误代码[SWS_CM_10438]:

  • ComErrc::kServiceNotAvailable:服务在先前通过OfferService()提供后不再可用。
  • ComErrc::kCommunicationFailure:网络绑定报告可恢复的通信错误或安全连接建立失败。

这两种错误都具有回滚语义[SWS_CM_10438]。对于结构性或安全性相关错误,适用的违规(Violations)规则为:如果传入的句柄为 null 或损坏,则存在ErroneousServiceHandleViolation。如果调用进程在授权强制执行(Grant Enforcement)框架内缺少该实例所需的权限,则请求将被拒绝并被视为InsufficientPermissionsViolation(SWS CommunicationManagement §8 “Security”、[SWS_CM_10438])。

并发性与边界条件

解释:由于Create同步工作并绑定通信资源,因此针对不同句柄的调用可能是可重入的,但由于可能涉及网络初始化,不应在时间关键的硬实时循环中执行。 问题 Q-f7ba23670f562788 (未决)

本文由 AI 系统基于 AUTOSAR R25-11 规范生成。

实现者指南即将推出(复杂度 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#25181cbd
Content hash
25181cbd
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1c6c926e4b24 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

Proxy 类的静态方法 FindService 用于根据 ara::com::InstanceIdentifier 同步查找可用的服务实例([SWS_CM_00122])。调用立即将结果作为 ara::core::Result 返回,成功执行时该结果包含一个 ara::com::ServiceHandleContainer([SWS_CM_00122])。此容器(通常实现为 ara::core::Vector([SWS_CM_00304]))根据当前的提供状态可以为空、包含单个实例句柄或包含多个句柄(ARAComAPI §6.5 “Service Discovery”)。

在发生错误时,当网络绑定报告可恢复的传输错误或安全通信问题时,ara::core::Result 会返回来自 ara::com::ComErrc 的错误代码,即 ComErrc::kCommunicationFailure([SWS_CM_00122])。此外,该访问受权限检查约束;权限不足会导致 InsufficientPermissionsViolation([SWS_CM_00122])。

关于流程和并发性,适用以下条件:

  • 调用上下文与同步性:由于搜索是立即执行的,因此只能找到先前在服务器端为其调用过 OfferService() 的实例(ARAComAPI §6.5 “Service Discovery”)。
  • 异常安全性与可重入性:该函数被指定为 noexcept 且为异常安全([SWS_CM_00122])。由于该方法是静态的且不需要可变对象状态,因此推测它可以可重入且线程安全地被调用。 问题 Q-3228cc998c4a737e (未决)
  • 后续处理:找到的句柄用于通过构造函数 Proxy(const HandleType &handle) 实例化 Proxy 对象([SWS_CM_00131])。对于基于模型的搜索,备选提供了带有 ara::core::InstanceSpecifier 的重载([SWS_CM_00622])。

本使用说明由人工智能基于 AUTOSAR R25-11 规范生成。

实现者指南即将推出(复杂度 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#3cf7a3b8
Content hash
3cf7a3b8
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4b1386a8f38a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CM_00622],Proxy 类的静态函数 FindService 用于基于 ara::core::InstanceSpecifier 同步查找可用服务实例并立即返回(“immediately returned request”)。能够查找到的前提是,相应的服务 Skeleton 实例此前已通过 OfferService() 提供(ARAComAPI 第103页 “Figure 6.5: Service Discovery”)。

返回值与相互协作

作为结果,该调用根据 [SWS_CM_00622] 返回一个带有 ara::com::ServiceHandleContainer 的 ara::core::Result,其默认基于 ara::core::Vector [SWS_CM_00304]。该容器可以为空,包含单个句柄,或包含多个找到的实例(ARAComAPI 第103页 “Figure 6.5: Service Discovery”)。随后,获取的服务句柄被传递给构造函数以实例化 Proxy 对象 [SWS_CM_00131]。对于带通知的事件驱动异步搜索,可备选使用 StartFindService [SWS_CM_00623],而对于实例标识符,则使用来自 [SWS_CM_00122] 的重载。

错误处理与边界条件

该函数被声明为 noexcept,且根据 [SWS_CM_00622] 视为异常安全(“exception safe”)。在发生错误时,Result 对象包含错误代码 ComErrc::kCommunicationFailure,例如在网络绑定出现通信故障时 [SWS_CM_00622]。此外,[SWS_CM_00622] 还定义了模型和权限违规,如 InstanceSpecifierMappingIntegrityViolation、PortInterfaceMappingViolation、ProcessMappingViolation、InstanceSpecifierAlreadyInUseViolation 以及 InsufficientPermissionsViolation。

Interpretation: 鉴于同步和立即可返回的特性,该方法可能主要适用于初始初始化阶段或有针对性的轮询,前提是不需要通过回调进行持续观察。 问题 Q-ea5b242a6fe41d20 (未决)

本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 的规范数据生成。

实现者指南即将推出(复杂度 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#ef6352a2
Content hash
ef6352a2
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

函数 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#7c2642e1
Content hash
7c2642e1
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

函数 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#a8273e8f
Content hash
a8273e8f
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

函数 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)

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 664b77b81789 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

显式构造函数 <SI>Proxy 在命名空间 <SI-Namespace>::proxy 中实例化类型特定的服务 Proxy 类 [SWS_CM_00131]。在 Proxy-Skeleton 模式的框架下,此生成的对象在服务使用者端用作本地门面,将方法调用转发给实际的服务实现 ARAComAPI Figure 5.1 “Proxy Skeleton Pattern”。

为了构造,将对有效 HandleType 的引用作为参数传递 [SWS_CM_00131]。此标识符必须事先通过 Service Discovery 机制获取——无论是通过 FindService() 同步获取 [SWS_CM_00122],还是通过 StartFindService() 注册的回调异步获取 [SWS_CM_00123]。

错误处理

构造并非异常安全(not exception safe)[SWS_CM_00131]。如果无法访问引用的服务,将根据 ara::com::ComErrc::kServiceNotAvailable 触发 ara::com::ComException [SWS_CM_00131]。此外,还定义了以下违规情况:

  • ErroneousServiceHandleViolation:当传入的 HandleType 对象为 null 或损坏时发生 [SWS_CM_00131]。
  • InsufficientPermissionsViolation:当权限检查(Grant Enforcement)拒绝创建时发生 [SWS_CM_00131]。

限制与生命周期

对于 Proxy 类,拷贝构造函数被明确删除(=delete)[SWS_CM_00136]。实例的传递仅允许通过移动构造函数(Move Constructor)进行,该构造函数同样被指定为非异常安全 [SWS_CM_00137]。在成功创建后,如果目标服务暂时中断并恢复可用,通信管理会在运行时自动在后台更新现有 Proxy 实例的传输层寻址 ARAComAPI Figure 6.1 “Auto Updating of Proxy Instance”。

本使用说明基于 AUTOSAR 规范 R25-11 自动生成。

实现者指南即将推出(复杂度 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#e906dff6
Content hash
e906dff6
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

函数 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#63cffdb4
Content hash
63cffdb4
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

函数 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#23fcdfda
Content hash
23fcdfda
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

函数 Proxy [SWS_CM_99444] Upstream: RS_CM_00102, RS_AP_00114

~<SI>Proxy ();

Destruction of a Proxy

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c536b9aecd57 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

析构函数 ~<SI>Proxy () 结束服务代理实例的生命周期并释放关联的本地资源 [SWS_CM_99444]。服务代理在消费者端充当本地外观,用于与可能位于远程的服务实现进行交互并转发调用 ARAComAPI §5.1 “Proxy Skeleton Pattern”。代理对象此前通过解析出的服务句柄进行实例化 [SWS_CM_00131],该句柄由诸如 FindService 之类的服务发现函数提供 [SWS_CM_00122]。

对于销毁和运行时行为,适用以下规范和边界条件:

  • 生命周期与语义:销毁在离开作用域或显式删除实例时同步发生。虽然代理类的拷贝构造函数已被删除 [SWS_CM_00136],但对象在其析构之前可以通过移动语义进行移动 [SWS_CM_00137]。
  • 异常安全性:析构函数被指定为非异常安全(not exception safe)[SWS_CM_99444]。
  • 前置条件与错误行为:如果违反前置条件 [SWS_CM_00087],将导致 DanglingSamplesViolation [SWS_CM_99444]。(解释:在调用析构函数之前,推测可能必须释放消费者持有的所有样本引用或数据指针,以避免悬空引用。) 问题 Q-5488797b732d9be6 (未决)
  • 交互:如果使用了异步服务搜索,必要时应在释放使用上下文之前通过 StopFindService 终止搜索 [SWS_CM_00125]。此外,为事件、触发器和字段注册的错误处理程序可以预先重置 [SWS_CM_00105] [SWS_CM_00108] [SWS_CM_00126]。

本使用说明基于规范数据自动生成。

实现者指南即将推出(复杂度 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#ce537a77
Content hash
ce537a77
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0c76c8d95c3b 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

Proxy 类的静态方法 StartFindService [SWS_CM_00123] 通过注册回调处理程序(ARAComAPI §6.5 “Service Discovery”),基于 ara::com::InstanceIdentifier 启动对服务实例的异步搜索。向调用传递 ara::com::FindServiceHandler 以及所搜索的 ara::com::InstanceIdentifier [SWS_CM_00123]。

在成功情况下,该函数返回包含 ara::com::FindServiceHandle 的 ara::core::Result [SWS_CM_00123]。该标识符代表活动的搜索请求,并且是在稍后通过 StopFindService [SWS_CM_00125] 再次终止对服务可用性的监控以及后续处理程序调用所强制必需的。

如果在建立连接时发生通信问题,该方法在 ara::core::Result 中返回错误码 ComErrc::kCommunicationFailure [SWS_CM_00123]。如果传入的可调用对象实例无效或为空,这将被视为 InvalidHandlerViolation;缺少访问权限会导致 InsufficientPermissionsViolation [SWS_CM_00123]。

一旦匹配的服务实例在系统中变为可用,通信管理就会使用相应的服务句柄调用已注册的处理程序 [SWS_CM_00123]。基于所报告的 HandleType,应用程序可以通过具名构造函数方法 Create [SWS_CM_10438] 创建具体的 Proxy 实例。解释:处理程序大概率在通信管理的线程中异步执行,因此在处理程序中访问共享资源应以线程安全方式进行。 问题 Q-9dc570d7e65fc808 (未决)为了通过基于模型的标识符进行搜索,也可以使用带有 InstanceSpecifier 的 StartFindService 作为替代 [SWS_CM_00623]。

本使用说明基于 AUTOSAR Adaptive 规范的规定,并经过了编辑校对。

实现者指南即将推出(复杂度 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#eb5bbc9e
Content hash
eb5bbc9e
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 40cd4cda442b 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

Proxy 类的静态方法 StartFindService 基于建模的 ara::core::InstanceSpecifier [SWS_CM_00623] 启动对服务实例的持续搜索。调用时会传入 InstanceSpecifier 以及类型为 ara::com::FindServiceHandler 的回调函数 [SWS_CM_00623]。作为返回值,该函数提供一个 ara::core::Result<ara::com::FindServiceHandle> [SWS_CM_00623],其在成功注册时提供用于管理搜索的搜索句柄。

错误处理通过返回的 ara::core::Result 进行。如果在网络 Binding 时发生可恢复的通信错误或安全通信错误,结果将包含错误代码 ComErrc::kCommunicationFailure [SWS_CM_00623]。此外还指定了特定的违规行为:若传入的处理程序无效或为空则为 InvalidHandlerViolation,在授权强制执行(Grant Enforcement)导致权限缺失时为 InsufficientPermissionsViolation,以及建模违规如 InstanceSpecifierMappingIntegrityViolation 或 PortInterfaceMappingViolation [SWS_CM_00623]。

关于并发性和边界条件,该函数声明为 noexcept 并指定为异常安全 [SWS_CM_00623]。一旦在系统中检测到匹配的服务实例,注册的处理程序的执行大概率由通信管理异步进行。 问题 Q-79fb3ff78d517714 (未决)

在与相关接口的协作中,以下几点适用:

  • 返回的 ara::com::FindServiceHandle 必须予以保留,以便通过 StopFindService [SWS_CM_00125] 终止正在进行的搜索并停止接收进一步的通知。
  • 通过回调提供的句柄(HandleType)通常用于通过工厂方法 Create [SWS_CM_10438] 实例化 Proxy 对象。
  • 除了通过 InstanceSpecifier 搜索之外,也可以使用 ara::com::InstanceIdentifier 发起搜索 [SWS_CM_00123]。

本文由 AI 创建,基于 AUTOSAR R25-11 的规范状态。

实现者指南即将推出(复杂度 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#5a1953f3
Content hash
5a1953f3
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

函数 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.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 186ab9eb37c5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 SetServiceStateChangeHandler 用于在 Proxy 实例上注册回调函数,以监视相应服务的可用性变化([SWS_CM_01074]、SWS CommunicationManagement §8.3.8.2.4.6 “SetServiceStateChangeHandler(ara::com::ServiceStateHandler)”)。一旦服务可用性状态(ServiceState)发生改变,通信管理就会调用此处理程序([SWS_CM_01074])。

作为参数传递的是一个类型为 ara::com::ServiceStateHandler 的函数对象,该对象被指定为 std::function<void(ServiceState)>([SWS_CM_01072])。该函数没有返回值。在运行时允许通过重新调用来覆盖已注册的处理程序([SWS_CM_01074])。

在错误处理方面,该函数被声明为异常安全的(noexcept)([SWS_CM_01074])。如果传入的 Callable 不存在或为 null,则构成违规 InvalidHandlerViolation([SWS_CM_01074])。

关于执行环境,[SWS_CM_01074] 代表基础接口。由于此处无法传递 Executor,该回调大概会在通信管理的内部线程上下文中执行。 问题 Q-7833435e7aa1da9f (未决)如果需要在特定应用程序上下文中执行,可备选使用带有符合 [SWS_CM_01076] 的 executor 的重载模板变体(SWS CommunicationManagement §8.3.8.2.4.5 “SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&)”)。

本文件由 AI 生成。它不能替代对基础 AUTOSAR 规范的查阅。

实现者指南即将推出(复杂度 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#c9e0f289
Content hash
c9e0f289
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

函数 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.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7e2d99ac7d24 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与调用上下文

模板方法 SetServiceStateChangeHandler 用于在生成的Proxy类 <SI-Namespace>::proxy::<SI>Proxy 上注册用于监控服务可用性的回调 [SWS_CM_01076]。该函数接受两个参数 AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.5 “SetServiceStateChangeHandler(ara::com::ServiceStateHandler, ExecutorT&&)”:

  • handler:类型为 ara::com::ServiceStateHandler(定义为 std::function<void(ServiceState)>)的仿函数,在每次可用性状态发生变化时被调用 [SWS_CM_01072],[SWS_CM_01074]。
  • executor:符合 [SWS_CM_11360] 的模板类型 ExecutorT 的执行上下文,已注册的处理程序将在其中执行 [SWS_CM_01076]。

该函数没有返回值(void)[SWS_CM_01076]。

错误处理与异常安全性

该函数被声明为 noexcept,并被指定为异常安全(exception safe)[SWS_CM_01076]。如果传入的可调用处理程序不存在或是 null,则会引发 InvalidHandlerViolation [SWS_CM_01076]。

并发性与限制

已注册的处理程序可以在运行时被覆盖 [SWS_CM_01074]。由于执行是通过传入的 executor 对象进行的 [SWS_CM_01076],因此通知推测将在用户提供的线程或调度上下文中异步处理。 问题 Q-349c5224c3b9cc20 (未决)

相互作用

该方法在基本变体 [SWS_CM_01074] 的基础上扩展了显式指定执行上下文的功能 [SWS_CM_01076]。要进行集成,需要头文件 <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h,而处理程序类型来自 ara/com/types.h [SWS_CM_01072]。

此使用说明基于AUTOSAR AP Release R25-11规范自动生成。

实现者指南即将推出(复杂度 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#d3664417
Content hash
d3664417
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 966a42ce08ac 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

静态模板方法 StartFindService 启动异步后台监控,以根据 ara::com::InstanceIdentifier 查找服务的实例([SWS_CM_11352],EXP_ARAComAPI §5.3.3 “Proxy Class API’s”)。除目标实例(符合 [SWS_CM_00122] 的 instance)外,还会注册一个回调函数(符合 [SWS_CM_00123] 的 handler)以及一个执行上下文(符合 [SWS_CM_11360] 的模板类型 ExecutorT 的 executor)([SWS_CM_11352])。回调通知大概率会在传入的 executor 的线程或任务上下文中处理([SWS_CM_11352])。 问题 Q-1db520123c1e49a4 (未决)

作为返回值,该调用返回一个 ara::com::FindServiceHandle([SWS_CM_11352])。该句柄用于标识正在进行的搜索活动,并且后续通过 [SWS_CM_00125](StopFindService)显式终止后台活动时需要用到它(EXP_ARAComAPI §5.3.3 “Proxy Class API’s”)。通过已注册回调接收到的服务句柄(HandleType)随后用于构造关联的 Proxy 实例([SWS_CM_00131])。

该函数声明为 noexcept 并被指定为异常安全(exception safe)([SWS_CM_11352])。定义了以下运行时违规(Violations):

  • InvalidHandlerViolation:当传入的处理程序函数无效或等于 null 时发生([SWS_CM_11352])。
  • InsufficientPermissionsViolation:当访问被授权系统(Grant Enforcement)拒绝时发生([SWS_CM_11352])。

如果需要改为通过基于模型的 ara::core::InstanceSpecifier 搜索服务,则可以使用替代函数变体 [SWS_CM_11365]。

本文本由 AI 生成和校对。所有信息均基于 AUTOSAR Adaptive R25-11。

实现者指南即将推出(复杂度 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#024dc4d7
Content hash
024dc4d7
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cdf801d69b3d 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

静态模板函数 StartFindService 根据 ara::core::InstanceSpecifier 启动对服务实例的持续、异步搜索,并在传入的执行上下文中注册通知处理程序 [SWS_CM_11365]。与同步单次搜索不同,它会触发用于监控服务可用性的后台活动,并返回一个 ara::com::FindServiceHandle EXP_ARAComAPI §5.3 “Proxy Class APIs”。

参数与执行

该函数接收三个参数 [SWS_CM_11365]:

  • handler:类型为 ara::com::FindServiceHandler(符合 [SWS_CM_00123])的回调函数,在实例可用性发生变更时被调用。
  • instance:要搜索的 ara::core::InstanceSpecifier(符合 [SWS_CM_00123])。
  • executor:模板类型为 ExecutorT(符合 [SWS_CM_11360])的执行上下文。解释:模板实参 ExecutorT 大概率决定了已注册的回调在哪个线程或任务上下文中执行。 问题 Q-6d46f67d536a391e (未决)

错误处理与边界条件

该签名声明为 noexcept 并被指定为 exception safe [SWS_CM_11365]。规范定义了以下功能性违规(Violations):InstanceSpecifierMappingIntegrityViolation(在可执行程序上下文中解析失败或不是 PortPrototype)、PortInterfaceMappingViolation 和 ProcessMappingViolation(不匹配的 PortInterface 映射)、InstanceSpecifierAlreadyInUseViolation、InvalidHandlerViolation(无效或不存在的处理程序)以及缺少访问权限时的 InsufficientPermissionsViolation [SWS_CM_11365]。

相互作用

获取到的 FindServiceHandle 用于通过传递给 StopFindService 来受控地终止正在进行的后台监控 [SWS_CM_00125]。上报给处理程序的句柄用于通过 Proxy(handle) 实例化具体服务 Proxy [SWS_CM_00131]。对于使用 ara::com::InstanceIdentifier 进行的搜索,存在一个替代重载 [SWS_CM_11352]。

本文本由 AI 创建;它不能代替对底层 AUTOSAR 规范的研读。

实现者指南即将推出(复杂度 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#e0886964
Content hash
e0886964
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

函数 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

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5a542928a936 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

Proxy 类的静态函数 StopFindService 终止此前通过 StartFindService 启动的异步服务搜索,并停止接收针对所传递句柄的进一步通知 [SWS_CM_00125]。从而停止通过技术绑定监控服务可用性的正在运行的后台活动 AP EXP ARAComAPI §5.3 “Proxy Class API’s”。

用法与语义

本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 的规范文档生成。

实现者指南即将推出(复杂度 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#21c8ba2a
Content hash
21c8ba2a
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

函数 UnsetServiceStateChangeHandler [SWS_CM_01075]

void UnsetServiceStateChangeHandler () noexcept;
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: bd7a765f57bb 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CM_01075](AUTOSAR_AP_SWS_CommunicationManagement §8.3.8.2.4.12 “UnsetServiceStateChangeHandler”),成员函数 UnsetServiceStateChangeHandler 是命名空间 <SI-Namespace>::proxy::<SI>Proxy 中生成的代理类的组成部分。它通过头文件 #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h" 引入。

关于使用、行为和并发性,适用以下规定:

  • 使用:该方法具有签名 void UnsetServiceStateChangeHandler() noexcept;。它不接收参数且不返回任何值。解释:根据标识符以及对 [SWS_CM_01074] 的引用,该调用用于重置或注销此前在代理实例上注册的用于服务状态更改的回调处理程序。 问题 Q-6eb71298a6f37ad9 (未决)
  • 错误处理与异常安全性:该操作被声明为 noexcept 并被指定为异常安全(exception safe)([SWS_CM_01075])。它不引发异常,也不向调用方返回错误代码。
  • 交互与边界条件:功能语义参见 [SWS_CM_01074] 中的定义。解释:注销推测可能同步生效,因此在函数调用返回后,将不再通过先前的回调传递进一步的状态转换。 问题 Q-31348a50d9be537d (未决)

本使用说明由 AI 基于 AUTOSAR 规范生成。

实现者指南即将推出(复杂度 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#9f5ddbc0
Content hash
9f5ddbc0
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

函数 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#1d160da1
Content hash
1d160da1
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

函数 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#1f64697f
Content hash
1f64697f
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

常量 / 变量文档

变量 <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#40dc7805
Content hash
40dc7805
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

变量 <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#fbb3273d
Content hash
fbb3273d
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

变量 <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#a581bf4e
Content hash
a581bf4e
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