DEENESPTFRRUARHIKOZHNL

类 <DataElement-Namespace>::<DataElementInterface>

[SWS_DM_00603] Upstream: RS_Diag_04169

class <DataElementInterface> {...};

DiagnosticDataElementInterface class

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Forwarding-Header#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }/<DataElementShortname>_fwd.h"
Scopenamespace <DataElement-Namespace>

用户指南人工智能生成

使应用程序能够为 Diagnostic Manager 提供并响应诊断读取查询。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 70357181b1bf 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使应用程序能够为 Diagnostic Manager 提供并响应诊断读取查询。

该接口用于 Adaptive 应用程序为 Diagnostic Management 的读取访问提供诊断数据。通过实例指定符进行实例化后,应用程序必须主动提供该服务,以便能够接收传入的读取请求 [SWS_DM_00597]。传入的请求通过异步读取方法进行处理,该方法在未来值中提供所请求的输出数据或否定反馈代码 [SWS_DM_00596]。由于复制和移动操作已被删除,每个实例都牢固绑定到其上下文中。

上下文

生成的 C++ 类 <DataElementInterface> 在功能集群 diag(AUTOSAR Adaptive Platform)内充当标准化的服务器接口,用于提供可读诊断数据 AUTOSAR_AP_SWS_Diagnostics 第68页。具体而言,它在角色 read 中映射了一个 DiagnosticDataElementInterface,Adaptive 应用程序通过该接口向 Diagnostic Manager(DM)传输诊断请求(例如 UDS ReadDataByIdentifier)的数据值 [SWS_DM_00596]。

关键交互方是平台守护进程的 Diagnostic Management(负责协调传入的诊断请求)以及实现该接口并具体阐明提供逻辑的 Adaptive 应用程序。通过建模的端口原型进行实例化并映射到软件架构,该端口原型通过 ara::core::InstanceSpecifier 进行连接 [SWS_DM_00587]。输出数据被封装在类型特定的结构中,其参数由相应的输出元素表示 [SWS_DM_80023],[SWS_DM_00581]。

生命周期

实例的创建通过构造函数在指定 ara::core::InstanceSpecifier 以及并发模式 ara::diag::ConcurrencyType 的情况下进行 [SWS_DM_00587]。为了在进程内保持唯一的映射,复制构造函数和移动构造函数均被删除 [SWS_DM_01661],[SWS_DM_01662]。同样地,复制和移动赋值运算符也被显式删除 [SWS_DM_01659],[SWS_DM_01660]。因此,实例固定保留在其创建的地址处。

关于运行,该对象经历定义的阶段:

  • 未提供(Not Offered):构造后,对象最初处于非活动状态,在该状态下 DM 不会递送任何读取请求。
  • 已提供(Offered):通过调用 Offer(),在 DM 处激活该服务,以便转发传入的读取请求 [SWS_DM_00597]。
  • 已注销:调用 StopOffer() 会停用 DM 对未来诊断请求的转发 [SWS_DM_00617]。
  • 销毁:虚拟析构函数 ~<DataElementInterface>() 结束接口实例的生命周期 [SWS_DM_00588]。

虽然构造函数被指定为线程安全 [SWS_DM_00587],但 Offer()、StopOffer()、Read() 和析构函数不是线程安全的 [SWS_DM_00597],[SWS_DM_00617],[SWS_DM_00596],[SWS_DM_00588]。构造函数中的参数 concurrencyType 确定处理程序实现是以线程安全(kConcurrent)还是非线程安全(kNotConcurrent)的方式执行 [SWS_DM_00587]。

Lifecycle Uninitialized Uninitialized NotOffered NotOffered Uninitialized->NotOffered Konstruktor Offered Offered NotOffered->Offered Offer() Destructed Destructed NotOffered->Destructed Destruktor Offered->NotOffered StopOffer() Offered->Destructed Destruktor

