函数 Confirmation [SWS_DM_00775] Upstream: RS_AP_00138, RS_Diag_04170, RS_Diag_04199
virtual void Confirmation (ConfirmationStatusType status, const Meta Info &metaInfo) noexcept;
This method is called, when a diagnostic request has been finished, to notify about the outcome.
接口 ara::diag::ServiceValidation 的方法 Confirmation([SWS_DM_00775],在 ara/diag/service_validation.h 中声明)用作对先前处理的诊断请求的完成和结果的通知。
用法与语义
虚回调函数在请求处理完成后由 Diagnostic Management 同步调用。它没有返回值(void)并接收两个形参([SWS_DM_00775]):
status(ConfirmationStatusType):指示服务处理的最终状态或结果([SWS_DM_00775])。metaInfo(const Meta Info &):包含诊断请求的相关元信息([SWS_DM_00775])。
错误处理与并发
该函数被指定为异常安全(exception safe)并以标识符 noexcept 声明([SWS_DM_00775])。因此,应用端重写不得向外传播异常。未为此方法定义特定错误码(如 DET 或 DEM 消息)。在并发性方面,Confirmation 被归类为非线程安全(not thread-safe)([SWS_DM_00775]);在并行流程中,在回调内访问应用内部状态需要进行相应同步。
相互作用
触发通知与诊断请求的生命周期结束相关联([SWS_DM_00775])。一旦发送或抑制了肯定或否定响应,该周期即告完成(AUTOSAR_AP_SWS_Diagnostics §7.3.2.1.2 “Life-cycle of a Diagnostic Conversation”)。Interpretation:在模块级别,Diagnostic Management 可能会在通过传输层使用 TransmitConfirmation 确认传输且结果为 kTransmitOk 或 kTransmitFailed 之后,才触发回调 Confirmation([SWS_DM_00307],[SWS_DM_00351])。 问题 Q-97c38586ef5e3704 (未决)
本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。
实现者指南即将推出(复杂度 I2)
| Header-Datei | #include "ara/diag/service_validation.h" |
|---|---|
| Scope | class ara::diag::ServiceValidation |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| status | status/outcome of the service processing. |
| metaInfo | MetaInfo of the request. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00775- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00775@rel:R25-11#c17e5590- Content hash
c17e5590- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00775
Status: valid/unmigrated
Version: rel:R25-11#bbcfd2e3
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_DM_00775@rel:R25-11#bbcfd2e3
Recorded Revisions (8):
- R25-11
rel:R25-11#044090102026-09-30 - R19-11
rel:R19-11#20a5939d2026-10-14 - R20-11
rel:R20-11#761e125d2026-10-14 - R21-11
rel:R21-11#761e125d2026-10-14 - R22-11
rel:R22-11#991a58222026-10-14 - R23-11
rel:R23-11#a506b4142026-10-14 - R24-11
rel:R24-11#5339f3712026-10-14 - R25-11
rel:R25-11#bbcfd2e32026-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 · 德文原文