DEENESPTFRRUARHIKOZHNL

类 ara::phm::RecoveryAction

[SWS_PHM_01140] Upstream: RS_HM_09159

class RecoveryAction {...};

RecoveryAction abstract class.

Header-Datei#include "ara/phm/recovery_action.h"
Forwarding-Header#include "ara/phm/phm_fwd.h"
Scopenamespace ara::phm

用户指南人工智能生成

用于应用程序在发生 PHM 监控错误时提供并执行恢复措施。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1c1f80bf2db1 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用于应用程序在发生 PHM 监控错误时提供并执行恢复措施。

抽象类 ara::phm::RecoveryAction 使应用程序能够为 Platform Health Management 提供应用特定的恢复措施 [SWS_PHM_01141]。实例化之后,调用 Offer() 会使 Phm-Daemon 处于准备接收状态,从而在检测到监控错误时调用重写的成员函数 RecoveryHandler [SWS_PHM_01143]。如果错误无法在应用程序端消除,系统将通过触发看门狗进行升级。出于安全原因,复制和移动操作被完全禁止,并且诸如 Offer() 等管理调用不是线程安全的。

上下文

类 ara::phm::RecoveryAction 是 AUTOSAR Adaptive Platform 的 Platform Health Management(PHM)模块中的抽象基类。它用作功能性应用程序的标准化接口,以提供特定的恢复和错误处理措施,这些措施在检测到监控错误时由 PHM 触发。

主要的交互方包括:

  • 派生应用程序组件:解释:这通常应当位于 State Management 中,因为后者负责协调的系统响应,并在错误上下文中被直接提及。 问题 Q-714ff81a33aa3e92 (未决)应用程序通过重写方法 RecoveryHandler [SWS_PHM_01142] 来实现应用特定的错误消除。
  • Phm-Daemon:通过 Offer [SWS_PHM_01143] 管理恢复操作的注册,并在确定存在错误时控制已注册处理程序的调用 [SWS_PHM_01142]。
  • 看门狗:如果应用程序端的恢复无法成功执行,PHM 将接管进一步的错误处理,并触发看门狗以提供安全保障 [SWS_PHM_01142]。

与 AUTOSAR 模型的逻辑链接在实例化时通过 ara::core::InstanceSpecifier 进行,该说明符必须引用 PhmRecoveryAction 接口的 PPortPrototype [SWS_PHM_01141]。

生命周期

实例通过显式构造函数在传递匹配的 Instance-Specifier 的情况下创建 [SWS_PHM_01141]。该构造函数是线程安全(thread-safe)且异常安全(noexcept)的。

由于 RecoveryAction 与特定端口强绑定,因此复制和移动操作被完全禁止:复制构造函数 [SWS_PHM_01150] 和复制赋值运算符 [SWS_PHM_01152] 均已删除(= delete)。同样,移动构造函数 [SWS_PHM_01149] 和移动赋值运算符 [SWS_PHM_01151] 也已删除。规范对此给出的理由是,在提供实例之后进行移动可能会导致 RecoveryHandler 在派生类完全构造之前被调用,从而引发未定义行为或未处理的异常,并危及系统安全 [SWS_PHM_01149]、[SWS_PHM_01151]。

生命周期包含两个不同的状态:

  • 未提供:紧接着构造之后以及调用 StopOffer [SWS_PHM_01144] 之后,实例处于非活动状态。禁止调用 RecoveryHandler。
  • 已提供:通过调用 Offer() [SWS_PHM_01143],操作在 Phm-Daemon 中被激活并启用处理程序调用。

对象通过虚析构函数释放 [SWS_PHM_01145]。关于并发性,构造函数和 RecoveryHandler 被指定为线程安全,而 Offer()、StopOffer() 和析构函数不是线程安全(not thread-safe)的 [SWS_PHM_01141]、[SWS_PHM_01142]、[SWS_PHM_01143]、[SWS_PHM_01144]、[SWS_PHM_01145]。解释:在实践中,销毁实例之前应当始终需要调用 StopOffer(),以在对象拆卸过程中可靠地排除异步处理程序调用。 问题 Q-a1f47898bed925fd (未决)

diag_recovery_lifecycle NichtAngeboten 未提供 Angeboten Angeboten NichtAngeboten->Angeboten Offer() Angeboten->NichtAngeboten StopOffer() Angeboten->Angeboten RecoveryHandler()

