DEENESPTFRRUARHIKOZHNL

klasse ara::diag::Event

[SWS_DM_00646] Upstream: RS_Diag_04151

class Event final {...};

Class to implement operations on diagnostic Events.

Header-Datei#include "ara/diag/event.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

User GuideAI-GEGENEREERD

Stelt applicaties in staat tot statusgerelateerde bewaking, ontdendering en DTC-opvraag van diagnose-events.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 2f3253efefb6 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Stelt applicaties in staat tot statusgerelateerde bewaking, ontdendering en DTC-opvraag van diagnose-events.

De klasse ara::diag::Event stelt in AUTOSAR Adaptive operaties beschikbaar voor het bewaken van diagnostische events en de ontdenderings- en foutstatus daarvan. Applicaties instantiëren het object via een InstanceSpecifier, registreren optionele wijzigingsmeldingen en vragen diagnose- en DTC-informatie asynchroon op [SWS_DM_00647]. Als centrale randvoorwaarde is de instantie noch kopieerbaar noch verplaatsbaar, en de meeste opvraagmethoden vereisen bij gelijktijdige toegang synchronisatie aan de zijde van de applicatie wegens een gebrek aan thread-veiligheid [SWS_DM_00649].

Context

De klasse ara::diag::Event dient in het AUTOSAR Adaptive Platform als primaire interface voor de interactie met diagnose-events. Deze fungeert als schakel tussen de applicatiespecifieke software en het centrale diagnosebeheer. Via deze interface bewaken applicaties de actuele diagnose- en ontdenderingsstatus van een event of laten zij zich informeren over statuswijzigingen.

Bij de interactie zijn in de systeemcontext in hoofdzaak drie partijen betrokken:

  • Applicatiesoftware: Instantieert de klasse, initieert statusopvragingen en ontvangt asynchrone statusupdates.
  • ara::diag::Event: Kapselt de getypeerde diagnosepoort (PortPrototype van een DiagnosticEventInterface) in en stelt thread- resp. procesoverstijgende opvraagmethoden beschikbaar.
  • Diagnostic Management (DM): Voert aan de serverzijde foutdetectie, DTC-toewijzingen en het ontdendergedrag (debouncing) uit.
app Anwendungssoftware event ara::diag::Event app->event Statusabfrage / Notifier dm Diagnostic Management event->dm Ereignisdaten / Notifikationen

Contextdiagram: Positionering van de Event-klasse tussen applicatiesoftware en Diagnostic Management. Bronnen: [SWS_DM_00647], [SWS_DM_00653]

Levenscyclus

De instantiëring vindt expliciet plaats via het doorgeven van een ara::core::InstanceSpecifier [SWS_DM_00647]. De identificator moet verwijzen naar een PortPrototype dat via een DiagnosticEventInterface is getypeerd. De constructor is exception-safe en thread-safe [SWS_DM_00647].

Wat betreft eigendomsverhoudingen is ara::diag::Event gedefinieerd als een niet-kopieerbare en niet-verplaatsbare unieke instantie: zowel de copy-constructor [SWS_DM_01681] als de move-constructor [SWS_DM_01682] en de bijbehorende toewijzingsoperatoren ([SWS_DM_01679], [SWS_DM_01680]) zijn expliciet verwijderd (=delete). Een InstanceSpecifier mag per proces niet meervoudig worden geïnstantieerd [SWS_DM_00647].

De vernietiging vindt plaats via de destructor ~Event() [SWS_DM_00648]. In tegenstelling tot de constructor is de destructor niet thread-safe. Ook de overige memberfuncties (met uitzondering van GetDTCNumber) zijn als niet thread-safe gespecificeerd, waardoor parallelle aanroepen op dezelfde instantie aan de applicatiezijde gesynchroniseerd moeten worden. In release R25-11 werd de desbetreffende terminologie geharmoniseerd van Reentrancy naar Concurrency AUTOSAR_AP_SWS_Diagnostics §1 “Change History”.

Gebruikspad