状态图:接口实例在初始化、发布状态和销毁之间的状态阶段。来源:[SWS_DM_00587],[SWS_DM_00597],[SWS_DM_00617],[SWS_DM_00588]。

使用路径

数据查询的常规流程遵循固定的步骤顺序:

  1. 实例化:应用程序使用所需的 instanceSpec 和 concurrencyType 实例化派生的处理程序类 [SWS_DM_00587]。
  2. 服务发布:应用程序调用 Offer(),从而使 DM 能够转发读取请求 [SWS_DM_00597]。
  3. 读取请求处理:当读取请求到达 DM 时,DM 调用处理程序上的纯虚方法 Read(metaInfo, cancellationHandler) [SWS_DM_00596]。应用程序对 metaInfo 进行求值,并可通过 cancellationHandler.IsCanceled() 检查会话是否已中断,或通过 cancellationHandler.SetNotifier 注册一个回调 [SWS_DM_00596]。
  4. 反馈:解释:输出数据的实际确定通常应异步进行;结果在一个带有相应 ReadOutput 对象的 ara::core::Future 中提供 [SWS_DM_00596],[SWS_DM_00581]。 问题 Q-ce317bd1275e4fd9 (未决)
  5. 服务终止:在关闭之前,应用程序调用 StopOffer() 以阻止转发 [SWS_DM_00617],随后进行对象销毁 [SWS_DM_00588]。
用于提供和读取诊断数据元素的调用时序诊断管理DataElement HandlerAnwendungskernUse Case: DienstregistrierungOffer()Result<void> (kSuccess)Use Case: Leseanfrage verarbeitenRead(metaInfo, cancellationHandler)Daten abfragen / ermittelnaltErfolgreich gelesenReadOutput bereitstellen带有 ReadOutput 的 FutureFehlerfall / NRCFehler aufgetreten带有 DiagUdsNrcErrc 的 FutureUse Case: DienstabmeldungStopOffer()

时序图:从服务注册、异步读取到注销的调用序列。来源:[SWS_DM_00597],[SWS_DM_00596],[SWS_DM_00617]。

错误场景

在错误情况下,必须对不同的生命周期阶段进行区别看待:

在构造时就可能出现完整性违规,这些违规通过特定的 Violation 发出信号 [SWS_DM_00587]:

  • InstanceSpecifierMappingIntegrityViolation:实例指定符无法在 Executable 的模型中解析,或者未引用 PortPrototype。
  • PortInterfaceMappingViolation:由 DiagnosticDataElementInterface 定型的 PortPrototype 未被 DiagnosticDataPortMapping 引用。
  • ProcessMappingViolation:尽管存在匹配的 InstanceRef,但未找到与运行时进程相对应的匹配建模进程。
  • InstanceSpecifierAlreadyInUseViolation:使用在当前进程中已被使用的 InstanceSpecifier 调用了构造函数。

如果针对已提供的服务调用 Offer(),该方法将返回一个带有错误代码 DiagOfferErrc::kAlreadyOffered 的 ara::core::Result(回滚语义)[SWS_DM_00597]。

若 Read() 中的读取请求无法成功应答,返回的 ara::core::Future 必须通过 DiagUdsNrcErrc 包含相应的 ISO 14229-1 否定响应码(NRC),或包含一个 ApApplicationError [SWS_DM_00596]。

本指南基于 AUTOSAR AP Release R25-11 规范,并总结了 diag 模块的要求。

成员图

类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G n_DataElement_Namespace____DataElementInterface_750 <DataElementInterface> + <DataElementOutArg> + Offer() + Read() + StopOffer() + operator=() + <DataElementInterface>() + ~<DataElementInterface>()

详细视图

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

方法

Construct a DataElement from an ara::core::InstanceSpecifier