状态图:RecoveryAction 的生命周期状态,包含通过 Offer 激活以及通过 StopOffer 停用。来源:[SWS_PHM_01141]、[SWS_PHM_01143]、[SWS_PHM_01144]、[SWS_PHM_01145]

使用路径

典型使用划分为固定的调用序列:

  1. 定义实现纯虚成员函数 RecoveryHandler 的派生类 [SWS_PHM_01142]。
  2. 在指定 Instance-Specifier [SWS_PHM_01141] 的情况下实例化派生对象。
  3. 调用 Offer(),以便向 Phm-Daemon 提供恢复操作 [SWS_PHM_01143]。
  4. 对错误作出响应:PHM 检测到错误时,会调用 RecoveryHandler(executionError, supervision) [SWS_PHM_01142]。该方法提供 ara::core::Future<void>,通过它报告错误消除的结果。
  5. 一旦实例不再需要服务恢复操作,便调用 StopOffer() [SWS_PHM_01144]。
  6. 通过析构函数 [SWS_PHM_01145] 销毁对象。
Nutzungsablauf von ara::phm::RecoveryAction应用RecoveryActionPhm-DaemonRecoveryAction(instance)Offer()Aktion anmeldenBestaetigungResult<void> (Erfolg)Use Case: Fehlerbehandlung durch PHMRecoveryHandler(executionError, supervision)Future<void>Use Case: 注销与拆除StopOffer()~RecoveryAction()

时序图:恢复操作在注册、错误通知和注销时的典型调用顺序。来源:[SWS_PHM_01141]、[SWS_PHM_01142]、[SWS_PHM_01143]、[SWS_PHM_01144]、[SWS_PHM_01145]

错误场景

在模型配置和运行的范围内,必须考虑特定的错误条件:

  • 构造时的模型与验证违规 [SWS_PHM_01141]:
    • AraNotInitializedViolation:在实例化之前未初始化 ARA 运行时环境。
    • InstanceSpecifierMappingIntegrityViolation:Instance-Specifier 在模型中无法解析或未引用 PortPrototype。
    • PortInterfaceMappingViolation:通过 RecoveryNotificationToPPortPrototypeMapping 引用的端口原型未由 PhmSupervisionRecoveryNotificationInterface 类型化。
    • ProcessMappingViolation:在运行时不存在针对 Instance-Ref 适当建模的进程。
    • InstanceSpecifierAlreadyInUseViolation:Instance-Specifier 已在当前进程中使用。
  • 提供时的通信错误 [SWS_PHM_01143]: 若与 Phm-Daemon 的通信失败,Offer() 将提供带有错误代码 PhmErrc::kOfferFailed 的结果。
  • 恢复中不可消除的错误 [SWS_PHM_01142]: 若 State Management 无法解决报告的错误,由 RecoveryHandler 返回的 Future 将返回错误 PhmErrc::kSMCanNotHandleRecovery。随后 Platform Health Management 介入并触发看门狗。

本类指南由 AI 整理助手基于 AUTOSAR R25-11 规范生成。

成员图

构造函数和析构函数

2

运算符

1

类图

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

G nara__phm__RecoveryAction85 RecoveryAction + RecoveryAction() + operator=() + ~RecoveryAction() + Offer() + RecoveryHandler() + StopOffer()

详细视图

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

构造函数和析构函数

Creation of an RecoveryAction.

重载 RecoveryAction 3
explicit RecoveryAction (const ara::core::InstanceSpecifier &instance) noexcept; SWS_PHM_01141
RecoveryAction (RecoveryAction &&ra)=delete; SWS_PHM_01149
RecoveryAction (const RecoveryAction &)=delete; SWS_PHM_01150

Destructor for RecoveryAction.

virtual ~RecoveryAction () noexcept;

方法

Offer 函数

Enables potential invocations of RecoveryHandler.

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

RecoveryHandler to be invoked by PHM. The handler invocation needs to be enabled before by a call of RecoveryAction::Offer.

virtual ara::core::Future< void > RecoveryHandler (const ara::exec::ExecutionErrorEvent &executionError, TypeOfSupervision supervision) noexcept=0;
StopOffer 函数

Disables invocations of RecoveryHandler.

void StopOffer () noexcept;

运算符

operator= 函数 2

The move assignment operator for the RecoveryAction shall not be used. Rationale: Using the move assignment after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety.

重载 = 2
RecoveryAction & operator= (RecoveryAction &&ra)=delete; SWS_PHM_01151
RecoveryAction & operator= (const RecoveryAction &)=delete; SWS_PHM_01152