Een typische use case is onderverdeeld in de volgende aanroepen:

  1. Initialisatie: De applicatie maakt de instantie aan via haar InstanceSpecifier [SWS_DM_00647]. De binding brengt vermoedelijk tijdens initialisatietijd de verbinding met de diagnose-daemon tot stand. Vraag Q-78e4462a0d147cfb (open)
  2. Notifier registreren: Voor bewaking wordt optioneel via SetEventStatusChangedNotifier een callback geregistreerd [SWS_DM_00650]. Een opeenvolgende aanroep overschrijft de eerder ingestelde notifier.
  3. Toestandsopvragingen: Tijdens bedrijf vraagt de applicatie diagnosedata asynchroon op via ara::core::Future:
    • GetEventStatus() bepaalt de actuele statusbyte [SWS_DM_00649].
    • GetDebouncingStatus() retourneert de actuele ontdendertoestand [SWS_DM_00654].
    • GetFaultDetectionCounter() vraagt de foutdetectieteller (FDC) op [SWS_DM_00656].
    • GetTestComplete() controleert of de test is voltooid (FDC bereikt -128 of 127) [SWS_DM_00655].
    • GetDTCNumber(dtcFormat) levert het bijbehorende DTC-nummer in het geselecteerde formaat op en is thread-safe uitgevoerd [SWS_DM_00653].
Typisch verloop van een diagnosegebeurtenisinteractieAnwendungara::diag::EventDiagnostic ManagementEvent(specifier)Verbindung registrierenSetEventStatusChangedNotifier(notifier)Result<void>GetEventStatus()Ereignisstatus anfordernEventStatusByteFuture<EventStatusByte>optGebeurtenisstatus verandertStatusaktualisierungnotifier(EventStatusByte)

Sequentiediagram: Typische interactievolgorde tussen applicatie, Event-instantie en Diagnostic Management. Bronnen: [SWS_DM_00647], [SWS_DM_00650], [SWS_DM_00649], [SWS_DM_00653]

Foutscenario's

Foutcondities treden op in de vorm van modelleringsschendingen (violations) bij de instantiëring of als foutcodes tijdens runtime:

  • Overtredingen bij de constructoraanroep [SWS_DM_00647]:
    • InstanceSpecifierMappingIntegrityViolation: De identificator kan niet in het model worden herleid of refereert niet aan een PortPrototype.
    • PortInterfaceMappingViolation: Het gereferentieerde PortPrototype is niet als DiagnosticEventInterface getypeerd.
    • ProcessMappingViolation: Er is geen bij het proces passende gemodelleerde context gevonden.
    • InstanceSpecifierAlreadyInUseViolation: De identificator wordt in hetzelfde proces al door een actieve instantie gebruikt.
  • Runtime-foutcodes via ara::core::Result resp. ara::core::Future:
    • DiagErrc::kServiceNotAvailable: Treedt op bij alle statusopvragingen ([SWS_DM_00649], [SWS_DM_00653], [SWS_DM_00654], [SWS_DM_00655], [SWS_DM_00656]) indien essentiële achtergrondfuncties van Diagnostic Management niet beschikbaar zijn. De communicatie wordt vermoedelijk asynchroon via IPC afgehandeld. Vraag (open)
    • DiagErrc::kNoSuchDTC: Wordt door GetDTCNumber gemeld wanneer er voor het event geen DTC is vastgelegd [SWS_DM_00653].
    • DiagErrc::kInvalidArgument: Wordt door SetEventStatusChangedNotifier geretourneerd, bijvoorbeeld bij ongeldige overdrachtswaarden [SWS_DM_00650].

Deze handleiding is gebaseerd op de specificaties van het AUTOSAR Adaptive Platform in release R25-11.

Ledenkaart

Klassendiagram

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

G nara__diag__Event255 Event + Event() + operator=() + ~Event() + GetDTCNumber() + GetDebouncingStatus() + GetEventStatus() + GetFaultDetectionCounter() + GetTestComplete() + SetEventStatusChangedNotifier()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Event functie 3

Constructor Event class.

Overloads Event 3
explicit Event (const ara::core::InstanceSpecifier &specifier) noexcept; SWS_DM_00647
Event (Event &)=delete; SWS_DM_01681
Event (Event &&) noexcept=delete; SWS_DM_01682
~Event functie

Destructor of class Event.

~Event () noexcept;

Methoden

Get the current debouncing status.

ara::core::Future< DebouncingState > GetDebouncingStatus () noexcept;
GetDTCNumber functie

Returns the DTC number related to this event instance.

ara::core::Future< std::uint32_t > GetDTCNumber (DTCFormatType dtc Format) noexcept;

Returns the current diagnostic event status.

ara::core::Future< EventStatusByte > GetEventStatus () noexcept;

Returns the current value of the Fault Detection Counter (FDC) of this event.

ara::core::Future< std::int8_t > GetFaultDetectionCounter () noexcept;

Get the status if the event has matured to test completed (corresponds to FDC = -128 or FDC = 127).

ara::core::Future< bool > GetTestComplete () noexcept;

Register a notifier function which is called if a diagnostic event is changed. A consecutive call of this method will overwrite the previous registered notifier.

