DEENESPTFRRUARHIKOZHNL

类 ara::idsm::ReportingModeProvider

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/reporting_mode_provider.h · Spezifikationselemente: 4

用户指南人工智能生成

用于查询和设置 IdsM 中已配置安全事件的 Reporting Mode。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 8cb9085d91c7 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用于查询和设置 IdsM 中已配置安全事件的 Reporting Mode。

类 ara::idsm::ReportingModeProvider 提供了用于在 Intrusion Detection System Manager 中查询和设置安全相关事件的 Reporting Mode 的机制 [SWS_AIDSM_10600]。实例化通过针对建模的 PPort [SWS_AIDSM_10601] 的 ara::core::InstanceSpecifier 以线程安全的方式进行。在运行时,方法 GetReportingMode 和 SetReportingMode 允许读取和修改已配置事件的模式。由于这些方法不是线程安全的,因此并发访问必须由外部进行同步。在事件 ID 未知时,这些方法将返回错误 IdsmErrc::kUnknownEventId。

上下文

类 ara::idsm::ReportingModeProvider 在头文件 ara/idsm/reporting_mode_provider.h 中定义,用于在 Adaptive 模块 idsm 内部为 Intrusion Detection System Manager (IdsM) 提供并动态控制 Reporting Mode [SWS_AIDSM_10600]。在联网的车辆架构中,IdsM 监视安全相关事件 (Security Events)。通过 ReportingModeProvider,应用程序或负责的平台服务可以寻址已配置的安全事件,以确定或设定将事件上报给 IdsM 系统的方式。与架构的绑定通过在实例化时指定的建模 PPort 来实现 [SWS_AIDSM_10601]。

生命周期

该类声明为 final [SWS_AIDSM_10600],从而排除了继承或多态特化。对象的创建通过显式构造函数 ReportingModeProvider(const ara::core::InstanceSpecifier& instance) [SWS_AIDSM_10601] 进行。通过参数 instance 建立与具体建模的 PPort 的绑定 [SWS_AIDSM_10601]。解释:传入的实例标识可能指向 AUTOSAR 模型中为 IdsM 服务配置的接口部署。 问题 Q-a7c5bdfa7e2ba42b (未决)

关于并发性,构造函数被指定为线程安全(thread-safe)[SWS_AIDSM_10601]。相比之下,用于读写上报模式的两个操作方法被明确标记为非线程安全(not thread-safe)[SWS_AIDSM_10602], [SWS_AIDSM_10603]。如果多个线程并行访问 ReportingModeProvider 的同一实例,调用方必须对该访问进行外部同步。该实例的生命周期通常与使用该实例的应用程序的生命周期绑定,由应用程序创建、管理并在交互结束后销毁该对象。

使用路径

典型用法分为初始化、查询当前状态以及根据需要调整上报模式。

首先,应用程序通过指定相应的 InstanceSpecifier 针对预定端口实例化提供者 [SWS_AIDSM_10601]。随后,可以使用方法 GetReportingMode 查询特定已配置事件的当前 Reporting Mode [SWS_AIDSM_10602]。该方法返回封装了该模式或指示发生错误的 ara::core::Result<ReportingModeType> [SWS_AIDSM_10602]。

若安全态势或诊断配置需要修改,则调用 SetReportingMode [SWS_AIDSM_10603]。该调用接收标识符 eventId 以及新的 reportingMode,并返回一个 ara::core::Result<void> [SWS_AIDSM_10603]。应用程序检查结果以确保配置更改成功完成。

Nutzungspfad von ReportingModeProvider应用provider: ReportingModeProviderUse Case: InstanziierungReportingModeProvider(instance)Instanz erzeugtUse Case: Modus abfragenGetReportingMode(eventId)Result<ReportingModeType>Use Case: Modus aktualisierenSetReportingMode(eventId, reportingMode)Result<void>

时序图:通过提供者查询和更新上报模式的典型使用路径。来源:[SWS_AIDSM_10601]、[SWS_AIDSM_10602]、[SWS_AIDSM_10603]

错误场景

该类的所有方法均使用 noexcept 声明 [SWS_AIDSM_10601]、[SWS_AIDSM_10602]、[SWS_AIDSM_10603]。因此,错误处理完全不使用 C++ 异常,而是通过 AUTOSAR 特有的错误模型进行 ara::core::Result。

无论是在通过 GetReportingMode [SWS_AIDSM_10602] 进行获取时,还是在通过 SetReportingMode [SWS_AIDSM_10603] 进行设置时,前提条件均为传入的 eventId 对应于一个已配置的安全事件。如果传入未知的或系统中未记录的事件标识符,则操作失败,且 Result 包含错误代码 IdsmErrc::kUnknownEventId [SWS_AIDSM_10602], [SWS_AIDSM_10603]。调用组件在访问该值之前必须评估 Result,并在出错时启动相应的错误处理或记录。

