函数 ResolveInstanceIDs [SWS_CM_00118] Upstream: RS_CM_00200, RS_AP_00114, RS_AP_00115, RS_AP_00120, RS_AP_00121, RS_AP_00119, RS_AP_00127, RS_AP_00137
ara::core::Result< ara::com::InstanceIdentifierContainer > Resolve InstanceIDs (ara::core::InstanceSpecifier metaModelIdentifier) noexcept;
Translates an ara::core::InstanceSpecifier to a ara::com:: InstanceIdentifierContainer. The length/size of the ara::com:: InstanceIdentifierContainer is relative to the number of matches.
命名空间 ara::com::runtime 中的同步函数 ResolveInstanceIDs([SWS_CM_00118])将类型为 ara::core::InstanceSpecifier 的基于模型的标识符解析为具体的物理技术实例。作为结果,它返回一个包含所分配 ara::com::InstanceIdentifier 的 ara::core::Result<ara::com::InstanceIdentifierContainer>(EXP ARAComAPI §4 “InstanceSpecifier Resolution”)。
该容器映射了配置的部署:
- 单个元素代表明确技术绑定的标准情况。
- 当集成商配置了多重绑定(Multi-Binding)时会出现多个元素,例如用于服务端的备选绑定或客户端故障转移概念(EXP ARAComAPI §4 “InstanceSpecifier Resolution”)。
- 空容器表明缺少映射,从而指向集成商的配置错误(EXP ARAComAPI §4 “InstanceSpecifier Resolution”)。
在发生错误时,如果 InstanceSpecifier 虽然在形式上有效,但无法分配给任何现有的 InstanceIdentifier,则 ara::core::Result 会返回错误代码 ComErrc::kInstanceIDNotResolvable([SWS_CM_00118])。该函数被声明为 noexcept 且异常安全。
在典型的应用场景中,不需要直接调用,因为 Proxy 和 Skeleton API 提供了直接接受 InstanceSpecifier 的重载(EXP ARAComAPI §4 “InstanceSpecifier Resolution”)。手动解析主要用于跨进程交换特定技术的 InstanceIdentifier 或有针对性地选择绑定的高级场景(EXP ARAComAPI §4 “InstanceSpecifier Resolution”)。
此文本由 AI 基于 AUTOSAR 规范生成。
实现者指南即将推出(复杂度 I2)
| Header-Datei | #include "ara/com/runtime.h" |
|---|---|
| Scope | namespace ara::com::runtime |
| Exception-Sicherheit | exception safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| metaModelIdentifier | The ara::core::InstanceSpecifier to be translated. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<ara::com::InstanceIdentifierContainer > | An ara::com::InstanceIdentifierContainer if successful, otherwise an error code indicating the error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ComErrc::kInstanceIDNotResolvable | rollback_semantics The ara::core::InstanceSpecifier is valid but could not be resolved/mapped to an existing ara::com:: InstanceIdentifier |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CM_00118- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CM_00118@rel:R25-11#173c3566- Content hash
173c3566- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00118
Status: valid/unmigrated
Version: rel:R25-11#7fda17bf
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_00118@rel:R25-11#7fda17bf
Recorded Revisions (8):
- R25-11
rel:R25-11#0f70035f2026-09-30 - R19-11
rel:R19-11#f7400f912026-10-14 - R20-11
rel:R20-11#41c24bfc2026-10-14 - R21-11
rel:R21-11#29fd954c2026-10-14 - R22-11
rel:R22-11#e6a302622026-10-14 - R23-11
rel:R23-11#2a18d23a2026-10-14 - R24-11
rel:R24-11#09c394e82026-10-14 - R25-11
rel:R25-11#7fda17bf2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文