类 ara::tsync::ProviderTimeBaseValidationNotification
[SWS_TS_00419] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00029 原文尚未导入
class ProviderTimeBaseValidationNotification {...};
Callback interface to notify (Validator) Application about the availability of a new data block recorded for the Time Base. gfddfgfdg
| Header-Datei | #include "ara/tsync/provider_time_base_validation_notification.h" |
|---|
| Forwarding-Header | #include "ara/tsync/tsync_fwd.h" |
|---|
| Scope | namespace ara::tsync |
|---|
用户指南人工智能生成
用作向应用程序通知时间基准的新测量数据块的回调接口。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 12f9dc63673b
来源
未决问题(2)
用作向应用程序通知时间基准的新测量数据块的回调接口。
抽象类 ara::tsync::ProviderTimeBaseValidationNotification 用作向验证器应用程序提供已记录的时间基准测量数据的回调接口。实现通过 SetMasterTimingData 接收 Time Master 的测量块 [SWS_TS_00421],并通过 SetPdelayResponderData 接收 Pdelay Responder 的测量数据 [SWS_TS_00423]。这些方法被指定为 noexcept,但不是线程安全的,因此必须避免对同一实例的并发调用。
上下文
类 ara::tsync::ProviderTimeBaseValidationNotification 用作同步模块内时基验证的抽象回调接口。一旦受监控的时基有新的记录测量数据块可用,就会通过该接口通知接收验证器应用程序。该接口根据 [SWS_TS_00421] 定义了时钟源(Time Master)特定测量数据的传递点,并根据 [SWS_TS_00423] 定义了延迟响应机制(Pdelay Responder)测量数据的传递点。此处的交互伙伴通常是作为数据源的时间同步栈内部 Provider 机制,以及评估所采集时间数据的应用程序端验证实例。
生命周期和并发
作为抽象接口,ara::tsync::ProviderTimeBaseValidationNotification 由具体验证应用程序继承并实现。实例化实现的生命周期由应用程序负责。该类具有一个声明为异常安全(noexcept)的虚默认析构函数 [SWS_TS_01301]。这确保了派生类实例在析构时能够以多态且资源安全的方式销毁。在并发性方面,通知方法被明确归类为非线程安全(non_threadsafe)[SWS_TS_00421], [SWS_TS_00423]。这意味着不允许在不受保护的情况下从竞争线程对同一实例调用 SetMasterTimingData 和 SetPdelayResponderData;调用方时基 Provider 可以按序发出这些调用,或者应用程序必须确保同步。 问题 Q-8f59bb65825ead66 (未决)
使用路径
典型流程始于验证器应用程序提供一个继承自 ara::tsync::ProviderTimeBaseValidationNotification 的类。该实例可能注册到时基 Provider,以订阅相应的测量数据。 问题 Q-0ddb9ee8a3e8f381 (未决)一旦时间栈完成时基的新测量周期,便会通过接口的纯虚方法传递采集到的数据块。若要分析 Time Master,则调用 SetMasterTimingData,并传入 TimeMasterMeasurementType 类型的参数 measurementData [SWS_TS_00421]。如果时基有可用的信号传播时间测量数据,Provider 将通过 SetPdelayResponderData 传递这些数据,并传入 PdelayResponderMeasurementType 类型的参数 measurementData [SWS_TS_00423]。在监控运行结束后,应用程序通过虚析构函数 [SWS_TS_01301] 有序销毁该实例。
时序图:向验证器应用程序通知新时基测量数据块的典型流程。来源:[SWS_TS_00421]、[SWS_TS_00423]、[SWS_TS_01301]
错误场景与边界条件
SetMasterTimingData 和 SetPdelayResponderData 均指定为 noexcept,并具有 exception safe 分类 [SWS_TS_00421], [SWS_TS_00423]。因此,该接口的实现不得将异常传递给调用方同步 Provider。这些方法不返回任何值(void);因此不会直接通过方法调用反馈有关错误或不合理测量数据的信息。由于该接口被声明为 non_threadsafe,没有外部同步的并发调用将导致未定义行为。接收数据的前提条件是一个完好的对象,其生命周期必须在提供回调的整个期间内维持,直至通过析构函数销毁 [SWS_TS_01301]。
本指南仅基于 AUTOSAR Adaptive(模块 tsync,Release R25-11)的规范要求。
成员图
类图
Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
详细视图
此版本没有元素数据
方法
Provide the recorded data block for the Time Master of the Time Base.
Provide the recorded data block for the pPelay Responder of the Time Base.
virtual void SetPdelayResponderData (const PdelayResponderMeasurement Type &measurementData) noexcept=0;
方法文档
函数 SetMasterTimingData [SWS_TS_00421] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00029 原文尚未导入
virtual void SetMasterTimingData (const TimeMasterMeasurementType &measurementData) noexcept=0;
Provide the recorded data block for the Time Master of the Time Base.
Parameter (in)
| Parameter | Beschreibung |
|---|
| measurementData | Detailed data for validation of the Time Master |
Rückgabewert
Status: valid/unmigrated
Version: rel:R25-11#7459b40f
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_TS_00421@rel:R25-11#7459b40f
Point-in-Time History:
Recorded Revisions (8):
- R25-11
rel:R25-11#2e9d62f72026-09-30 - R19-11
rel:R19-11#c236f6362026-10-14 - R20-11
rel:R20-11#67ab91452026-10-14 - R21-11
rel:R21-11#67ab91452026-10-14 - R22-11
rel:R22-11#618291d52026-10-14 - R23-11
rel:R23-11#df1c57ff2026-10-14 - R24-11
rel:R24-11#7459b40f2026-10-14 - R25-11
rel:R25-11#7459b40f2026-10-14 active
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
函数 SetPdelayResponderData [SWS_TS_00423] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00029 原文尚未导入
virtual void SetPdelayResponderData (const PdelayResponderMeasurement Type &measurementData) noexcept=0;
Provide the recorded data block for the pPelay Responder of the Time Base.
Parameter (in)
| Parameter | Beschreibung |
|---|
| measurementData | Detailed timing data for the pDelay Responder |
Rückgabewert
Status: valid/unmigrated
Version: rel:R25-11#912ebb17
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_TS_00423@rel:R25-11#912ebb17
Point-in-Time History:
Recorded Revisions (8):
- R25-11
rel:R25-11#cb05aec92026-09-30 - R19-11
rel:R19-11#15ea87b92026-10-14 - R20-11
rel:R20-11#5c0deb592026-10-14 - R21-11
rel:R21-11#ffd1da0d2026-10-14 - R22-11
rel:R22-11#6fbf9e0b2026-10-14 - R23-11
rel:R23-11#82123b582026-10-14 - R24-11
rel:R24-11#912ebb172026-10-14 - R25-11
rel:R25-11#912ebb172026-10-14 active
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
函数 ~ProviderTimeBaseValidationNotification [SWS_TS_01301] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00030 原文尚未导入
virtual ~ProviderTimeBaseValidationNotification () noexcept=default;
Status: valid/unmigrated
Version: rel:R25-11#016dfc0c
Versionshistorie & Revisions (1 transition, 4 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_TS_01301@rel:R25-11#016dfc0c
Point-in-Time History:
Recorded Revisions (4):
- R25-11
rel:R25-11#7c5f56ea2026-09-30 - R23-11
rel:R23-11#d7a9be572026-10-14 - R24-11
rel:R24-11#0da8a9b42026-10-14 - R25-11
rel:R25-11#016dfc0c2026-10-14 active
Historical Snapshot:
🚫
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/unmigrated | mechanically 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 · 德文原文