DEENESPTFRRUARHIKOZHNL

class ara::tsync::ConsumerTimeBaseValidationNotification

[SWS_TS_00428] Upstream: RS_TS_00034 wording not yet imported, RS_TS_00030 wording not yet imported

class ConsumerTimeBaseValidationNotification {...};

Callback interface to notify Consumer Application about the availability of a new data block recorded for the Time Base. .

Header-Datei#include "ara/tsync/consumer_time_base_validation_notification.h"
Forwarding-Header#include "ara/tsync/tsync_fwd.h"
Scopenamespace ara::tsync

User GuideAI-GENERATED

Notifies consumer applications of newly available measurement data blocks for validating a time base.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c02e36846f4f Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Notifies consumer applications of newly available measurement data blocks for validating a time base.

The interface ara::tsync::ConsumerTimeBaseValidationNotification informs consumer applications about newly available measurement data blocks of a time base. Via the callback methods SetSlaveTimingData [SWS_TS_00420] and SetPdelayInitiatorData [SWS_TS_00422], the system passes detailed timing and validation data for the Time Slave and the pDelay initiator. Application developers derive from the class, implement the data processing, and must ensure that no exceptions are thrown, since all methods are specified as noexcept and exception-safe. In addition, classification as non_threadsafe requires application-side synchronization during concurrent accesses.

Context

The class ara::tsync::ConsumerTimeBaseValidationNotification represents a callback interface in module tsync of the AUTOSAR Adaptive Platform. Its purpose is to inform a consumer application as soon as new recorded data blocks are available for a monitored time base.

Essentially three components participate in this interaction:

  • Time base of module tsync: Continuously acquires time and synchronization measurements in the communication network.
  • Interface ConsumerTimeBaseValidationNotification: Defines the transfer points for recorded measurement data blocks via the methods SetSlaveTimingData [SWS_TS_00420] and SetPdelayInitiatorData [SWS_TS_00422].
  • Consumer application: Implements the callback methods, takes over the provided measurement values, and performs the functional validation of the time base.

Through this structure, application-specific validation logic is cleanly decoupled from the platform-internal recording of time data.

Lifecycle

As an abstract interface class with pure virtual methods, ara::tsync::ConsumerTimeBaseValidationNotification cannot be instantiated directly. A consumer application derives a concrete class and implements the required methods.

Creation and ownership are entirely the responsibility of the consumer application. The application presumably creates the callback object during its initialization phase and links it to the corresponding time base of the tsync service. Question Q-a423ce4cbd4eeaaa (open)

For destruction, the class provides a virtual destructor: virtual ~ConsumerTimeBaseValidationNotification() noexcept = default; [SWS_TS_01300]. Declaring it as a virtual destructor ensures that instances of derived classes can be released via base class pointers in a type-safe manner and without resource leaks.

Regarding concurrency, the notification methods SetSlaveTimingData [SWS_TS_00420] and SetPdelayInitiatorData [SWS_TS_00422] are specified as non_threadsafe. As invocation by the platform service is likely to occur in the context of a background thread, the application-side implementation is responsible for protecting accesses to shared application resources itself. Question Q-1b857df043504eec (open)

Usage Path

The typical sequence for using the validation notification comprises the following steps:

  1. Implementation: The consumer application implements a class derived from ara::tsync::ConsumerTimeBaseValidationNotification.
  2. Reception of time slave measurement data: As soon as a new measurement data block has been recorded for the time slave of the time base, the time service invokes the method SetSlaveTimingData [SWS_TS_00420] and passes the detailed validation data via the parameter measurementData of type TimeSlaveMeasurementType.
  3. Reception of pDelay initiator measurement data: If new measurement data is available for the pDelay initiator, SetPdelayInitiatorData [SWS_TS_00422] is invoked with the detailed timing data in PdelayInitiatorMeasurementType.
  4. Processing: The consumer application evaluates the transmitted data blocks to detect synchronization errors or runtime deviations.
  5. Object release: When monitoring is terminated, the instance is destroyed via the virtual destructor [SWS_TS_01300].
Sequence of notification about validation dataZeitbasis (tsync)ValidationNotificationConsumer-AnwendungSetSlaveTimingData(measurementData)Time-Slave-Messdaten verarbeitenSetPdelayInitiatorData(measurementData)pDelay-Initiator-Messdaten verarbeiten

Sequence diagram: Transmission of recorded measurement data blocks for time slave and pDelay initiator to the consumer implementation. Sources: [SWS_TS_00420], [SWS_TS_00422].

Error Scenarios