ara::core::Result< void > SetEventStatusChangedNotifier (EventStatus ByteNotifier notifier) noexcept;

Operatoren

operator= functie 2

Event shall be a single not assign-able instance.

Overloads = 2
Event & operator= (Event &)=delete; SWS_DM_01679
Event & operator= (Event &&)=delete; SWS_DM_01680

Documentatie van de methoden

functie Event [SWS_DM_00647] Upstream: RS_Diag_04151, RS_AP_00137, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

explicit Event (const ara::core::InstanceSpecifier &specifier) noexcept;

Constructor Event class.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticEventPortMapping needs to be typed by a DiagnosticEventInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticEventInterface.

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

Record
AUTOSAR/AP/record/SWS_DM_00647
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00647@rel:R25-11#e0551068
Content hash
e0551068
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00647
Status: valid/unmigrated Version: rel:R25-11#5add1f87 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_DM_00647@rel:R25-11#5add1f87
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f0666d8e2026-09-30
  • R19-11rel:R19-11#3c89d7ee2026-10-14
  • R20-11rel:R20-11#870e61ce2026-10-14
  • R21-11rel:R21-11#f7c5ed1f2026-10-14
  • R22-11rel:R22-11#8c18fb3e2026-10-14
  • R23-11rel:R23-11#f694eb632026-10-14
  • R24-11rel:R24-11#51cd865b2026-10-14
  • R25-11rel:R25-11#5add1f872026-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

functie Event [SWS_DM_01681] Upstream: RS_AP_00147

Event (Event &)=delete;

Event shall be a single not copy-able instance.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event

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

Record
AUTOSAR/AP/record/SWS_DM_01681
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01681@rel:R25-11#f2edb370
Content hash
f2edb370
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01681
Status: valid/unmigrated Version: rel:R25-11#99c774ff 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_DM_01681@rel:R25-11#99c774ff
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#04d5b97d2026-09-30
  • R23-11rel:R23-11#43b1f1382026-10-14
  • R24-11rel:R24-11#99c774ff2026-10-14
  • R25-11rel:R25-11#99c774ff2026-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

functie Event [SWS_DM_01682] Upstream: RS_AP_00147

Event (Event &&) noexcept=delete;

Move constructor of Event.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event

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

Record
AUTOSAR/AP/record/SWS_DM_01682
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01682@rel:R25-11#10e71962
Content hash
10e71962
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01682
Status: valid/unmigrated Version: rel:R25-11#65729748 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_DM_01682@rel:R25-11#65729748
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8addd59c2026-09-30
  • R23-11rel:R23-11#30e0773c2026-10-14
  • R24-11rel:R24-11#657297482026-10-14
  • R25-11rel:R25-11#657297482026-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

functie GetDTCNumber [SWS_DM_00653] Upstream: RS_Diag_04201, RS_AP_00139, RS_AP_00119

ara::core::Future< std::uint32_t > GetDTCNumber (DTCFormatType dtc Format) noexcept;

Returns the DTC number related to this event instance.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
dtcFormatDefine the DTC format for the return value.

Rückgabewert

TypBeschreibung
ara::core::Future<std::uint32_t >Return the DTC number in respective DTC format.

Fehler

FehlercodeBeschreibung
DiagErrc::kNoSuchDTCrollback_semantics No mapped DTC exits for the requested event.
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_00653
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00653@rel:R25-11#03aeaccc
Content hash
03aeaccc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00653
Status: valid/unmigrated Version: rel:R25-11#5e084285 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_DM_00653@rel:R25-11#5e084285
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c154a4692026-09-30
  • R19-11rel:R19-11#5dafafb22026-10-14
  • R20-11rel:R20-11#bf458cb22026-10-14
  • R21-11rel:R21-11#06484d962026-10-14
  • R22-11rel:R22-11#8f25efce2026-10-14
  • R23-11rel:R23-11#481fbbe32026-10-14
  • R24-11rel:R24-11#07fccb8e2026-10-14
  • R25-11rel:R25-11#5e0842852026-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

functie GetDebouncingStatus [SWS_DM_00654] Upstream: RS_Diag_04068, RS_Diag_04225, RS_AP_00139

ara::core::Future< DebouncingState > GetDebouncingStatus () noexcept;