本指南仅基于 Release R25-11 中 Adaptive 模块 idsm 的 AUTOSAR 规范。

概要

class ReportingModeProvider final {...};

成员图

详细视图

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

声明

class ReportingModeProvider final {...};

构造函数和析构函数

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

方法

ara::core::Result<ReportingModeType> GetReportingMode(EventIdType eventId) noexcept;
ara::core::Result<void> SetReportingMode(EventIdType eventId, ReportingModeType reportingMode) noexcept;

方法与类型文档

类 ReportingModeProvider [SWS_AIDSM_10600]

class ReportingModeProvider final {...};
Headerara/idsm/reporting_mode_provider.h
Upstream-AnforderungRS_Ids_00310

Klasse zum Bereitstellen von Reporting Modes für IdsM.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10600
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10600@rel:R25-11#92b56a10
Content hash
92b56a10
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10600
Status: valid/unmigrated Version: rel:R25-11#6969c3dc 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_10600@rel:R25-11#6969c3dc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#71b483332026-09-30
  • R24-11rel:R24-11#3e3d83bb2026-10-14
  • R25-11rel:R25-11#6969c3dc2026-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

函数 ReportingModeProvider [SWS_AIDSM_10601]

explicit ReportingModeProvider(const ara::core::InstanceSpecifier& instance) noexcept;
Headerara/idsm/reporting_mode_provider.h
Upstream-AnforderungRS_Ids_00310
Thread Safetythread-safe

Erstellt einen ReportingModeProvider 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_10601
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10601@rel:R25-11#c46a5219
Content hash
c46a5219
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10601
Status: valid/unmigrated Version: rel:R25-11#420eba9f 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_10601@rel:R25-11#420eba9f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b33ea9232026-09-30
  • R24-11rel:R24-11#5d8a04772026-10-14
  • R25-11rel:R25-11#420eba9f2026-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

函数 GetReportingMode [SWS_AIDSM_10602]

ara::core::Result<ReportingModeType> GetReportingMode(EventIdType eventId) noexcept;
Headerara/idsm/reporting_mode_provider.h
Upstream-AnforderungRS_Ids_00310
Thread Safetynot thread-safe
RückgabeResult<ReportingModeType>; Fehler: IdsmErrc::kUnknownEventId

Liest den Reporting Mode eines konfigurierten Events.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10602
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10602@rel:R25-11#95c08a37
Content hash
95c08a37
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10602
Status: valid/unmigrated Version: rel:R25-11#b485efdd 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_10602@rel:R25-11#b485efdd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f2ea15a12026-09-30
  • R24-11rel:R24-11#b485efdd2026-10-14
  • R25-11rel:R25-11#b485efdd2026-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

函数 SetReportingMode [SWS_AIDSM_10603]

ara::core::Result<void> SetReportingMode(EventIdType eventId, ReportingModeType reportingMode) noexcept;
Headerara/idsm/reporting_mode_provider.h
Upstream-AnforderungRS_Ids_00310
Thread Safetynot thread-safe
RückgabeResult<void>; Fehler: IdsmErrc::kUnknownEventId

Setzt den Reporting Mode eines konfigurierten Events.

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

函数 SetReportingMode 通过头文件 ara/idsm/reporting_mode_provider.h 提供,用于在运行时设置已配置安全事件的报告模式 [SWS_AIDSM_10603]。

用法与参数:

  • eventId(类型 EventIdType):表示已配置事件的标识符 [SWS_AIDSM_10603]。
  • reportingMode(类型 ReportingModeType):确定要为该事件设置的报告模式 [SWS_AIDSM_10603]。

由于签名直接返回 ara::core::Result<void> 而非异步类型,因此调用可能是同步的 [SWS_AIDSM_10603]。 问题 Q-5549fb6428e9ac88 (未决)

错误处理与返回值:

操作结果作为 ara::core::Result<void> 返回 [SWS_AIDSM_10603]:

  • 成功时,该函数返回一个空的 Result 对象 [SWS_AIDSM_10603]。
  • 如果传递的 eventId 未知或未配置,则调用失败并返回错误代码 IdsmErrc::kUnknownEventId [SWS_AIDSM_10603]。

并发性与限制:

该函数被限定为 noexcept 且不抛出异常 [SWS_AIDSM_10603]。由于规范明确将 SetReportingMode 标明为 not thread-safe,因此从多个线程并行调用时的同步可能属于调用方的职责 [SWS_AIDSM_10603]。 问题 Q-cac27942b29355f2 (未决)

本使用说明基于规范自动创建。

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10603
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10603@rel:R25-11#32f6b327
Content hash
32f6b327
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10603
Status: valid/unmigrated Version: rel:R25-11#f29b91a5 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_10603@rel:R25-11#f29b91a5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b139f5722026-09-30
  • R24-11rel:R24-11#09ee51852026-10-14
  • R25-11rel:R25-11#f29b91a52026-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