The interface methods are designed for maximum robustness and deterministic invocations:

  • Exception safety: All member functions – SetSlaveTimingData [SWS_TS_00420], SetPdelayInitiatorData [SWS_TS_00422], and the destructor [SWS_TS_01300] – are declared with noexcept and specified as exception-safe (exception safe). The overriding methods in the consumer application must not propagate exceptions to the outside, as this leads to immediate program termination.
  • Lack of feedback channels: Since the callback methods have the return type void, processing errors within the application logic cannot be reported back to the tsync module. The application must handle and log any error states internally on its own.
  • Concurrency risks: Due to the property non_threadsafe ([SWS_TS_00420], [SWS_TS_00422]), it must be prevented that multiple data blocks are processed in parallel without application-side locking. Interpretation: The callback object must also remain valid for the entire duration of its registration with the time base in order to prevent fatal accesses to already released memory. Question Q-934e451f6a0099c1 (open)

This guide is based on the AUTOSAR Adaptive R25-11 specification for the tsync module. Explanations without explicit specification evidence represent technical interpretations.

Member map

Class diagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__tsync__ConsumerTimeBaseValidationNotification118 ConsumerTimeBaseValidationNotification + ~ConsumerTimeBaseValidationNotification() + SetPdelayInitiatorData() + SetSlaveTimingData()

Detail view

Select an entry in the outline.

Constructors and destructor

Methods

Provide the recorded data block for the pPelay Initiator of the Time Base.

virtual void SetPdelayInitiatorData (const PdelayInitiatorMeasurement Type &measurementData) noexcept=0;

Provide the recorded data block for the Time Slave of the Time Base.

virtual void SetSlaveTimingData (const TimeSlaveMeasurementType &measurementData) noexcept=0;

Method documentation

function SetPdelayInitiatorData [SWS_TS_00422] Upstream: RS_TS_00034 wording not yet imported, RS_TS_00030 wording not yet imported

virtual void SetPdelayInitiatorData (const PdelayInitiatorMeasurement Type &measurementData) noexcept=0;

Provide the recorded data block for the pPelay Initiator of the Time Base.

Header-Datei#include "ara/tsync/consumer_time_base_validation_notification.h"
Scopeclass ara::tsync::ConsumerTimeBaseValidationNotification
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
measurementDataDetailed timing data for the pDelay Initiator

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_00422
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_00422@rel:R25-11#bc80faac
Content hash
bc80faac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_00422
Status: valid/unmigrated Version: rel:R25-11#30c61c3d 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_00422@rel:R25-11#30c61c3d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bc80faac2026-09-30
  • R19-11rel:R19-11#eb03dca32026-10-14
  • R20-11rel:R20-11#bc341be62026-10-14
  • R21-11rel:R21-11#bc341be62026-10-14
  • R22-11rel:R22-11#9da969872026-10-14
  • R23-11rel:R23-11#dcb016da2026-10-14
  • R24-11rel:R24-11#30c61c3d2026-10-14
  • R25-11rel:R25-11#30c61c3d2026-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

function SetSlaveTimingData [SWS_TS_00420] Upstream: RS_TS_00034 wording not yet imported, RS_TS_00030 wording not yet imported

virtual void SetSlaveTimingData (const TimeSlaveMeasurementType &measurementData) noexcept=0;

Provide the recorded data block for the Time Slave of the Time Base.

Header-Datei#include "ara/tsync/consumer_time_base_validation_notification.h"
Scopeclass ara::tsync::ConsumerTimeBaseValidationNotification
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
measurementDataDetailed data for validation of the Time Slave

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_00420
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_00420@rel:R25-11#0ae186d0
Content hash
0ae186d0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_00420
Status: valid/unmigrated Version: rel:R25-11#db5c7e95 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_00420@rel:R25-11#db5c7e95
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0ae186d02026-09-30
  • R19-11rel:R19-11#9045509e2026-10-14
  • R20-11rel:R20-11#d0bb9b042026-10-14
  • R21-11rel:R21-11#d0bb9b042026-10-14
  • R22-11rel:R22-11#80e6946d2026-10-14
  • R23-11rel:R23-11#b85a4f422026-10-14
  • R24-11rel:R24-11#db5c7e952026-10-14
  • R25-11rel:R25-11#db5c7e952026-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

function ~ConsumerTimeBaseValidationNotification [SWS_TS_01300] Upstream: RS_TS_00034 wording not yet imported, RS_TS_00030 wording not yet imported

virtual ~ConsumerTimeBaseValidationNotification () noexcept=default;

Destructor .

Header-Datei#include "ara/tsync/consumer_time_base_validation_notification.h"
Scopeclass ara::tsync::ConsumerTimeBaseValidationNotification
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_TS_01300
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01300@rel:R25-11#78625836
Content hash
78625836
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01300
Status: valid/unmigrated Version: rel:R25-11#dffdb922 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_01300@rel:R25-11#dffdb922
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#786258362026-09-30
  • R23-11rel:R23-11#8b1738b12026-10-14
  • R24-11rel:R24-11#3389479d2026-10-14
  • R25-11rel:R25-11#dffdb9222026-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