DEENESPTFRRUARHIKOZHNL

类 ara::rds::IEEE1722DatagramNTSCF

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Raw Data Stream (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.

[SWS_RDS_90305] · Header ara/rds/raw_data_stream_IEEE1722.h

class IEEE1722DatagramNTSCF {...};

IEEE 1722 datagram representation: IEEE1722DatagramNTSCF.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopenamespace ara::rds

用户指南人工智能生成

封装 IEEE 1722 NTSCF 数据报的控制数据和头部字段,用于原始数据流中的处理。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 34ffc7c706f6 来源 未决问题(3)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

封装 IEEE 1722 NTSCF 数据报的控制数据和头部字段,用于原始数据流中的处理。

类 ara::rds::IEEE1722DatagramNTSCF 表示 Raw Data Stream 模块 SWS RawDataStream “Specification of Raw Data Stream” 内 IEEE 1722 NTSCF 控制数据报的数据结构。它将序列号、地址信息和唯一标识符等协议特定字段封装在受保护的属性中,供专用数据报类使用。多态使用中的安全生命周期通过虚析构函数 [SWS_RDS_90310] 得到保证。最重要的边界条件是:销毁必须绝对无异常,且可选字段在访问前必须检查其是否存在。

上下文

类 ara::rds::IEEE1722DatagramNTSCF 根据 SWS RawDataStream “Specification of Raw Data Stream” 在 AUTOSAR Adaptive 模块 rds(Raw Data Stream)内表示 NTSCF 格式(Non-Time-Synchronous Control Format)的 IEEE 1722 数据报结构。该类绑定了为非时间关键型控制和有效载荷数据流交换而指定的协议字段。头文件 #include "ara/rds/raw_data_stream_IEEE1722.h" 在命名空间 ara::rds 中声明了该类。指定的组件包括唯一流标识符 unique_id [SWS_RDS_90309]、序列号 sequenceNum [SWS_RDS_90307] 以及长度和地址信息 ntscf_data_length 和 mac_address [SWS_RDS_90306]、[SWS_RDS_90308]。

引人注目的是,所有数据元素都具有访问保护 protected。作为解释,可以由此得出结论:该类用作派生的协议特定数据报结构的基础基类,并且推测不是为了供常规应用程序逻辑直接实例化而设计的。 问题 Q-10e9faa973973eda (未决)

生命周期

ara::rds::IEEE1722DatagramNTSCF 的生命周期专为面向对象继承层次结构中的安全操作而设计。核心元素是符合 [SWS_RDS_90310] 的虚析构函数 ~IEEE1722DatagramNTSCF() noexcept。通过虚特性保证了在通过指向基类的指针销毁派生实例时,析构函数链能够被完整且正确地执行。

带有 noexcept [SWS_RDS_90310] 的声明确保对象的销毁在任何情况下都不会抛出异常。这符合现代 C++ 资源管理的核心要求,并确保了在错误情况下的异常安全性。

规范范围中未列出公共构造函数。因此,对象的创建可能由派生类在其初始化过程中完成,或者通过 Raw Data Stream 模块的内部创建机制进行。 问题 Q-4a0e75e3e565d2d5 (未决)该类不具有固定状态或内部状态机;从创建到销毁,该对象始终作为信息载体保持一致状态。

使用路径

该类通常用于根据 IEEE 1722 处理控制数据流。派生类或原始数据流框架的组件使用受保护属性对传输的数据包进行序列化或反序列化。这些属性被定义为基本整数类型或 ara::core::Optional。典型处理链分为以下步骤:

  • 数据流标识:根据 unique_id [SWS_RDS_90309] 检查该数据报属于哪个逻辑数据流。
  • 顺序检查:通过序列号 sequenceNum [SWS_RDS_90307] 可以确定数据包是否按预期顺序到达,或者是否存在丢失。
  • 长度与地址解析:通过字段 ntscf_data_length 和 mac_address [SWS_RDS_90306]、[SWS_RDS_90308] 确定有效负载的大小,并对目标地址或源地址进行解析。

在解析有效负载之后,使用路径通过虚析构函数 [SWS_RDS_90310] 释放实例而结束。

错误场景

由于 ara::rds::IEEE1722DatagramNTSCF 具备数据结构和基类的特性,错误不会以方法返回码的形式出现,而是涉及数据访问和析构时的前置条件:

  • 未经验证访问可选字段:诸如 sequenceNum [SWS_RDS_90307] 和 unique_id [SWS_RDS_90309] 等属性被声明为 ara::core::Optional。若未事先通过 has_value() 检查而在数据包不完整时进行访问,将导致运行时错误或未定义行为。
  • 违反析构函数中的 noexcept 保证:由于析构函数被指定为 noexcept [SWS_RDS_90310],在派生类清理期间抛出且未在局部处理的任何异常,都将导致通过 std::terminate 立即中止程序。
  • 长度信息不一致:若 ntscf_data_length [SWS_RDS_90306]、[SWS_RDS_90308] 的值与网络驱动程序的实际缓冲区大小不一致,则在数据处理过程中可能会发生缓冲区溢出或读取不完整。

本类指南基于 Raw Data Stream(rds)模块的 AUTOSAR AP R25-11 规范自动生成。

成员图

详细视图

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

构造函数和析构函数

Virtual destructor of the IEEE 1722 datagram type.

~IEEE1722DatagramNTSCF() noexcept;

常量

Protected IEEE 1722 datagram field mac_address.

std::uint16_t ntscf_data_length; 118 of 185 Document ID 1098: AUTOSAR_AP_SWS_RawDataStream Specification of Raw Data Stream AUTOSAR AP R25-11

Protected IEEE 1722 datagram field ntscf_data_length.

ara::core::Optional<std::uint64_t> mac_address;

Protected IEEE 1722 datagram field sequenceNum.

ara::core::Optional<std::uint8_t> sequenceNum;
unique_id 变量

Protected IEEE 1722 datagram field unique_id.

ara::core::Optional<std::uint64_t> unique_id;

方法与类型文档

变量 mac_address [SWS_RDS_90306]

std::uint16_t ntscf_data_length; 118 of 185 Document ID 1098: AUTOSAR_AP_SWS_RawDataStream Specification of Raw Data Stream AUTOSAR AP R25-11

Protected IEEE 1722 datagram field mac_address.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722DatagramNTSCF
Zugriffprotected

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

Record
AUTOSAR/AP/record/SWS_RDS_90306
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90306@rel:R25-11#1043c389
Content hash
1043c389
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90306
Status: valid/unmigrated Version: rel:R25-11#6fadf38e 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_RDS_90306@rel:R25-11#6fadf38e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9b62e0542026-09-30
  • R24-11rel:R24-11#9ef2c4ec2026-10-14
  • R25-11rel:R25-11#6fadf38e2026-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

变量 ntscf_data_length [SWS_RDS_90308]

ara::core::Optional<std::uint64_t> mac_address;

Protected IEEE 1722 datagram field ntscf_data_length.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722DatagramNTSCF
Zugriffprotected

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

Record
AUTOSAR/AP/record/SWS_RDS_90308
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90308@rel:R25-11#07a04919
Content hash
07a04919
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90308
Status: valid/unmigrated Version: rel:R25-11#02183327 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_RDS_90308@rel:R25-11#02183327
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1793f00b2026-09-30
  • R24-11rel:R24-11#f38cd6e32026-10-14
  • R25-11rel:R25-11#021833272026-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

变量 sequenceNum [SWS_RDS_90307]

ara::core::Optional<std::uint8_t> sequenceNum;

Protected IEEE 1722 datagram field sequenceNum.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722DatagramNTSCF
Zugriffprotected

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

Record
AUTOSAR/AP/record/SWS_RDS_90307
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90307@rel:R25-11#5955919d
Content hash
5955919d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90307
Status: valid/unmigrated Version: rel:R25-11#1112868a 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_RDS_90307@rel:R25-11#1112868a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#45d3c6742026-09-30
  • R24-11rel:R24-11#1112868a2026-10-14
  • R25-11rel:R25-11#1112868a2026-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

变量 unique_id [SWS_RDS_90309]

ara::core::Optional<std::uint64_t> unique_id;

Protected IEEE 1722 datagram field unique_id.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722DatagramNTSCF
Zugriffprotected

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

Record
AUTOSAR/AP/record/SWS_RDS_90309
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90309@rel:R25-11#89c1e556
Content hash
89c1e556
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90309
Status: valid/unmigrated Version: rel:R25-11#5a87de2a 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_RDS_90309@rel:R25-11#5a87de2a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cf41f9d72026-09-30
  • R24-11rel:R24-11#673c659b2026-10-14
  • R25-11rel:R25-11#5a87de2a2026-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

函数 ~IEEE1722DatagramNTSCF [SWS_RDS_90310]

~IEEE1722DatagramNTSCF() noexcept;

Virtual destructor of the IEEE 1722 datagram type.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722DatagramNTSCF

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

Record
AUTOSAR/AP/record/SWS_RDS_90310
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90310@rel:R25-11#f906ec06
Content hash
f906ec06
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90310
Status: valid/unmigrated Version: rel:R25-11#95cca511 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_RDS_90310@rel:R25-11#95cca511
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5c83722f2026-09-30
  • R24-11rel:R24-11#95cca5112026-10-14
  • R25-11rel:R25-11#95cca5112026-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