DEENESPTFRRUARHIKOZHNL

类 ara::idsm::QualifiedEventsReceiver

Diese Seite wurde vollständig KI-generiert auf Basis von SWS IntrusionDetectionSystemManager (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

Header: ara/idsm/qualified_events_receiver.h · Spezifikationselemente: 11

用户指南人工智能生成

通过建模的 P-Port 接收 IdsM 的合格安全事件,并将其转发给回调。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 46b1b6dbd698 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

通过建模的 P-Port 接收 IdsM 的合格安全事件,并将其转发给回调。

该抽象类支持通过建模的 PPort 从 IdsM 接收合格安全事件 [SWS_AIDSM_10800]。应用程序派生自己的接收器类,使用实例说明符将其实例化,并通过 Offer() 激活事件传递 [SWS_AIDSM_10801]。传入的事件通过具有可选上下文和时间数据的抽象回调方法接收。由于核心状态方法和回调方法不是线程安全的,因此该实例需要协调的生命周期管理。

上下文

类 ara::idsm::QualifiedEventsReceiver 代表 AUTOSAR Adaptive Platform 模块 idsm 中用于接收合格安全事件(Qualified Security Events,QSEv)的功能接口 [SWS_AIDSM_10800]。它用作软件设计中建模的提供端口(Provided-Port,PPort)的应用程序端端点 [SWS_AIDSM_10801]。

该概念基于抽象基类的原理:ara::idsm::QualifiedEventsReceiver 声明了纯虚回调方法 [SWS_AIDSM_10807]、[SWS_AIDSM_10810]。主要的交互对象是实现专用子类的自适应应用程序,以及检测合格安全事件并通过 PPort 转发给实例的 Intrusion Detection System Manager (IdsM)。

生命周期

接收器的创建是通过实例化继承自 QualifiedEventsReceiver 的类来进行的,同时指定引用建模 PPort 的 ara::core::InstanceSpecifier [SWS_AIDSM_10801]。此有参构造函数被指定为线程安全(thread-safe)[SWS_AIDSM_10801]。

关于所有权和值语义,该类被严格设计为仅移动(Move-Only)。拷贝构造函数 [SWS_AIDSM_10804] 和拷贝赋值运算符 [SWS_AIDSM_10806] 均已删除(= delete)。不过所有权转移是允许的:移动构造函数被实现为线程安全 [SWS_AIDSM_10803],而移动赋值运算符不是线程安全的(not thread-safe)[SWS_AIDSM_10805]。

功能生命周期分为两个主要阶段:

  • 提供:实例化后不会立即传递任何事件。只有调用 Offer() 才会启用事件接收,并授权 IdsM 调用回调方法 [SWS_AIDSM_10808]。
  • 停用:通过方法 StopOffer() 阻止进一步接收事件 [SWS_AIDSM_10809]。

销毁通过虚析构函数 ~QualifiedEventsReceiver() 执行 [SWS_AIDSM_10802]。由于析构函数不是线程安全的,因此在释放接收器对象之前应始终执行 StopOffer(),以确保排除销毁过程中并发执行回调的情况。

使用路径

使用接收器的典型流程包括派生、提供和有序拆除:

  1. 类定义:应用程序定义一个子类,并重写两个纯虚方法:用于具有无版本上下文数据事件的 OnEventQualification() [SWS_AIDSM_10807],以及用于有版本或空上下文数据的 [SWS_AIDSM_10810]。
  2. 实例化:实例化子类,并将端口的实例标识符传递给基类构造函数 [SWS_AIDSM_10801]。
  3. 通过 Offer 激活:应用程序调用 Offer() 以启动事件接收 [SWS_AIDSM_10808]。返回的 ara::core::Result<void> 确认成功启用。
  4. 事件接收:如果 IdsM 检测到合格安全事件,它会根据数据格式调用相应的回调方法:
    • 用于无版本数据的 OnEventQualification(EventIdType, ara::core::Optional<ContextDataType>, ara::core::Optional<TimestampType>) [SWS_AIDSM_10807]。
    • 用于有版本上下文数据或事件特有缺失数据的 OnEventQualification(EventIdType, ara::core::Optional<VersionedContextDataType>, ara::core::Optional<TimestampType>) [SWS_AIDSM_10810]。
  5. 停用与销毁:在应用程序终止之前调用 StopOffer() [SWS_AIDSM_10809],并通过析构函数正常释放对象 [SWS_AIDSM_10802]。
Nutzungspfad von QualifiedEventsReceiver应用QualifiedEventsReceiverIdsMUse Case: 创建与释放QualifiedEventsReceiver(instance)Offer()在 PPort 上注册BestaetigungResult<void>Use Case: EreignisqualifizierungaltUnversionierte KontextdatenSecurity-EventOnEventQualification(event, ContextDataType, timestamp)带版本的上下文数据或无上下文数据Security-EventOnEventQualification(event, VersionedContextDataType, timestamp)Use Case: 终止与清理StopOffer()Deregistrierung~QualifiedEventsReceiver()

时序图:实例化、通过 Offer() 启用、通过 OnEventQualification() 接收合格事件以及通过 StopOffer() 注销的典型流程。来源:[SWS_AIDSM_10801]、[SWS_AIDSM_10808]、[SWS_AIDSM_10807]、[SWS_AIDSM_10810]、[SWS_AIDSM_10809]、[SWS_AIDSM_10802]。

错误场景

在使用时可能会出现各种错误条件和并发冲突:

  • Offer() 失败:方法 Offer() 返回 ara::core::Result<void> [SWS_AIDSM_10808]。Interpretation:如果建模的端口无法在系统中绑定,或者向 IdsM 注册失败,则 Result 对象会返回错误。 问题 (未决)应用程序只有在成功验证后,才能认为回调会被触发。
  • 缺失上下文或时间戳值:在两个回调签名中,上下文数据和时间戳都封装在 ara::core::Optional 中([SWS_AIDSM_10807]、[SWS_AIDSM_10810])。未经检查和验证的访问(例如访问空上下文数据)会导致应用程序处理逻辑中出现错误。
  • 非线程安全操作:除构造函数([SWS_AIDSM_10801]、[SWS_AIDSM_10803])外,所有操作——即 Offer() [SWS_AIDSM_10808]、StopOffer() [SWS_AIDSM_10809]、赋值运算符 [SWS_AIDSM_10805]、析构函数 [SWS_AIDSM_10802] 以及回调([SWS_AIDSM_10807]、[SWS_AIDSM_10810])——都不是线程安全的。从不同线程对 Offer() 或 StopOffer() 进行不协调的调用会导致未定义行为。

本文档由 AI 生成,用作 AUTOSAR Adaptive Platform 的参考文档。

概要

class QualifiedEventsReceiver {...};

成员图

详细视图

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

声明

class QualifiedEventsReceiver {...};

构造函数和析构函数

重载 QualifiedEventsReceiver 3
QualifiedEventsReceiver(QualifiedEventsReceiver&& ra) noexcept; SWS_AIDSM_10803
QualifiedEventsReceiver(const QualifiedEventsReceiver&) = delete; SWS_AIDSM_10804
explicit QualifiedEventsReceiver(const ara::core::InstanceSpecifier& instance) noexcept; SWS_AIDSM_10801
virtual ~QualifiedEventsReceiver() noexcept;

方法

Offer 函数
ara::core::Result<void> Offer() noexcept;
重载 OnEventQualification 2
virtual void OnEventQualification(EventIdType event, ara::core::Optional<ContextDataType> contextData, ara::core::Optional<TimestampType> timestamp) noexcept = 0; SWS_AIDSM_10807
virtual void OnEventQualification(EventIdType event, ara::core::Optional<VersionedContextDataType> contextData, ara::core::Optional<TimestampType> timestamp) noexcept = 0; SWS_AIDSM_10810
StopOffer 函数
void StopOffer() noexcept;

运算符

operator= 函数 2
重载 = 2
QualifiedEventsReceiver& operator=(QualifiedEventsReceiver&& ra) noexcept; SWS_AIDSM_10805
QualifiedEventsReceiver& operator=(const QualifiedEventsReceiver&) = delete; SWS_AIDSM_10806

方法与类型文档

类 QualifiedEventsReceiver [SWS_AIDSM_10800]

class QualifiedEventsReceiver {...};
Headerara/idsm/qualified_events_receiver.h

Klasse zum Empfangen qualifizierter Security Events von IdsM.

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

类 QualifiedEventsReceiver 用于在头文件 ara/idsm/qualified_events_receiver.h 的上下文中从 Intrusion Detection System Manager(IdsM)接收限定的 Security Events [SWS_AIDSM_10800]。

使用与实例化:通过构造函数 QualifiedEventsReceiver(const ara::core::InstanceSpecifier& instance) 为建模的 PPort 创建实例 [SWS_AIDSM_10801]。该类模型强制使用移动语义:复制构造函数 [SWS_AIDSM_10804] 和复制赋值运算符 [SWS_AIDSM_10806] 已被删除(= delete)。实例可以改为通过移动构造函数 [SWS_AIDSM_10803] 或移动赋值 [SWS_AIDSM_10805] 进行转移。

并发性与线程安全:通过有参构造函数 [SWS_AIDSM_10801] 创建实例以及使用移动构造函数 [SWS_AIDSM_10803] 进行移动被指定为线程安全。相比之下,通过虚析构函数 [SWS_AIDSM_10802] 进行销毁以及通过 operator= [SWS_AIDSM_10805] 进行移动赋值被定义为非线程安全(not thread-safe)。因此,调用方必须确保不会在同一对象上并发执行赋值和销毁操作。

错误处理:所有指定的生命周期和赋值函数——构造函数、析构函数和移动赋值——均标有 noexcept,因此不会触发异常。

本文本由 AI 生成,仅供参考。一切以 AUTOSAR 规范为准。

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10800
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10800@rel:R25-11#74bb6416
Content hash
74bb6416
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10800
Status: valid/unmigrated Version: rel:R25-11#b7d49f22 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_AIDSM_10800@rel:R25-11#b7d49f22
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#849a0ac52026-09-30
  • R24-11rel:R24-11#8fc700962026-10-14
  • R25-11rel:R25-11#b7d49f222026-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

函数 QualifiedEventsReceiver [SWS_AIDSM_10803]

QualifiedEventsReceiver(QualifiedEventsReceiver&& ra) noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetythread-safe

Verschiebekonstruktor.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10803
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10803@rel:R25-11#dc5bf13e
Content hash
dc5bf13e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10803
Status: valid/unmigrated Version: rel:R25-11#e1a58216 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_AIDSM_10803@rel:R25-11#e1a58216
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7acc9b972026-09-30
  • R24-11rel:R24-11#e5cf413f2026-10-14
  • R25-11rel:R25-11#e1a582162026-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

函数 QualifiedEventsReceiver [SWS_AIDSM_10804]

QualifiedEventsReceiver(const QualifiedEventsReceiver&) = delete;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400

Kopierkonstruktor ist gelöscht.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10804
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10804@rel:R25-11#4d63e0e1
Content hash
4d63e0e1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10804
Status: valid/unmigrated Version: rel:R25-11#4272c27c 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_AIDSM_10804@rel:R25-11#4272c27c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d0bbcb002026-09-30
  • R24-11rel:R24-11#4272c27c2026-10-14
  • R25-11rel:R25-11#4272c27c2026-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_AIDSM_10805]

QualifiedEventsReceiver& operator=(QualifiedEventsReceiver&& ra) noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe
RückgabeQualifiedEventsReceiver&

Verschiebezuweisung.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10805
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10805@rel:R25-11#7308a252
Content hash
7308a252
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10805
Status: valid/unmigrated Version: rel:R25-11#8c582375 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_AIDSM_10805@rel:R25-11#8c582375
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#69befdbe2026-09-30
  • R24-11rel:R24-11#8c5823752026-10-14
  • R25-11rel:R25-11#8c5823752026-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_AIDSM_10806]

QualifiedEventsReceiver& operator=(const QualifiedEventsReceiver&) = delete;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400

Kopierzuweisung ist gelöscht.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10806
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10806@rel:R25-11#ac3603e5
Content hash
ac3603e5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10806
Status: valid/unmigrated Version: rel:R25-11#4410c6bd 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_AIDSM_10806@rel:R25-11#4410c6bd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#51ca065e2026-09-30
  • R24-11rel:R24-11#4410c6bd2026-10-14
  • R25-11rel:R25-11#4410c6bd2026-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

函数 ~QualifiedEventsReceiver [SWS_AIDSM_10802]

virtual ~QualifiedEventsReceiver() noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe

Virtueller Destruktor.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10802
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10802@rel:R25-11#2a1c4fb5
Content hash
2a1c4fb5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10802
Status: valid/unmigrated Version: rel:R25-11#aa2fa6a2 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_AIDSM_10802@rel:R25-11#aa2fa6a2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#099190e72026-09-30
  • R24-11rel:R24-11#aa2fa6a22026-10-14
  • R25-11rel:R25-11#aa2fa6a22026-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

函数 QualifiedEventsReceiver [SWS_AIDSM_10801]

explicit QualifiedEventsReceiver(const ara::core::InstanceSpecifier& instance) noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetythread-safe

Erstellt einen Empfänger für den modellierten PPort.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10801
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10801@rel:R25-11#9f4893e4
Content hash
9f4893e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10801
Status: valid/unmigrated Version: rel:R25-11#85f7eedc 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_AIDSM_10801@rel:R25-11#85f7eedc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d20e382f2026-09-30
  • R24-11rel:R24-11#f6f1a1442026-10-14
  • R25-11rel:R25-11#85f7eedc2026-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_AIDSM_10808]

ara::core::Result<void> Offer() noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe
RückgabeResult<void>

Erlaubt IdsM-Aufrufe von OnEventQualification.

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

来自头文件 ara/idsm/qualified_events_receiver.h 的同步方法 Offer() 在调用时不带传入参数,用于指示对已限定安全事件的接收就绪状态 [SWS_AIDSM_10808]。成功调用后,允许 Intrusion Detection System Manager (IdsM) 随后通过回调方法 OnEventQualification 将已限定事件传输到该实例 [SWS_AIDSM_10808]。

签名使用 noexcept 声明了该函数,因此不会发生 C++ 异常,并提供 ara::core::Result<void> 作为返回类型 [SWS_AIDSM_10808]。由于规范未列出特定的错误代码,结果中传递的错误大概率指示在 IdsM 中的提供操作失败。 问题 Q-2eca6bb6ce27ec78 (未决)在并发性方面,该操作明确被指定为非线程安全(not thread-safe)[SWS_AIDSM_10808]。因此,调用方必须确保对 Offer() 的调用不会在未受保护的情况下与该实例的其他方法并行执行。

提供模式对应于模块 aidsm 中的标准化交互,其中服务提供者主动为 IdsM 启用其服务:

  • 在头文件 ara/idsm/timestamp_provider.h 中,函数 Offer() 激活时间戳的提供,并使 IdsM 能够调用 GetTimestamp [SWS_AIDSM_10408]。
  • 在头文件 ara/idsm/context_data_provider.h 中,Offer() 通过允许 IdsM 调用 ModifyContextData 来启用上下文数据的修改 [SWS_AIDSM_10507]。

本使用说明是基于 AUTOSAR R25-11 的规范要求自动创建的。

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10808
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10808@rel:R25-11#5792fbac
Content hash
5792fbac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10808
Status: valid/unmigrated Version: rel:R25-11#e5cecf66 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_AIDSM_10808@rel:R25-11#e5cecf66
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9ed530d82026-09-30
  • R24-11rel:R24-11#20cb63392026-10-14
  • R25-11rel:R25-11#e5cecf662026-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

函数 OnEventQualification [SWS_AIDSM_10807]

virtual void OnEventQualification(EventIdType event, ara::core::Optional<ContextDataType> contextData, ara::core::Optional<TimestampType> timestamp) noexcept = 0;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe

Abstrakter Callback für ein QSEv mit unversionierten Kontextdaten.

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

纯虚函数 OnEventQualification 在头文件 ara/idsm/qualified_events_receiver.h 中定义,并用作用于接收具有未版本化上下文数据的合格安全事件(QSEv)的抽象回调 [SWS_AIDSM_10807]。

用法与参数:该方法在合格事件到达时由 Intrusion Detection System Manager(IdsM)调用。它声明以下接口参数 [SWS_AIDSM_10807]:

  • event(EventIdType):合格事件的唯一标识符。
  • contextData(ara::core::Optional<ContextDataType>):事件的可选未版本化上下文数据。
  • timestamp(ara::core::Optional<TimestampType>):事件发生的可选时间戳。

该方法没有返回值(void)且不抛出异常(noexcept)[SWS_AIDSM_10807]。

并发:该回调方法被规范为非线程安全(not thread-safe)[SWS_AIDSM_10807]。因此,应用程序侧实现必须确保对并发调用或访问进行同步。

生命周期与交互:IdsM 对 OnEventQualification 的调用是状态相关的:它们仅在通过 Offer 激活后才被允许 [SWS_AIDSM_10808],并通过 StopOffer 被禁止 [SWS_AIDSM_10809]。对于带有版本化上下文数据或无上下文数据的事件,存在带有 VersionedContextDataType 的 OnEventQualification 的独立重载 [SWS_AIDSM_10810]。

本使用说明由 AI 生成,完全基于 AUTOSAR R25-11 的规范数据。

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10807
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10807@rel:R25-11#82490e00
Content hash
82490e00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10807
Status: valid/unmigrated Version: rel:R25-11#3ab50c4f 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_AIDSM_10807@rel:R25-11#3ab50c4f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ecec6fc02026-09-30
  • R24-11rel:R24-11#3ab50c4f2026-10-14
  • R25-11rel:R25-11#3ab50c4f2026-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

函数 OnEventQualification [SWS_AIDSM_10810]

virtual void OnEventQualification(EventIdType event, ara::core::Optional<VersionedContextDataType> contextData, ara::core::Optional<TimestampType> timestamp) noexcept = 0;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe

Abstrakter Callback für ein QSEv mit versionierten oder ohne Kontextdaten.

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

使用

纯虚成员函数 OnEventQualification 用作应用程序特定的回调,用于通知带有版本化上下文数据或无上下文数据的合格安全事件(QSEv)[SWS_AIDSM_10810]。该函数声明以下传递参数:

  • event(EventIdType):合格事件的标识符 [SWS_AIDSM_10810]。
  • contextData(ara::core::Optional<VersionedContextDataType>):事件的可选版本化上下文数据 [SWS_AIDSM_10810]。
  • timestamp(ara::core::Optional<TimestampType>):事件的可选时间戳 [SWS_AIDSM_10810]。

该函数不返回值(void),并使用说明符 noexcept 进行声明 [SWS_AIDSM_10810]。

交互和生命周期

为了使 IdsM 能够执行对 OnEventQualification 的调用,接收方必须预先通过 Offer 激活该接口 [SWS_AIDSM_10808]。通过 StopOffer,后续对回调函数的调用将再次被禁止 [SWS_AIDSM_10809]。当 SWS_AIDSM_10810 处理版本化上下文数据时,对于未版本化数据存在符合 [SWS_AIDSM_10807] 的替代签名。

并发与错误处理

该函数被规范为非线程安全(not thread-safe)[SWS_AIDSM_10810]。如果并发发生调用,IdsM 的调用实例或具体实现可能必须确保相应的同步。 问题 Q-6b9e9525b682ad70 (未决)由于签名被定义为 noexcept 且不返回错误代码,因此在回调实现内部不得逃逸任何异常 [SWS_AIDSM_10810]。

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

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10810
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10810@rel:R25-11#ca222524
Content hash
ca222524
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10810
Status: valid/unmigrated Version: rel:R25-11#0475b70c 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_AIDSM_10810@rel:R25-11#0475b70c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bca228e12026-09-30
  • R24-11rel:R24-11#054e42c92026-10-14
  • R25-11rel:R25-11#0475b70c2026-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_AIDSM_10809]

void StopOffer() noexcept;
Headerara/idsm/qualified_events_receiver.h
Upstream-AnforderungRS_Ids_00400
Thread Safetynot thread-safe

Unterbindet IdsM-Aufrufe von OnEventQualification.

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

根据 [SWS_AIDSM_10809] 调用头文件 ara/idsm/qualified_events_receiver.h 中的函数 StopOffer,以终止提供已限定安全事件的接收器服务。通过同步调用确保 Intrusion Detection System Manager (IdsM) 随后不再将任何调用转发给回调方法 OnEventQualification。

关于使用和接口行为,适用以下属性:

  • 签名与错误处理:该函数不接受任何参数,也没有返回值(void StopOffer() noexcept;)。由于它被声明为 noexcept,因此它不会抛出异常,也不会返回错误代码 [SWS_AIDSM_10809]。
  • 并发性:该操作在规范中被显式声明为 not thread-safe [SWS_AIDSM_10809]。因此,调用组件必须确保对 StopOffer 的调用相对于对同一实例的其他访问进行外部同步。
  • 调用上下文:在销毁实例之前,调用很可能适当地在有序关闭或注销事件接收器的过程中进行。 问题 Q-77dc1d3a09426bdf (未决)

该设计模式类似地存在于模块 aidsm 的其他服务提供者中。例如,头文件 ara/idsm/timestamp_provider.h 中的 StopOffer 终止 IdsM 随后对 GetTimestamp 的调用 [SWS_AIDSM_10409],而 ara/idsm/context_data_provider.h 中的同名函数则阻止未来对 ModifyContextData 的调用 [SWS_AIDSM_10508]。这两个相关接口同样都实现为非线程安全。

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10809
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10809@rel:R25-11#3a91cd9c
Content hash
3a91cd9c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10809
Status: valid/unmigrated Version: rel:R25-11#3d8b258e 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_AIDSM_10809@rel:R25-11#3d8b258e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5678a2782026-09-30
  • R24-11rel:R24-11#3d8b258e2026-10-14
  • R25-11rel:R25-11#3d8b258e2026-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