方法文档

函数 Offer [SWS_PHM_01143] Upstream: RS_HM_09159, RS_AP_00159

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

Enables potential invocations of RecoveryHandler.

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

无参数方法Offer属于类ara::phm::RecoveryAction,并通过头文件ara/phm/recovery_action.h包含[SWS_PHM_01143]。其目的是向 Platform Health Management (PHM) 提供服务,以便后续能够调用RecoveryHandler [SWS_PHM_01143]。该调用为同步执行且不接受任何参数[SWS_PHM_01143]。

执行结果作为ara::core::Result<void>返回[SWS_PHM_01143]。在无错误状态下,此Result为空。如果与 PHM 守护进程的通信失败,则无法提供该服务,且函数将返回带有回滚语义的错误代码PhmErrc::kOfferFailed [SWS_PHM_01143]。

在执行安全性方面,该方法被指定为noexcept且具备异常安全性(exception safe)[SWS_PHM_01143]。但其明确定义为非线程安全(not thread-safe)[SWS_PHM_01143]。

在系统体系中,与错误处理存在直接耦合:类ara::phm::RecoveryAction的RecoveryHandler用于对执行错误(ara::exec::ExecutionErrorEvent)和监控错误(TypeOfSupervision)作出响应[SWS_PHM_01142]。只有在先前通过RecoveryAction::Offer显式使能激活后,PHM 才能调用该处理程序[SWS_PHM_01142]。

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

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >A Result, being either empty or containing any of the errors defined below.

Fehler

FehlercodeBeschreibung
PhmErrc::kOfferFailedrollback_semantics Service could not be offered due to failure of communication with Phm daemon

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

Record
AUTOSAR/AP/record/SWS_PHM_01143
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01143@rel:R25-11#ba9b51c6
Content hash
ba9b51c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01143
Status: valid/unmigrated Version: rel:R25-11#d8dd83b4 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_PHM_01143@rel:R25-11#d8dd83b4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#857c7b2e2026-09-30
  • R19-11rel:R19-11#ca5925372026-10-14
  • R20-11rel:R20-11#17739ebd2026-10-14
  • R21-11rel:R21-11#da1133fa2026-10-14
  • R22-11rel:R22-11#cf1368c72026-10-14
  • R23-11rel:R23-11#86ed8de42026-10-14
  • R24-11rel:R24-11#d8dd83b42026-10-14
  • R25-11rel:R25-11#d8dd83b42026-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

函数 RecoveryAction [SWS_PHM_01141] Upstream: RS_HM_09159, RS_AP_00159, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

explicit RecoveryAction (const ara::core::InstanceSpecifier &instance) noexcept;

Creation of an RecoveryAction.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)AraNotInitialized- Violation message that is sent in case a constructor or function Violation checks for an initialized ara and identifies that ara is not initialized. 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 referenced by a pingViolation RecoveryNotificationToPPortPrototypeMapping needs to be typed by a PhmSupervisionRecoveryNotificationInterface. 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
instanceinstance specifier to the PPortPrototype of a PhmRecoveryAction Interface

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

Record
AUTOSAR/AP/record/SWS_PHM_01141
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01141@rel:R25-11#3b9acbcd
Content hash
3b9acbcd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01141
Status: valid/unmigrated Version: rel:R25-11#a1bff3f3 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_PHM_01141@rel:R25-11#a1bff3f3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f5f6a77d2026-09-30
  • R19-11rel:R19-11#415751492026-10-14
  • R20-11rel:R20-11#0bb740092026-10-14
  • R21-11rel:R21-11#0bb740092026-10-14
  • R22-11rel:R22-11#9ba3238f2026-10-14
  • R23-11rel:R23-11#d99db8452026-10-14
  • R24-11rel:R24-11#4bbb0aac2026-10-14
  • R25-11rel:R25-11#a1bff3f32026-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

函数 RecoveryAction [SWS_PHM_01149] Upstream: RS_HM_09159, RS_AP_00159

RecoveryAction (RecoveryAction &&ra)=delete;

The move constructor operator for the RecoveryAction shall not be used. Rationale: Using the move constructor after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

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

