函数 ExecuteCapability [SWS_DM_02384] Upstream: RS_Diag_04262
virtual ara::core::Future< OperationExecutionStatus > Execute Capability (OperationExecutionCapability capability, DiagnosticSovd ContentData const &sovd_content_data, ara::diag::MetaInfo const &meta_ info, ara::diag::CancellationHandler cancellation_handler) noexcept=0;
Called for " Support for execute / freeze / reset" for the specified SOVD Operation.
来自ara::diag::SovdOperationExecution的纯虚方法ExecuteCapability用于根据[SWS_DM_02384]执行、冻结或重置指定的 SOVD 操作(SWS Diagnostics §8.62.5.2.1.1 “ExecuteCapability”)。由于该函数被定义为protected且为纯虚函数,因此它通常可能由应用程序特定的子类重写并由诊断守护进程调用。 问题 Q-66c5defcf6d00f57 (未决)
该调用异步进行并返回一个ara::core::Future<OperationExecutionStatus>[SWS_DM_02384]。调用时,会传递要执行的能力(capability)、附加元信息(meta_info)、一个cancellation_handler以及有效负载数据(sovd_content_data)。sovd_content_data中的数据在关联的 Promise 被满足或通过cancellation_handler中止处理之前保持有效[SWS_DM_02384]。
对于并发性和生命周期适用明确的规定:该操作被指定为线程安全和异常安全(分别为exception safe与noexcept)。传递的对象cancellation_handler通报正在进行的请求的中止;决不能超出该操作的生命周期对其进行存储或引用[SWS_DM_02384]。
成功时,Future 提供执行状态OperationExecutionStatus。如果处理失败,则必须通过 Future 返回符合 ISO 17978-3 或 ASAM SOVD 1.1 的合适 SOVD 错误码[SWS_DM_02384]。
本使用说明基于 AUTOSAR R25-11 规范自动生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/generic_diagnostic_sovd_operation.h" |
|---|---|
| Scope | class ara::diag::SovdOperationExecution |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
| Sichtbarkeit | protected |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| capability | The SOVD operation execution capability |
| sovd_content_data | The SOVD content data. Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler |
| meta_info | contains additional meta information |
| cancellation_handler | Informs if the current request is cancelled. This object shall not be stored or accessed beyond the lifetime of this operation. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future<OperationExecutionStatus > | A future with either execution status (for a positive response message) or a SOVD Error (for an negative response message) |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| Please use an applicable SOVD error code, as defined in ISO 17978-3 / ASAM SOVD 1.1. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_02384- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_02384@rel:R25-11#56a5a886- Content hash
56a5a886- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02384
Status: valid/unmigrated
Version: rel:R25-11#38d7bf66
Versionshistorie & Revisions (1 transition)
- 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_02384@rel:R25-11#38d7bf66
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 · 德文原文