Get the current debouncing status.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Future<DebouncingState >Return the current debouncing state of this event.

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_00654
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00654@rel:R25-11#95216c0d
Content hash
95216c0d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00654
Status: valid/unmigrated Version: rel:R25-11#8bddb1d0 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_DM_00654@rel:R25-11#8bddb1d0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#aa2d0fb82026-09-30
  • R19-11rel:R19-11#343c856a2026-10-14
  • R20-11rel:R20-11#76fa6fa62026-10-14
  • R21-11rel:R21-11#76fa6fa62026-10-14
  • R22-11rel:R22-11#b0bcfa5d2026-10-14
  • R23-11rel:R23-11#773a565b2026-10-14
  • R24-11rel:R24-11#58de85e42026-10-14
  • R25-11rel:R25-11#8bddb1d02026-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

functie GetEventStatus [SWS_DM_00649] Upstream: RS_Diag_04151, RS_AP_00139

ara::core::Future< EventStatusByte > GetEventStatus () noexcept;

Returns the current diagnostic event status.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Future< EventStatusByte >Return the current diagnostic event status

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_00649
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00649@rel:R25-11#fc1695b1
Content hash
fc1695b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00649
Status: valid/unmigrated Version: rel:R25-11#88b46805 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_DM_00649@rel:R25-11#88b46805
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#73c9caf02026-09-30
  • R19-11rel:R19-11#ac7535d32026-10-14
  • R20-11rel:R20-11#aa687a9f2026-10-14
  • R21-11rel:R21-11#aa687a9f2026-10-14
  • R22-11rel:R22-11#9ace322d2026-10-14
  • R23-11rel:R23-11#09d412822026-10-14
  • R24-11rel:R24-11#c1f9b0482026-10-14
  • R25-11rel:R25-11#88b468052026-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

functie GetFaultDetectionCounter [SWS_DM_00656] Upstream: RS_Diag_04068, RS_AP_00139

ara::core::Future< std::int8_t > GetFaultDetectionCounter () noexcept;

Returns the current value of the Fault Detection Counter (FDC) of this event.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Future<std::int8_t >Returns the current FaultDetectionCounter value.

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_00656
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00656@rel:R25-11#e1a2ed91
Content hash
e1a2ed91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00656
Status: valid/unmigrated Version: rel:R25-11#4907132c 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_DM_00656@rel:R25-11#4907132c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#94f917742026-09-30
  • R19-11rel:R19-11#f9f594e72026-10-14
  • R20-11rel:R20-11#57d52b342026-10-14
  • R21-11rel:R21-11#678c683c2026-10-14
  • R22-11rel:R22-11#845aefab2026-10-14
  • R23-11rel:R23-11#f314b0512026-10-14
  • R24-11rel:R24-11#b946e5e42026-10-14
  • R25-11rel:R25-11#4907132c2026-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

functie GetTestComplete [SWS_DM_00655] Upstream: RS_Diag_04151, RS_AP_00139

ara::core::Future< bool > GetTestComplete () noexcept;

Get the status if the event has matured to test completed (corresponds to FDC = -128 or FDC = 127).

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Future< bool >Return the current test_completed-state of this event. TRUE, if FDC = -128 or FDC = 127; FALSE in all other cases.

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_00655
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00655@rel:R25-11#5614f380
Content hash
5614f380
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00655
Status: valid/unmigrated Version: rel:R25-11#567ebe83 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_DM_00655@rel:R25-11#567ebe83
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2124e8272026-09-30
  • R19-11rel:R19-11#3073277b2026-10-14
  • R20-11rel:R20-11#2be275092026-10-14
  • R21-11rel:R21-11#1d60449a2026-10-14
  • R22-11rel:R22-11#5d7ba70b2026-10-14
  • R23-11rel:R23-11#6d14f8702026-10-14
  • R24-11rel:R24-11#1273d1452026-10-14
  • R25-11rel:R25-11#567ebe832026-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

functie SetEventStatusChangedNotifier [SWS_DM_00650] Upstream: RS_Diag_04183, RS_AP_00139

ara::core::Result< void > SetEventStatusChangedNotifier (EventStatus ByteNotifier notifier) noexcept;

Register a notifier function which is called if a diagnostic event is changed. A consecutive call of this method will overwrite the previous registered notifier.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 07bc53ae711c Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Via de methode [SWS_DM_00650] van de klasse ara::diag::Event (headerbestand ara/diag/event.h) registreert een Adaptive Application een callback-functie van het type EventStatusByteNotifier. Na succesvolle registratie roept Diagnostic Management (DM) deze notifier aan bij elke statuswijziging van het bijbehorende diagnose-event [SWS_DM_01029]. Een opeenvolgende aanroep van de methode overschrijft de eerder geregistreerde notifier [SWS_DM_00650]. De functie heeft de signatuur ara::core::Result<void> SetEventStatusChangedNotifier(EventStatusByteNotifier notifier) noexcept en retourneert bij succes een leeg resultaat [SWS_DM_00650].