Record
AUTOSAR/AP/record/SWS_PHM_01149
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01149@rel:R25-11#25f82cdb
Content hash
25f82cdb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01149
Status: valid/unmigrated Version: rel:R25-11#ad5dcd6d Versionshistorie & Revisions (1 transition, 7 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_PHM_01149@rel:R25-11#ad5dcd6d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#174faeae2026-09-30
  • R20-11rel:R20-11#388d41232026-10-14
  • R21-11rel:R21-11#388d41232026-10-14
  • R22-11rel:R22-11#cfcda3ac2026-10-14
  • R23-11rel:R23-11#75ceb7ff2026-10-14
  • R24-11rel:R24-11#1ab59f662026-10-14
  • R25-11rel:R25-11#ad5dcd6d2026-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

函数 RecoveryAction [SWS_PHM_01150] Upstream: RS_HM_09159

RecoveryAction (const RecoveryAction &)=delete;

The copy constructor for RecoveryAction shall not be used.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

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

Record
AUTOSAR/AP/record/SWS_PHM_01150
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01150@rel:R25-11#1db1bb61
Content hash
1db1bb61
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01150
Status: valid/unmigrated Version: rel:R25-11#fe708e57 Versionshistorie & Revisions (1 transition, 7 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_PHM_01150@rel:R25-11#fe708e57
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#9fad0d072026-09-30
  • R20-11rel:R20-11#73566a6f2026-10-14
  • R21-11rel:R21-11#73566a6f2026-10-14
  • R22-11rel:R22-11#06e07d412026-10-14
  • R23-11rel:R23-11#c100fbf82026-10-14
  • R24-11rel:R24-11#fe708e572026-10-14
  • R25-11rel:R25-11#fe708e572026-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

函数 RecoveryHandler [SWS_PHM_01142] Upstream: RS_HM_09159, RS_AP_00159

virtual ara::core::Future< void > RecoveryHandler (const ara::exec::ExecutionErrorEvent &executionError, TypeOfSupervision supervision) noexcept=0;

RecoveryHandler to be invoked by PHM. The handler invocation needs to be enabled before by a call of RecoveryAction::Offer.

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

ara::phm::RecoveryAction 中的纯虚方法 RecoveryHandler 用作异步回调,一旦监控失败,由 Platform Health Management (PHM) 调用 [SWS_PHM_01142]。调用时,PHM 传递包含恢复详细信息的错误事件 executionError,并通过参数 supervision 传递失败的基本监控的类型 [SWS_PHM_01142]。

关于使用和生命周期,适用固定的顺序和并发条件:

通过 ara::core::Future<void> 异步返回 [SWS_PHM_01142]。如果恢复成功,Future 将以 void 兑现。如果 State Management 无法执行恢复,Future 将以错误代码 PhmErrc::kSMCanNotHandleRecovery 失败;在此情况下,Platform Health Management 将介入并触发看门狗 [SWS_PHM_01142]。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

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

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
executionErrorInformation on detected error, shall give further information for error recovery.
supervisionThe type of elementary supervision which failed.

Rückgabewert

TypBeschreibung
ara::core::Future< void >void if recovery is successful, otherwise it returns kSMCanNot HandleRecovery error

Fehler

FehlercodeBeschreibung
PhmErrc::kSMCanNotHandleRecoveryrollback_semantics State Management cannot handle the recovery and PlatformHealth Management will take over by firing the watchdog.

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

Record
AUTOSAR/AP/record/SWS_PHM_01142
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01142@rel:R25-11#9b442721
Content hash
9b442721
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01142
Status: valid/unmigrated Version: rel:R25-11#d7b7a988 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_PHM_01142@rel:R25-11#d7b7a988
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9d70b1c72026-09-30
  • R19-11rel:R19-11#74f0a8f02026-10-14
  • R20-11rel:R20-11#0cc3316c2026-10-14
  • R21-11rel:R21-11#0cc3316c2026-10-14
  • R22-11rel:R22-11#badb86d42026-10-14
  • R23-11rel:R23-11#89d68dcf2026-10-14
  • R24-11rel:R24-11#f8c2bd5d2026-10-14
  • R25-11rel:R25-11#d7b7a9882026-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_PHM_01144] Upstream: RS_HM_09159, RS_AP_00159

void StopOffer () noexcept;

Disables invocations of RecoveryHandler.

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

类 ara::phm::RecoveryAction 的方法 StopOffer 用于停用关联的 RecoveryHandler 的执行 [SWS_PHM_01144]。它在头文件 ara/phm/recovery_action.h 中声明 [SWS_PHM_01144]。

用法与语义

