类 <RoutineInterface-Namespace>::<RoutineInterface>
[SWS_DM_00604] Upstream: RS_Diag_04169
class <RoutineInterface> {...};
DiagnosticRoutineInterface class
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Forwarding-Header #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>/<RoutineInterfaceShortname>_fwd.h" Scope namespace <RoutineInterface-Namespace>
用户指南人工智能生成 用作特定于应用程序的诊断例程的基础接口,以通过 UDS 进行控制和结果查询。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5e7ace1aec5d
来源
未决问题(2)
摘要 详细
用作特定于应用程序的诊断例程的基础接口,以通过 UDS 进行控制和结果查询。
类 <RoutineInterface-Namespace>::<RoutineInterface> 在 AUTOSAR Adaptive Platform 中用作特定于应用程序的诊断例程的基础接口,用于处理 UDS 服务 0x31。实例化后,应用程序通过 Offer() 在 Diagnostic Management 中激活控制请求的接收,并通过方法 Start、Stop 以及 RequestResult 异步处理操作 [SWS_DM_00594] 。该类完全禁止复制和移动操作,并且发生的处理错误将通过返回的 Future 作为 UDS 错误代码传输给 Diagnostic Management [SWS_DM_00591] 。由于接口方法不是线程安全的,因此在并发访问时必要的同步由应用程序负责。
更多 ›
上下文
类 <RoutineInterface-Namespace>::<RoutineInterface> 在 AUTOSAR Adaptive Platform 中充当基础接口,用于在模块 diag 中实现特定于应用程序的诊断例程。它提供了符合 UDS 服务 0x31(RoutineControl)的例程控制接口。该类直接在中央 Diagnostic Management(DM)与具体应用逻辑之间进行中介协调。通过经由 Offer() 提供服务,Diagnostic Management 被授权将传入的例程请求转发给处理程序 [SWS_DM_00594] 。特定于应用程序的实现派生自此接口,并执行所请求的控制操作 [SWS_DM_00591] [SWS_DM_00592] [SWS_DM_00593] 。
生命周期
实例化通过带参数的构造函数进行,该构造函数接收一个 ara::core::InstanceSpecifier 以及一个 ara::diag::ConcurrencyType [SWS_DM_00589] 。通过 InstanceSpecifier 建立与建模端口或服务实例的绑定。参数 concurrencyType 确定处理程序应以线程安全(kConcurrent)还是非线程安全(kNotConcurrent)方式执行 [SWS_DM_00589] 。
在所有权关系方面,该类具有严格的身份语义;禁止复制和移动操作:
创建后,该对象处于“未提供”状态。通过调用 Offer(),激活由 Diagnostic Management 进行的请求转发 [SWS_DM_00594] 。使用 StopOffer() 可再次停用此转发 [SWS_DM_00595] 。该实例通过虚析构函数 [SWS_DM_00590] 释放。应用程序通常应在销毁前调用 StopOffer(),以确保 DM 不再执行进一步的调用。 问题 Q-adabf54ca5203dff (未决)
diag_lebenszyklus
NichtAngeboten
未提供
Angeboten
Angeboten
NichtAngeboten->Angeboten
Offer()
Zerstoert
已销毁
NichtAngeboten->Zerstoert
~<RoutineInterface>()
Angeboten->NichtAngeboten
StopOffer()
Angeboten->Zerstoert
~<RoutineInterface>()
状态图:RoutineInterface 实例在实例化、提供和释放之间的生命周期与状态转换。来源:[SWS_DM_00589] 、[SWS_DM_00590] 、[SWS_DM_00594] 、[SWS_DM_00595] 。
使用路径
典型的使用流程包括定义派生的 Handler 类、在 Diagnostic Management 上进行提供以及处理例程控制命令:
Handler 类的定义: 应用程序派生自 <RoutineInterface> 并实现纯虚方法 Start [SWS_DM_00591] 、Stop [SWS_DM_00592] 以及 RequestResult [SWS_DM_00593] 。
初始化与注册: 使用匹配的 InstanceSpecifier 和 ConcurrencyType 创建实例 [SWS_DM_00589] 。随后调用 Offer() 以激活请求转发 [SWS_DM_00594] 。
诊断操作的执行: DM 将传入的 UDS 例程请求转发给相应的方法:
在这所有三种方法中均会传递一个 cancellationHandler,可通过其经由 cancellationHandler.IsCanceled() 查询取消状态,或经由 cancellationHandler.SetNotifier(...) 注册通知 [SWS_DM_00591] [SWS_DM_00592] [SWS_DM_00593] 。
注销: 在关闭之前,应用程序调用 StopOffer() 以终止转发 [SWS_DM_00595] 。
诊断例程控制的典型流程 诊断管理 Routine-Handler Offer() Result<void> (Erfolg) Start(inArgs, metaInfo, cancellationHandler) 异步执行例程 Future<StartOutput> RequestResult(inArgs, metaInfo, cancellationHandler) Future<RequestResultOutput> Stop(inArgs, metaInfo, cancellationHandler) Future<StopOutput> StopOffer()
时序图:诊断例程操作在提供、调用和异步应答时的典型交互序列。来源:[SWS_DM_00591] 、[SWS_DM_00594] 、[SWS_DM_00595] 。
错误场景
错误条件可能在实例化期间、提供时以及在方法调用上下文中发生:
构造与建模错误: 无效配置会在构造函数中导致 Framework-Violations [SWS_DM_00589] 。InstanceSpecifierMappingIntegrityViolation 报告无法解析或不正确的 PortPrototype。PortInterfaceMappingViolation 指明缺少经由 DiagnosticServiceGenericMapping 的链接。ProcessMappingViolation 指示缺少进程分配。如果同一 InstanceSpecifier 已在该进程中使用,则会发生 InstanceSpecifierAlreadyInUseViolation [SWS_DM_00589] 。
服务提供错误: 在已提供的实例上重复调用 Offer() 会失败,并在 ara::core::Result 中返回错误码 DiagOfferErrc::kAlreadyOffered [SWS_DM_00594] 。
例程执行错误: 如果 Start、Stop 或 RequestResult 中的操作无法成功完成,则生成的 ara::core::Future 包含匹配的 UDS 错误码(符合 ISO 14229-1 的 ara::diag::DiagUdsNrcErrc)或应用程序特定的 Ap ApplicationError [SWS_DM_00591] [SWS_DM_00592] [SWS_DM_00593] 。
并发: 方法 Offer()、StopOffer()、Start()、Stop() 和 RequestResult() 以及析构函数被指定为非线程安全 [SWS_DM_00589] [SWS_DM_00591] [SWS_DM_00594] [SWS_DM_00595] 。因此,未经应用程序端同步的并发访问是不允许的。
本类指南总结了该接口的核心要点,并基于 AUTOSAR 规范 Adaptive Platform 版本 R25-11 的要求。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
n_RoutineInterface_Namespace____RoutineInterface_950
<RoutineInterface>
+ <RoutineInterfaceRequestResultOutArg>
+ <RoutineInterfaceStartOutArg>
+ <RoutineInterfaceStopOutArg>
+ Offer()
+ RequestResult()
+ Start()
+ Stop()
+ StopOffer()
+ operator=()
+ <RoutineInterface>()
+ ~<RoutineInterface>()
详细视图 此版本没有元素数据
方法 Construct a DiagnosticRoutine from an ara::core::InstanceSpecifier
重载 <RoutineInterface> 3 <RoutineInterface2> (const <RoutineInterface2> &other)=delete; SWS_DM_01669 <RoutineInterface4> (<RoutineInterface4> &&other)=delete; SWS_DM_01670 This Offer will enable the DM to forward request messages to this handler
Provision of a RequestResult RoutineControl (DiagnosticRoutineInterface in the role requestResult).
Provision of a Start RoutineControl (DiagnosticRoutineInterface in the role start).
Provision of a Stop RoutineControl (DiagnosticRoutineInterface in the role stop).
This StopOffer will disable the forwarding of request messages from DM
void StopOffer () noexcept;
Destruction of a DiagnosticRoutine
virtual ~<RoutineInterface6> () noexcept;
运算符 Copy assignment constructor deletion
重载 = 2 <RoutineInterface3> & operator= (const <RoutineInterface3> &other)=delete; SWS_DM_01667 <RoutineInterface5> & operator= (<RoutineInterface5> &&other)=delete; SWS_DM_01668 常量 Member declaration representing an out argument in an RequestResultOutput.
<RoutineInterfaceRequestResultOutArgType> <RoutineInterfaceRequestResultOutArg>;
Member declaration representing an out argument in an StartOutput.
<RoutineInterfaceStartOutArgType> <RoutineInterfaceStartOutArg>;
Member declaration representing an out argument in an StopOutput.
<RoutineInterfaceStopOutArgType> <RoutineInterfaceStopOutArg>;
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
<RoutineInterface1> (ara::core::InstanceSpecifier instance Spec, ara::diag::ConcurrencyType concurrencyType) noexcept;
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 344fff7b3f6c
来源
构造函数 [SWS_DM_00589] 用于通过实例标识符实例化例程接口(DiagnosticRoutine)。声明被指定为 noexcept,并且被视为异常安全(exception safe )以及线程安全(thread-safe )SWS Diagnostics §8.30.2.2.1.8 “{<routine-interface-name-1>}” 。
参数与调用
instanceSpec(ara::core::InstanceSpecifier):绑定到匹配模型端口的特定服务实例的标识符。
concurrencyType(ara::diag::ConcurrencyType):确定接口是并发或线程安全地执行(kConcurrent)还是非线程安全的(kNotConcurrent)。
运行时与模型检查
在构造期间,框架会检查模型和进程配置。在发生错误分配或多次使用时,会触发特定的违规(Violations )[SWS_DM_00589] :
InstanceSpecifierMappingIntegrityViolation:InstanceSpecifier 无法在可执行文件的上下文中解析,或者未指向 PortPrototype。
PortInterfaceMappingViolation:由 DiagnosticRoutineInterface 类型化的 PortPrototype 未被 DiagnosticServiceGenericMapping 引用。
ProcessMappingViolation:对于现有的实例引用,运行时不存在匹配的建模进程。
InstanceSpecifierAlreadyInUseViolation:指定的 InstanceSpecifier 在当前进程内已被现有实例使用。
此使用说明基于AUTOSAR规范自动生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit thread-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 DiagnosticRoutineInterface needs to be referenced by a DiagnosticServiceGenericMapping. 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)
Parameter Beschreibung instanceSpec The specifier of a specific instance of a service. concurrencyType Specifies if the interface is implemented as thread safe ( kConcurrent) or non-thread safe (kNotConcurrent).
Status: valid/unmigrated
Version: rel:R25-11#6a6a97fe
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_00589@rel:R25-11#6a6a97fe
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b4e9b0332026-09-30 Inspect R19-11 rel:R19-11#bec420792026-10-14 Inspect R20-11 rel:R20-11#35efd0d72026-10-14 Inspect R21-11 rel:R21-11#ed9520fb2026-10-14 Inspect R22-11 rel:R22-11#dc24794a2026-10-14 Inspect R23-11 rel:R23-11#64edfc512026-10-14 Inspect R24-11 rel:R24-11#ff4bdd882026-10-14 Inspect R25-11 rel:R25-11#6a6a97fe2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterface2> (const <RoutineInterface2> &other)=delete;
Copy constructor deletion
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface>
Status: valid/unmigrated
Version: rel:R25-11#2f8ecf5f
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_01669@rel:R25-11#2f8ecf5f
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#394762552026-09-30 Inspect R23-11 rel:R23-11#f6d2a82c2026-10-14 Inspect R24-11 rel:R24-11#2991e5472026-10-14 Inspect R25-11 rel:R25-11#2f8ecf5f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterface4> (<RoutineInterface4> &&other)=delete;
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface>
Status: valid/unmigrated
Version: rel:R25-11#8b143b50
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_01670@rel:R25-11#8b143b50
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#6d7355e72026-09-30 Inspect R23-11 rel:R23-11#dcb238ac2026-10-14 Inspect R24-11 rel:R24-11#9053e5ba2026-10-14 Inspect R25-11 rel:R25-11#8b143b502026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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 · 温度: 不可控 · 提示词: 997a24c362ee
来源
未决问题(1)
本文档由 AI 生成,用于解释规范。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Rückgabewert
Fehler
Fehlercode Beschreibung DiagOfferErrc::kAlreadyOffered rollback_semantics The service is already offered.
Status: valid/unmigrated
Version: rel:R25-11#49d40d1f
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_00594@rel:R25-11#49d40d1f
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#ffdeb0a42026-09-30 Inspect R19-11 rel:R19-11#a8c6bcf62026-10-14 Inspect R20-11 rel:R20-11#b3564f112026-10-14 Inspect R21-11 rel:R21-11#c6b02df32026-10-14 Inspect R22-11 rel:R22-11#8c3a357d2026-10-14 Inspect R23-11 rel:R23-11#36a48f8e2026-10-14 Inspect R24-11 rel:R24-11#e46ae3112026-10-14 Inspect R25-11 rel:R25-11#49d40d1f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Future < <RoutineInterface12>RequestResult Output > RequestResult ( {<routine-interface-request-result-in-arg-derived-type-0toN>} {<routine-interface-request-result-in-arg-symbol-0toN>}, const ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;
Provision of a RequestResult RoutineControl (DiagnosticRoutineInterface in the role requestResult).
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5a07adadd6c6
来源
未决问题(1)
本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Parameter (in)
Parameter Beschreibung {<routine-interface-request-result-in-arg-symbol-0toN>} The symbol name of method argument[0..N] in the ordered list of method arguments, with ClientServerOperation. direction == in given by ClientServerOperation. ArgumentDataPrototype[0..N]. shortName metaInfo MetaInfo of the request. cancellationHandler This 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
Fehler
Fehlercode Beschreibung Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.
Status: valid/unmigrated
Version: rel:R25-11#b3126d34
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_00593@rel:R25-11#b3126d34
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#6b86901f2026-09-30 Inspect R19-11 rel:R19-11#55d7b9222026-10-14 Inspect R20-11 rel:R20-11#3e88f7ab2026-10-14 Inspect R21-11 rel:R21-11#438e5fc12026-10-14 Inspect R22-11 rel:R22-11#611ac8692026-10-14 Inspect R23-11 rel:R23-11#f2a9cdcc2026-10-14 Inspect R24-11 rel:R24-11#a8bddac82026-10-14 Inspect R25-11 rel:R25-11#b3126d342026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Future < <RoutineInterface8>StartOutput > Start ({<routine-interface-start-in-arg-derived-type-0toN>} {<routine-interface-start-in-arg-symbol-0toN>}, const ara::diag::Meta Info &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;
Provision of a Start RoutineControl (DiagnosticRoutineInterface in the role start).
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 190e81ca51b9
来源
未决问题(1)
类作用域 <RoutineInterface-Namespace>::<RoutineInterface> 中的纯虚函数 Start 用于为模型特定诊断例程([SWS_DM_00591] )提供角色为 Start 的 RoutineControl 操作。它通过头文件 <RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h 声明([SWS_DM_00591] )。该调用传递各例程的有序输入参数、通过 metaInfo 传递的诊断上下文信息,以及用于控制会话取消的对象 cancellationHandler([SWS_DM_00591] )。
通过参数 cancellationHandler,实现可以使用 cancellationHandler.IsCanceled 检查关联的会话是否已取消,其中在取消的情况下返回 TRUE,否则返回 FALSE([SWS_DM_00591] )。此外,可以使用 cancellationHandler.SetNotifier 注册一个在取消情况下触发的通知函数([SWS_DM_00591] )。异步返回通过 ara::core::Future 进行,成功时该对象提供符合 [SWS_DM_00581] 的已生成结果对象 StartOutput([SWS_DM_00591] )。
在发生错误时,必须为 ara::core::Future 赋予来自 ara::diag::DiagUdsNrcErrc 的符合 ISO 14229-1 的适当否定响应码(NRC)或应用特定的 ApplicationError([SWS_DM_00591] )。该方法被指定为 noexcept 和 exception safe,但被视为 not thread-safe([SWS_DM_00591] )。Interpretation:从归类为 not thread-safe 可以推断,对同一实例的并发调用可能必须进行外部同步。 问题 Q-124d8076818ac2e1 (未决) 虽然该接口服务于模型特定生成的例程,但 GenericRoutine::Start 为以通用方式处理的诊断例程提供了功能对等物([SWS_DM_00554] )。
此文本由 AI 基于 AUTOSAR 规范生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Parameter (in)
Parameter Beschreibung {<routine-interface-start-in-arg-symbol-0toN>} The symbol name of method argument[0..N] in the ordered list of method arguments, with ClientServerOperation. direction == in given by ClientServerOperation. ArgumentDataPrototype[0..N]. shortName metaInfo MetaInfo of the request. cancellationHandler This 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
Fehler
Fehlercode Beschreibung Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.
Status: valid/unmigrated
Version: rel:R25-11#e53f8e34
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_00591@rel:R25-11#e53f8e34
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#83312c892026-09-30 Inspect R19-11 rel:R19-11#9e49bbc32026-10-14 Inspect R20-11 rel:R20-11#49b1bf0d2026-10-14 Inspect R21-11 rel:R21-11#6222b2b72026-10-14 Inspect R22-11 rel:R22-11#75bd91bf2026-10-14 Inspect R23-11 rel:R23-11#1af135142026-10-14 Inspect R24-11 rel:R24-11#50fe97262026-10-14 Inspect R25-11 rel:R25-11#e53f8e342026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Future < <RoutineInterface10>StopOutput > Stop ({<routine-interface-stop-in-arg-derived-type-0toN>} {<routine-interface-stop-in-arg-symbol-0toN>}, const ara::diag::Meta Info &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;
Provision of a Stop RoutineControl (DiagnosticRoutineInterface in the role stop).
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 13d2366d0ac1
来源
未决问题(1)
方法 Stop 用于在类型化例程接口([SWS_DM_00592] )内提供用于停止诊断例程的 RoutineControl 功能。与通用对应项 [SWS_DM_00555] 类似,调用通常可能由 Diagnostic Management 守护进程在收到相应的 UDS 诊断请求(子功能 0x02)时触发。 问题 Q-cd626f527c6dfe92 (未决)
调用以异步方式进行并返回一个 ara::core::Future([SWS_DM_00592] ):
参数: 除了模型特定的输入参数 {<routine-interface-stop-in-arg-symbol-0toN>} 之外,还会传递请求的元信息(metaInfo)以及一个 cancellationHandler([SWS_DM_00592] )。通过 cancellationHandler,实现可以通过 IsCanceled 主动查询取消,或者注册 SetNotifier 通知,以便在诊断会话被取消时收到通知。
返回值: 成功停止时,Future 提供一个类型化的 StopOutput 对象([SWS_DM_00582] )。
错误处理: 如果停止失败,返回的 Future 将包含通过 ara::diag::DiagUdsNrcErrc 获得的符合 ISO 14229-1 的适用否定响应码(NRC)或模型特定的 Ap ApplicationError([SWS_DM_00592] )。
并发性与限制: 该函数被指定为 exception safe ,但被明确指定为 not thread-safe ([SWS_DM_00592] )。同一接口实例上的多次或并发调用必须由调用方进行协调,并且例程必须释放任何资源或对处理程序的取消请求作出响应。
此使用说明自动生成,基于 AUTOSAR Adaptive R25-11。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Parameter (in)
Parameter Beschreibung {<routine-interface-stop-in-arg-symbol-0toN>} The symbol name of method argument[0..N] in the ordered list of method arguments, with ClientServerOperation.direction == in given by ClientServerOperation. ArgumentDataPrototype[0..N].shortName metaInfo MetaInfo of the request. cancellationHandler This 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
Fehler
Fehlercode Beschreibung Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.
Status: valid/unmigrated
Version: rel:R25-11#00612c13
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_00592@rel:R25-11#00612c13
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#13867a3b2026-09-30 Inspect R19-11 rel:R19-11#c0da5c852026-10-14 Inspect R20-11 rel:R20-11#4822e6982026-10-14 Inspect R21-11 rel:R21-11#3e5ed4812026-10-14 Inspect R22-11 rel:R22-11#ff79fc6e2026-10-14 Inspect R23-11 rel:R23-11#d00320912026-10-14 Inspect R24-11 rel:R24-11#53d162e92026-10-14 Inspect R25-11 rel:R25-11#00612c132026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
void StopOffer () noexcept;
This StopOffer will disable the forwarding of request messages from DM
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a5bf3be9cb65
来源
未决问题(1)
此使用说明基于 AUTOSAR 规范自动生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Rückgabewert
Status: valid/unmigrated
Version: rel:R25-11#17c0ffab
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_00595@rel:R25-11#17c0ffab
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#873295662026-09-30 Inspect R19-11 rel:R19-11#5c30b7b32026-10-14 Inspect R20-11 rel:R20-11#257cca052026-10-14 Inspect R21-11 rel:R21-11#98dbebcc2026-10-14 Inspect R22-11 rel:R22-11#e86492b22026-10-14 Inspect R23-11 rel:R23-11#67ad16902026-10-14 Inspect R24-11 rel:R24-11#048d83682026-10-14 Inspect R25-11 rel:R25-11#17c0ffab2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterface3> & operator= (const <RoutineInterface3> &other)=delete;
Copy assignment constructor deletion
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface>
Status: valid/unmigrated
Version: rel:R25-11#93dce16d
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_01667@rel:R25-11#93dce16d
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#65fdd5df2026-09-30 Inspect R23-11 rel:R23-11#1963ba5c2026-10-14 Inspect R24-11 rel:R24-11#1ca00f0b2026-10-14 Inspect R25-11 rel:R25-11#93dce16d2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterface5> & operator= (<RoutineInterface5> &&other)=delete;
Move assignment constructor
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface>
Status: valid/unmigrated
Version: rel:R25-11#7f70d528
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_01668@rel:R25-11#7f70d528
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#e38c92522026-09-30 Inspect R23-11 rel:R23-11#081628142026-10-14 Inspect R24-11 rel:R24-11#00c2db442026-10-14 Inspect R25-11 rel:R25-11#7f70d5282026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ~<RoutineInterface6> () noexcept;
Destruction of a DiagnosticRoutine
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Status: valid/unmigrated
Version: rel:R25-11#ab59108c
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_00590@rel:R25-11#ab59108c
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#68886fc72026-09-30 Inspect R19-11 rel:R19-11#09579de52026-10-14 Inspect R20-11 rel:R20-11#98e397db2026-10-14 Inspect R21-11 rel:R21-11#9c38c0412026-10-14 Inspect R22-11 rel:R22-11#cf324cd72026-10-14 Inspect R23-11 rel:R23-11#12f0fde12026-10-14 Inspect R24-11 rel:R24-11#51b34c152026-10-14 Inspect R25-11 rel:R25-11#ab59108c2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
常量 / 变量文档
<RoutineInterfaceRequestResultOutArgType> <RoutineInterfaceRequestResultOutArg>;
Member declaration representing an out argument in an RequestResultOutput.
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Symbol <RoutineInterfaceRequestResultOutArg> Typ <RoutineInterfaceRequestResultOutArgType>
Status: valid/unmigrated
Version: rel:R25-11#6d31441f
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_80005@rel:R25-11#6d31441f
Point-in-Time History:
Release:
R25-11 (Current / Active) R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (3):
R25-11 rel:R25-11#0e37fbe32026-09-30 Inspect R24-11 rel:R24-11#c72a3d632026-10-14 Inspect R25-11 rel:R25-11#6d31441f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterfaceStartOutArgType> <RoutineInterfaceStartOutArg>;
Member declaration representing an out argument in an StartOutput.
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Symbol <RoutineInterfaceStartOutArg> Typ <RoutineInterfaceStartOutArgType>
Status: valid/unmigrated
Version: rel:R25-11#4cb002d9
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_80003@rel:R25-11#4cb002d9
Point-in-Time History:
Release:
R25-11 (Current / Active) R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (3):
R25-11 rel:R25-11#44fdeb1f2026-09-30 Inspect R24-11 rel:R24-11#1d1dd7932026-10-14 Inspect R25-11 rel:R25-11#4cb002d92026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
<RoutineInterfaceStopOutArgType> <RoutineInterfaceStopOutArg>;
Member declaration representing an out argument in an StopOutput.
Header-Datei #include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h" Scope class <RoutineInterface-Namespace>::<RoutineInterface> Symbol <RoutineInterfaceStopOutArg> Typ <RoutineInterfaceStopOutArgType>
Status: valid/unmigrated
Version: rel:R25-11#f0e08060
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_80004@rel:R25-11#f0e08060
Point-in-Time History:
Release:
R25-11 (Current / Active) R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (3):
R25-11 rel:R25-11#e87412ca2026-09-30 Inspect R24-11 rel:R24-11#1675433b2026-10-14 Inspect R25-11 rel:R25-11#f0e080602026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically 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 · 德文原文