Treedt er bij de verwerking een fout op, dan levert de methode de foutcode DiagErrc::kInvalidArgument terug [SWS_DM_00650]. De interface is weliswaar gedeclareerd als uitzonderingsveilig (exception safe), maar geldt expliciet als niet-thread-safe (not thread-safe) [SWS_DM_00650]. Interpretatie: concurrerende toegangen tot dezelfde instantie moeten aan de applicatiezijde worden gesynchroniseerd; vermoedelijk moet de registratie daarom bij voorkeur tijdens de initialisatiefase van de applicatie worden uitgevoerd. Vraag Q-d8ed099eaed6b197 (open)

Functioneel vormt de notifier de asynchrone tegenhanger van het synchrone opvragen van de status via GetEventStatus [SWS_DM_00886], zoals uiteengezet in SWS Diagnostics §7.3.4.1.7 “Event status change notifications”. Voor collectieve instanties biedt de klasse ara::diag::MultipleEvent de corresponderende methode [SWS_DM_01708] met aanvullende doorgifte van een EventHandleType SWS Diagnostics §8.43.2.1.3.5 “SetEventStatusChangedNotifier”.

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie AUTOSAR Adaptive R25-11.

Implementer's Guide volgt (complexiteit I2)

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
notifierThe function to be called if a diagnostic event is changed.

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an error.

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing

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

Record
AUTOSAR/AP/record/SWS_DM_00650
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00650@rel:R25-11#2047a298
Content hash
2047a298
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00650
Status: valid/unmigrated Version: rel:R25-11#2c7ca3fc 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_DM_00650@rel:R25-11#2c7ca3fc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a0cbc3d82026-09-30
  • R19-11rel:R19-11#dc5182fc2026-10-14
  • R20-11rel:R20-11#23d7e9432026-10-14
  • R21-11rel:R21-11#dbbe3d9e2026-10-14
  • R22-11rel:R22-11#ed3ac0b02026-10-14
  • R23-11rel:R23-11#6fbd522f2026-10-14
  • R24-11rel:R24-11#019f01af2026-10-14
  • R25-11rel:R25-11#2c7ca3fc2026-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

functie operator= [SWS_DM_01679] Upstream: RS_AP_00147

Event & operator= (Event &)=delete;

Event shall be a single not assign-able instance.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event

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

Record
AUTOSAR/AP/record/SWS_DM_01679
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01679@rel:R25-11#45880163
Content hash
45880163
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01679
Status: valid/unmigrated Version: rel:R25-11#10ef80b0 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_DM_01679@rel:R25-11#10ef80b0
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#2fa03c0a2026-09-30
  • R23-11rel:R23-11#fccd65ac2026-10-14
  • R24-11rel:R24-11#10abe0b52026-10-14
  • R25-11rel:R25-11#10ef80b02026-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

functie operator= [SWS_DM_01680] Upstream: RS_AP_00147

Event & operator= (Event &&)=delete;

Move assignment operator of Event.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event

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

Record
AUTOSAR/AP/record/SWS_DM_01680
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01680@rel:R25-11#cb289850
Content hash
cb289850
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01680
Status: valid/unmigrated Version: rel:R25-11#c25e65da 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_DM_01680@rel:R25-11#c25e65da
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#986c114c2026-09-30
  • R23-11rel:R23-11#89bb7bca2026-10-14
  • R24-11rel:R24-11#c25e65da2026-10-14
  • R25-11rel:R25-11#c25e65da2026-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

functie ~Event [SWS_DM_00648] Upstream: RS_Diag_04151, RS_AP_00134

~Event () noexcept;

Destructor of class Event.

Header-Datei#include "ara/diag/event.h"
Scopeclass ara::diag::Event
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_00648
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00648@rel:R25-11#1d79884c
Content hash
1d79884c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00648
Status: valid/unmigrated Version: rel:R25-11#a0bd8c99 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_DM_00648@rel:R25-11#a0bd8c99
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c8ade5942026-09-30
  • R19-11rel:R19-11#484b371b2026-10-14
  • R20-11rel:R20-11#98c042472026-10-14
  • R21-11rel:R21-11#4af04e862026-10-14
  • R22-11rel:R22-11#f870d3302026-10-14
  • R23-11rel:R23-11#9789d55a2026-10-14
  • R24-11rel:R24-11#bd9345702026-10-14
  • R25-11rel:R25-11#a0bd8c992026-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