该函数的签名具有 void StopOffer() noexcept;,不接受任何参数且不返回返回值 [SWS_PHM_01144]。通过此调用,应用程序向平台健康管理(PHM)发出信号,表明不再应调用该处理程序 [SWS_PHM_01144]。该调用同步执行;正在运行的处理程序实例预计会在停用之前或停用时完成(Interpretation)。 问题 Q-a333b1e2f0634ed1 (未决)

错误处理与并发

  • Exception-Sicherheit:该操作被声明为 noexcept,并被视为完全异常安全;不存在错误码或异常 [SWS_PHM_01144]。
  • Thread-Sicherheit:该方法被明确指定为 not thread-safe [SWS_PHM_01144]。因此,在同一个 RecoveryAction 实例上的并发调用需要调用方进行外部同步。

该文本由 AI 生成,并基于 AUTOSAR Adaptive R25-11 规范。

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
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_PHM_01144
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01144@rel:R25-11#5f6d7dd3
Content hash
5f6d7dd3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01144
Status: valid/unmigrated Version: rel:R25-11#0a3b9401 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_PHM_01144@rel:R25-11#0a3b9401
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e69e06162026-09-30
  • R19-11rel:R19-11#122a6efb2026-10-14
  • R20-11rel:R20-11#485b84892026-10-14
  • R21-11rel:R21-11#adcb24f02026-10-14
  • R22-11rel:R22-11#55be05992026-10-14
  • R23-11rel:R23-11#b64d35982026-10-14
  • R24-11rel:R24-11#0a3b94012026-10-14
  • R25-11rel:R25-11#0a3b94012026-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_PHM_01151] Upstream: RS_HM_09159, RS_AP_00159

RecoveryAction & operator= (RecoveryAction &&ra)=delete;

The move assignment operator for the RecoveryAction shall not be used. Rationale: Using the move assignment after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

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

Record
AUTOSAR/AP/record/SWS_PHM_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01151@rel:R25-11#024dd0e6
Content hash
024dd0e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01151
Status: valid/unmigrated Version: rel:R25-11#4359eed2 Versionshistorie & Revisions (1 transition, 7 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_PHM_01151@rel:R25-11#4359eed2
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#472762232026-09-30
  • R20-11rel:R20-11#41ba0c072026-10-14
  • R21-11rel:R21-11#41ba0c072026-10-14
  • R22-11rel:R22-11#a0be95c32026-10-14
  • R23-11rel:R23-11#2eed5b982026-10-14
  • R24-11rel:R24-11#05a1b01f2026-10-14
  • R25-11rel:R25-11#4359eed22026-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_PHM_01152] Upstream: RS_HM_09159

RecoveryAction & operator= (const RecoveryAction &)=delete;

The copy assignment operator for RecoveryAction shall not be used.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

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

Record
AUTOSAR/AP/record/SWS_PHM_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01152@rel:R25-11#86bb404c
Content hash
86bb404c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01152
Status: valid/unmigrated Version: rel:R25-11#ff4c96ac Versionshistorie & Revisions (1 transition, 7 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_PHM_01152@rel:R25-11#ff4c96ac
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#5c298d6f2026-09-30
  • R20-11rel:R20-11#32919afc2026-10-14
  • R21-11rel:R21-11#32919afc2026-10-14
  • R22-11rel:R22-11#9157a7c42026-10-14
  • R23-11rel:R23-11#f01e06fc2026-10-14
  • R24-11rel:R24-11#ff4c96ac2026-10-14
  • R25-11rel:R25-11#ff4c96ac2026-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

函数 ~RecoveryAction [SWS_PHM_01145] Upstream: RS_HM_09159, RS_AP_00134

virtual ~RecoveryAction () noexcept;

Destructor for RecoveryAction.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
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_PHM_01145
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01145@rel:R25-11#a16ddfac
Content hash
a16ddfac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01145
Status: valid/unmigrated Version: rel:R25-11#5718b75e Versionshistorie & Revisions (1 transition, 7 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_PHM_01145@rel:R25-11#5718b75e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#bddb59f42026-09-30
  • R20-11rel:R20-11#a25806312026-10-14
  • R21-11rel:R21-11#a25806312026-10-14
  • R22-11rel:R22-11#f9931f022026-10-14
  • R23-11rel:R23-11#d1de17222026-10-14
  • R24-11rel:R24-11#f734134e2026-10-14
  • R25-11rel:R25-11#5718b75e2026-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