重载 <DataElementInterface> 3
<DataElementInterface1> (ara::core::InstanceSpecifier instanceSpec, ara::diag::ConcurrencyType concurrencyType) noexcept; SWS_DM_00587
<DataElementInterface2> (const <DataElementInterface2> &other)=delete; SWS_DM_01661
<DataElementInterface4> (<DataElementInterface4> &&other)=delete; SWS_DM_01662
Offer 函数

This Offer will enable the DM to forward request messages to this handler

ara::core::Result< void > Offer () noexcept;
Read 函数

Provision of a Read DataElement (DiagnosticDataElementInterface in the role read)

virtual ara::core::Future< <DataElement>ReadOutput > Read (const ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;
StopOffer 函数

This StopOffer will disable the forwarding of request messages from DM

void StopOffer () noexcept;

Destruction of a DataElement

virtual ~<DataElementInterface6> () noexcept;

运算符

operator= 函数 2

Copy assignment constructor deletion

重载 = 2
<DataElementInterface3> & operator= (const <DataElementInterface3> &other)=delete; SWS_DM_01659
<DataElementInterface5> & operator= ( <DataElementInterface5> &&other)=delete; SWS_DM_01660

常量

Member declaration representing an out argument in an Output.

<DataElementOutArgType> <DataElementOutArg>;

嵌套类型

方法文档

函数 <DataElementInterface> [SWS_DM_00587] Upstream: RS_AP_00137, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

<DataElementInterface1> (ara::core::InstanceSpecifier instanceSpec, ara::diag::ConcurrencyType concurrencyType) noexcept;

Construct a DataElement from an ara::core::InstanceSpecifier

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

构造函数[SWS_DM_00587]用于根据AUTOSAR_AP_SWS_Diagnostics §8.28.2.2.1.6通过ara::core::InstanceSpecifier实例化<DataElementInterface>。

用法与参数:

  • instanceSpec:在模型上下文中指定服务的具体实例。
  • concurrencyType:确定并发行为,并规定接口是以线程安全(kConcurrent)还是非线程安全(kNotConcurrent)方式执行。

并发性与异常安全性:该函数声明为noexcept,并在规范中被归类为 thread-safe 以及 exception-safe [SWS_DM_00587]。

错误处理与建模违规:错误不会导致 C++ 异常,而是导致指定的 Violations:

  • InstanceSpecifierMappingIntegrityViolation:当instanceSpec在进程上下文中不可解析或未指向PortPrototype时发生。
  • PortInterfaceMappingViolation:当通过 DiagnosticDataElementInterface 定型的 PortPrototype 未被 DiagnosticDataPortMapping 引用时报告。
  • ProcessMappingViolation:当存在实例引用,但不存在与运行时进程匹配的建模进程时出现。
  • InstanceSpecifierAlreadyInUseViolation:当同一进程中的 instanceSpec 已被构造函数调用占用时发送。

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

实现者指南即将推出(复杂度 I1)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is typed by a pingViolation DiagnosticDataElementInterface needs to be referenced by a DiagnosticDataPortMapping. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process.

Parameter (in)

ParameterBeschreibung
instanceSpecThe specifier of a specific instance of a service.
concurrencyTypeSpecifies if the interface is implemented as thread safe ( kConcurrent) or non-thread safe (kNotConcurrent).

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00587
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00587@rel:R25-11#02843363
Content hash
02843363
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00587
Status: valid/unmigrated Version: rel:R25-11#3137c965 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_00587@rel:R25-11#3137c965
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5035bc322026-09-30
  • R19-11rel:R19-11#362db1312026-10-14
  • R20-11rel:R20-11#2280335d2026-10-14
  • R21-11rel:R21-11#90eaccce2026-10-14
  • R22-11rel:R22-11#163504222026-10-14
  • R23-11rel:R23-11#bbe3ec942026-10-14
  • R24-11rel:R24-11#5f9d4fbd2026-10-14
  • R25-11rel:R25-11#3137c9652026-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

函数 <DataElementInterface> [SWS_DM_01661] Upstream: RS_AP_00147

<DataElementInterface2> (const <DataElementInterface2> &other)=delete;

Copy constructor deletion

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01661
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01661@rel:R25-11#b7d445f8
Content hash
b7d445f8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01661
Status: valid/unmigrated Version: rel:R25-11#2f60d744 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_DM_01661@rel:R25-11#2f60d744
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1cd9fb522026-09-30
  • R23-11rel:R23-11#0016469c2026-10-14
  • R24-11rel:R24-11#de93ef5f2026-10-14
  • R25-11rel:R25-11#2f60d7442026-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

函数 <DataElementInterface> [SWS_DM_01662] Upstream: RS_AP_00147

<DataElementInterface4> (<DataElementInterface4> &&other)=delete;

Move constructor

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01662
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01662@rel:R25-11#913ac720
Content hash
913ac720
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01662
Status: valid/unmigrated Version: rel:R25-11#2bcbb47c 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_DM_01662@rel:R25-11#2bcbb47c
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#91b60d862026-09-30
  • R23-11rel:R23-11#df8de15a2026-10-14
  • R24-11rel:R24-11#05b223222026-10-14
  • R25-11rel:R25-11#2bcbb47c2026-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

函数 Offer [SWS_DM_00597] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04169, RS_Diag_04224

ara::core::Result< void > Offer () noexcept;

This Offer will enable the DM to forward request messages to this handler

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

DataElementInterface 的同步方法 Offer 激活 Diagnostic Management Daemon (DM) 向关联处理程序转发传入诊断请求([SWS_DM_00597])。它不接受任何参数,保证异常安全(exception safe / noexcept),并返回一个 ara::core::Result<void>([SWS_DM_00597])。

以下规范适用于错误处理、并发性和顺序:

  • 错误处理:如果该服务先前已被提供,则调用失败并返回带有回滚语义的错误码 DiagOfferErrc::kAlreadyOffered([SWS_DM_00597])。
  • 并发性:该函数被指定为非线程安全(not thread-safe)([SWS_DM_00597])。对同一实例的同时调用必须在应用程序端进行同步。
  • 顺序条件:只要 Adaptive Application 尚未调用 Offer,DM 就不会向处理程序转发请求,或者使用内部回退值([SWS_DM_01525],[SWS_DM_01527])。该调用通常可能在应用程序的启动阶段进行(Interpretation)。 问题 Q-dca0925e698789c5 (未决)

通过 Offer 提供的概念也一致地用于其他 DM 处理程序,如例程([SWS_DM_00594])和数据标识符([SWS_DM_00599])。命名虽然借鉴了 ara::com,但代表了独立的 DM 实现(SWS Diagnostics §7.3.4.1.2 “Monitors”)。

此文本由 AI 基于规范数据生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >• If successful: an ara::core::Result containing a ara:: core::Result::value_type • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: diag::DiagOfferErrc

Fehler

FehlercodeBeschreibung
DiagOfferErrc::kAlreadyOfferedrollback_semantics The service is already offered.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00597
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00597@rel:R25-11#e9dcf690
Content hash
e9dcf690
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00597
Status: valid/unmigrated Version: rel:R25-11#dc11c9cd 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_00597@rel:R25-11#dc11c9cd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#872cc3392026-09-30
  • R19-11rel:R19-11#aef2a6c42026-10-14
  • R20-11rel:R20-11#dc31bf0e2026-10-14
  • R21-11rel:R21-11#38b1f8ef2026-10-14
  • R22-11rel:R22-11#3ac4d67f2026-10-14
  • R23-11rel:R23-11#c2a3f2c12026-10-14
  • R24-11rel:R24-11#9279c3692026-10-14
  • R25-11rel:R25-11#dc11c9cd2026-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

函数 Read [SWS_DM_00596] Upstream: RS_AP_00114, RS_AP_00127, RS_AP_00128, RS_AP_00138

virtual ara::core::Future< <DataElement>ReadOutput > Read (const ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;

Provision of a Read DataElement (DiagnosticDataElementInterface in the role read)

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

方法 Read 用于在角色 read 下提供 DiagnosticDataElementInterface 实例内的数据元素 [SWS_DM_00596]。该调用由 Diagnostic Manager 异步执行,用于处理诊断读取请求。

使用与签名

该接口返回一个带有符合 [SWS_DM_00581] 的类型化 ReadOutput 对象的 ara::core::Future [SWS_DM_00596]。实现通过传入的参数来处理请求:

  • metaInfo:传递有关传入诊断请求的元信息 [SWS_DM_00596]。
  • cancellationHandler:允许通过 cancellationHandler.IsCanceled() 监控诊断会话的过早取消,并通过 cancellationHandler.SetNotifier() 注册通知函数 [SWS_DM_00596]。

错误处理与并发

如果无法成功读取数据元素,ara::core::Future 不返回值,而是返回错误。错误码必须设置为通过 DiagUdsNrcErrc 提供的符合 ISO 14229-1 的适当 UDS 否定响应码(NRC)或 ApApplicationError [SWS_DM_00596]。该函数被指定为 noexcept 且异常安全(exception safe)。

关于执行上下文,Read 被声明为 not thread-safe [SWS_DM_00596]。该交互符合自适应诊断读取操作的通用模式,正如针对数据标识符([SWS_DM_00640])或扩展数据记录([SWS_DM_02156])类似定义的那样。

本使用说明是基于 AUTOSAR 规范自动生成的。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
metaInfoMetaInfo of the request.
cancellationHandlerThis parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled.

Rückgabewert

TypBeschreibung
ara::core::Future< {<data-element-name>}ReadOutput >• If successful: an ara::core::Future containing a ReadOutput object as per [SWS_DM_00581] • If unsuccessful: an ara::core::Future containing a corresponding DiagUdsNrcErrc or ApApplicationError.

Fehler

FehlercodeBeschreibung
Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00596
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00596@rel:R25-11#57d737c0
Content hash
57d737c0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00596
Status: valid/unmigrated Version: rel:R25-11#db56d6b8 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_00596@rel:R25-11#db56d6b8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#46170e3a2026-09-30
  • R19-11rel:R19-11#27ec1d4b2026-10-14
  • R20-11rel:R20-11#7e478e7b2026-10-14
  • R21-11rel:R21-11#86f986be2026-10-14
  • R22-11rel:R22-11#d7f279f42026-10-14
  • R23-11rel:R23-11#05b772b12026-10-14
  • R24-11rel:R24-11#47e253022026-10-14
  • R25-11rel:R25-11#db56d6b82026-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

函数 StopOffer [SWS_DM_00617] Upstream: RS_Diag_04169

void StopOffer () noexcept;

This StopOffer will disable the forwarding of request messages from DM

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

接口 <DataElement-Namespace>::<DataElementInterface> 上的方法 StopOffer 禁用从 Diagnostic Management (DM) 向相关数据元素转发传入请求消息 [SWS_DM_00617]。该调用同步进行,不需要传入参数,也不返回值 [SWS_DM_00617]。

关于错误处理,该函数被指定为 exception safe 并声明为 noexcept [SWS_DM_00617]。既不引发 C++ 异常,也不返回错误码。Interpretation:由于规范仅规定阻止消息转发,因此该方法调用可能仅拒绝未来的诊断请求,而调用时已在运行的处理不受影响。 问题 Q-a741bb87f41cfe59 (未决)

关于并发性,该接口被定义为 not thread-safe [SWS_DM_00617]。因此,调用方必须通过应用程序端的同步机制来保护对同一实例的并行访问。尽管该名称借鉴了 ara::com,但它是功能集群 Diagnostics 的独立、特定于诊断的接口 AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”。

禁用操作融入了 DM 的整体架构模式中:类似的方法 StopOffer 也存在于数据标识符 [SWS_DM_00600]、通用例程 [SWS_DM_00558]、通用 UDS 服务 [SWS_DM_00620] 以及复位请求 [SWS_DM_01017] 中,以便分别受控地终止向对应处理程序转发请求。

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

实现者指南即将推出(复杂度 I2)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00617
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00617@rel:R25-11#d22d8648
Content hash
d22d8648
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00617
Status: valid/unmigrated Version: rel:R25-11#f93e3c48 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_00617@rel:R25-11#f93e3c48
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c087b5492026-09-30
  • R19-11rel:R19-11#4686d8712026-10-14
  • R20-11rel:R20-11#302902f52026-10-14
  • R21-11rel:R21-11#60b4eb6e2026-10-14
  • R22-11rel:R22-11#630d49a22026-10-14
  • R23-11rel:R23-11#d3c624d92026-10-14
  • R24-11rel:R24-11#a0e4aac82026-10-14
  • R25-11rel:R25-11#f93e3c482026-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_DM_01659] Upstream: RS_AP_00147

<DataElementInterface3> & operator= (const <DataElementInterface3> &other)=delete;

Copy assignment constructor deletion

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01659
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01659@rel:R25-11#8178d11d
Content hash
8178d11d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01659
Status: valid/unmigrated Version: rel:R25-11#af6f33fc 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_DM_01659@rel:R25-11#af6f33fc
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#473419de2026-09-30
  • R23-11rel:R23-11#9013eaab2026-10-14
  • R24-11rel:R24-11#bd96b8662026-10-14
  • R25-11rel:R25-11#af6f33fc2026-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_DM_01660] Upstream: RS_AP_00147

<DataElementInterface5> & operator= ( <DataElementInterface5> &&other)=delete;

Move assignment constructor

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01660
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01660@rel:R25-11#c860b35f
Content hash
c860b35f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01660
Status: valid/unmigrated Version: rel:R25-11#5711e300 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_DM_01660@rel:R25-11#5711e300
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e5b157292026-09-30
  • R23-11rel:R23-11#1e4f2e112026-10-14
  • R24-11rel:R24-11#92f17c3c2026-10-14
  • R25-11rel:R25-11#5711e3002026-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

函数 ~<DataElementInterface> [SWS_DM_00588] Upstream: RS_Diag_04169, RS_AP_00134

virtual ~<DataElementInterface6> () noexcept;

Destruction of a DataElement

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00588
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00588@rel:R25-11#6e051b4b
Content hash
6e051b4b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00588
Status: valid/unmigrated Version: rel:R25-11#ad7733a4 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_00588@rel:R25-11#ad7733a4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b88cfb3b2026-09-30
  • R19-11rel:R19-11#4c53dc262026-10-14
  • R20-11rel:R20-11#b2fa29ed2026-10-14
  • R21-11rel:R21-11#0f467e0d2026-10-14
  • R22-11rel:R22-11#b00f6d462026-10-14
  • R23-11rel:R23-11#28e88b432026-10-14
  • R24-11rel:R24-11#2cdc2f6c2026-10-14
  • R25-11rel:R25-11#ad7733a42026-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

常量 / 变量文档

变量 <DataElementOutArg> [SWS_DM_80023] Upstream: RS_Diag_04224, RS_Diag_04169

<DataElementOutArgType> <DataElementOutArg>;

Member declaration representing an out argument in an Output.

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Symbol<DataElementOutArg>
Typ<DataElementOutArgType>

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_80023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_80023@rel:R25-11#718d83e7
Content hash
718d83e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_80023
Status: valid/unmigrated Version: rel:R25-11#caed5afa 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_DM_80023@rel:R25-11#caed5afa
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#98e36acc2026-09-30
  • R24-11rel:R24-11#b1ac80b72026-10-14
  • R25-11rel:R25-11#caed5afa2026-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