类 ara::fw::FirewallStateSwitchInterfaceDiese Seite wurde vollständig KI-generiert auf Basis von SWS Firewall (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.
[AP_SWS_Fw_82001] 原文尚未导入 · Header ara/fw/firewall_state.h
template <typename EnumT> class FirewallStateSwitchInterface final {...}; Interface to switch between firewall states, i.e. between different firewall filter-rule sets.
Header-Datei #include "ara/fw/firewall_state.h" Scope namespace ara::fw Port-Interface FirewallStateSwitchInterface
用户指南人工智能生成 支持在不同防火墙状态和过滤规则集之间进行异步切换。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 36188daebfa3
来源
未决问题(2)
摘要 详细
支持在不同防火墙状态和过滤规则集之间进行异步切换。
模板类 ara::fw::FirewallStateSwitchInterface 在 AUTOSAR Adaptive 中用于在不同防火墙状态及关联的过滤规则集之间进行切换。通过 ara::core::InstanceSpecifier [AP_SWS_Fw_82002] 进行线程安全创建后,使用 SwitchFirewallState 异步发起状态更改并通过 ara::core::Future<void> 进行监控 [AP_SWS_Fw_82008] 。该类强制执行纯移动语义而无复制选项,其中析构函数和移动操作不是线程安全的,并且错误通过 Future 异步发出信号。
更多 ›
上下文
模板类 ara::fw::FirewallStateSwitchInterface 在 AUTOSAR Adaptive Platform 的功能集群 fw(Firewall)内充当在不同防火墙状态之间切换的主要接口。防火墙状态被理解为保护网络通信安全的过滤规则集的定义配置。模板参数 EnumT 表示所有允许的防火墙状态的特定于应用程序的枚举。典型的交互伙伴可能是上层平台实例,例如根据变化的车辆模式或运行模式调整过滤规则的 Mode-Management。 问题 Q-5424cd3802d53915 (未决)
生命周期
实例的创建通过构造函数在指定 ara::core::InstanceSpecifier 的情况下显式进行 [AP_SWS_Fw_82002] 。该构造步骤被指定为线程安全。通过 InstanceSpecifier,推测具体的分配被解析到在平台清单中建模的 Firewall 实例。 问题 Q-97db4416453c9885 (未决)
该类被声明为 final 并实现纯移动语义:复制构造函数 [AP_SWS_Fw_82004] 和复制赋值运算符 [AP_SWS_Fw_82005] 已被删除(=delete),从而禁止了复制。作为替代,提供了移动构造函数 [AP_SWS_Fw_82006] 以及移动赋值运算符 [AP_SWS_Fw_82007] ,二者均被定义为 noexcept。关于并发性的重要一点是,析构函数 [AP_SWS_Fw_82003] 以及移动操作均不是线程安全的。因此,调用应用程序必须确保生命周期操作和所有权转移在线程局部执行或进行同步。
使用路径
规则集切换的常规流程分为以下几个步骤:
初始化: 在指定目标 InstanceSpecifier 的情况下创建接口对象 [AP_SWS_Fw_82002] 。
请求状态切换: 通过方法 SwitchFirewallState 传递类型为 EnumT 的所需目标状态 [AP_SWS_Fw_82008] 。
等待异步确认: 该方法返回一个 ara::core::Future<void> [AP_SWS_Fw_82008] 。调用方可以阻塞式解析该 Future,或进行异步监控,直到完成底层的规则集切换。
Firewall 的异步状态切换 应用 FirewallStateSwitchInterface Firewall-Dienst FirewallStateSwitchInterface(instance) SwitchFirewallState(firewallState) Zustandswechsel anfordern ara::core::Future<void> alt Erfolgreicher Wechsel Regelsatz aktiviert Future 完成 Fehlerfall Fehler kServiceNotAvailable / kInvalidStateDependentFirewall Future 包含错误代码 (FwErrc)
时序图:异步状态切换的典型流程。来源:[AP_SWS_Fw_82002] ,[AP_SWS_Fw_82008] 。
错误场景
方法 SwitchFirewallState 声明为 noexcept 且不抛出 C++ 异常 [AP_SWS_Fw_82008] 。切换时的错误被封装在返回的 ara::core::Future<void> 中。为该调用指定了以下错误码 [AP_SWS_Fw_82008] :
切换的前置条件是:接口对象已有效实例化,且与 Firewall 服务存在连接。后置条件为:在成功情况下,新的过滤规则集处于激活状态;而在发生错误时,先前的状态保持不变。
本类指南完全基于 AUTOSAR Adaptive Platform R25-11 模块 fw 的规范要求。
分组依据 类别 历史
此版本没有元素数据
构造函数和析构函数 Construct from an ara::core::InstanceSpecifier.
重载 FirewallStateSwitchInterface 3 explicit FirewallStateSwitchInterface(const ara::core::InstanceSpecifier &instance) noexcept; AP_SWS_Fw_82002 FirewallStateSwitchInterface(const FirewallStateSwitchInterface &se)=delete; AP_SWS_Fw_82004 FirewallStateSwitchInterface(FirewallStateSwitchInterface &&se) noexcept; AP_SWS_Fw_82006 Destructor.
~FirewallStateSwitchInterface() noexcept;
方法 Switch between firewall states.
ara::core::Future<void> SwitchFirewallState(EnumT firewallState) noexcept;
运算符 Copy assignment constructor.
重载 = 2 FirewallStateSwitchInterface &operator=(const FirewallStateSwitchInterface &se)=delete; AP_SWS_Fw_82005 FirewallStateSwitchInterface &operator=(FirewallStateSwitchInterface &&se) noexcept; AP_SWS_Fw_82007
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法与类型文档 explicit FirewallStateSwitchInterface(const ara::core::InstanceSpecifier &instance) noexcept; Construct from an ara::core::InstanceSpecifier.
Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface Thread-Sicherheit thread-safe
Status: valid/unmigrated
Version: rel:R25-11#cfdde1fe
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82002@rel:R25-11#cfdde1fe
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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
~FirewallStateSwitchInterface() noexcept; Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface Thread-Sicherheit not thread-safe
Status: valid/unmigrated
Version: rel:R25-11#c0fc1439
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82003@rel:R25-11#c0fc1439
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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
FirewallStateSwitchInterface(const FirewallStateSwitchInterface &se)=delete; Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface
Status: valid/unmigrated
Version: rel:R25-11#c391a24a
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82004@rel:R25-11#c391a24a
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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
FirewallStateSwitchInterface &operator=(const FirewallStateSwitchInterface &se)=delete; Copy assignment constructor.
Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface
Status: valid/unmigrated
Version: rel:R25-11#0da2f2f8
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82005@rel:R25-11#0da2f2f8
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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
FirewallStateSwitchInterface(FirewallStateSwitchInterface &&se) noexcept; Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface Thread-Sicherheit not thread-safe
Status: valid/unmigrated
Version: rel:R25-11#5d9fe00a
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82006@rel:R25-11#5d9fe00a
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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
FirewallStateSwitchInterface &operator=(FirewallStateSwitchInterface &&se) noexcept; Move assignment constructor.
Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface Thread-Sicherheit not thread-safe
Status: valid/unmigrated
Version: rel:R25-11#821a44db
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82007@rel:R25-11#821a44db
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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::Future<void> SwitchFirewallState(EnumT firewallState) noexcept; Switch between firewall states.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0a930dc12144
来源
未决问题(1)
本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 规范自动生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/fw/firewall_state.h" Scope class ara::fw::FirewallStateSwitchInterface Fehler FwErrc::kServiceNotAvailable; FwErrc::kInvalidStateDependentFirewall
Status: valid/unmigrated
Version: rel:R25-11#ffb0209d
Versionshistorie & Revisions (1 transition)
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/AP_SWS_Fw_82008@rel:R25-11#ffb0209d
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
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 · 德文原文