DEENESPTFRRUARHIKOZHNL

klasse ara::diag::MultipleEvent

[SWS_DM_01704] Upstream: RS_Diag_04151

class MultipleEvent final {...};

Class to implement operations on diagnostic Events with the multiple event interfaces.

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

User GuideAI-GEGENEREERD

Maakt het opvragen en bewaken van meerdere diagnose-events via event-handles en callback-notificaties mogelijk.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 4cd8b0cbe34d Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Maakt het opvragen en bewaken van meerdere diagnose-events via event-handles en callback-notificaties mogelijk.

De klasse stelt applicaties in staat om toestandsgerelateerd meerdere diagnose-events op te vragen en te bewaken via een gemeenschappelijke interface aan de hand van event-handles [SWS_DM_01705]. Naast de registratie van notificatie-callbacks zijn er asynchrone methoden beschikbaar voor het bepalen van de event-status, ontdavering, foutenteller en het DTC-nummer [SWS_DM_01707], [SWS_DM_01709]. Instanties zijn niet kopieerbaar en niet verplaatsbaar en vereisen vanwege de niet-thread-safe destructor een ordentelijke beëindiging van actieve operaties vóór vrijgave [SWS_DM_01706], [SWS_DM_02067].

Context

De klasse ara::diag::MultipleEvent stelt interfaces ter beschikking aan de applicatie om diagnose-events via interfaces voor meervoudige events op te vragen en te bewaken [SWS_DM_01705]. In tegenstelling tot enkelvoudige-event-klassen adresseren operaties op instanties van MultipleEvent concrete events via een identificator van het type EventHandleType [SWS_DM_01707], [SWS_DM_01708]. De klasse fungeert als interface tussen de toepassende softwarecomponent en het Diagnostic Management (DM) van Adaptive AUTOSAR AUTOSAR AP SWS Diagnostics, p. 69. Via het port-prototype van een DiagnosticMultipleEventInterface wordt het object aan de geconfigureerde diagnose-infrastructuur gebonden [SWS_DM_01705].

Levenscyclus

Een instantie van MultipleEvent wordt aangemaakt via een expliciete constructor onder opgave van een ara::core::InstanceSpecifier [SWS_DM_01705]. De constructor is thread-safe en verifieert de gemodelleerde binding aan een port-prototype van het interfacetype DiagnosticMultipleEventInterface [SWS_DM_01705]. Mislukt de mapping of wordt dezelfde instantie-identificator binnen het proces hergebruikt, dan meldt het platform overeenkomstige schendingen zoals InstanceSpecifierAlreadyInUseViolation of PortInterfaceMappingViolation [SWS_DM_01705].

Kopieer- en verplaatsoperaties zijn voor MultipleEvent volledig verhinderd: zowel de copy- en move-constructor als de overeenkomstige toewijzingsoperatoren zijn als verwijderd gedeclareerd [SWS_DM_02067], [SWS_DM_02068], [SWS_DM_02069], [SWS_DM_02070]. Het object bezit zodoende een strikte identiteit en blijft op de plaats van aanmaak. De destructor ~MultipleEvent() is niet-thread-safe gespecificeerd [SWS_DM_01706]. Aanroepende componenten moeten daarom vóór de vernietiging waarborgen dat er geen asynchrone opvragingen of notificaties meer via de instantie lopen AUTOSAR AP SWS Diagnostics, p. 78.

Gebruikspad

Na de instantiëring registreert de applicatie typisch een callback-functie middels SetEventStatusChangedNotifier om over statuswijzigingen van een bepaald event (geïdentificeerd via EventHandleType) geïnformeerd te worden [SWS_DM_01708]. Een hernieuwde aanroep van deze methode voor hetzelfde event overschrijft de eerder ingestelde notifier [SWS_DM_01708]. Deze registratiefunctie is niet-thread-safe [SWS_DM_01708].

Tijdens het bedrijf kan actuele diagnose-informatie gericht per event-handle worden opgevraagd. Alle toestandsgerelateerde leesoperaties leveren hun gegevens asynchroon in een ara::core::Future terug:

  • GetEventStatus levert de actuele statusbyte van het event als EventStatusByte [SWS_DM_01707].
  • GetDebouncingStatus retourneert de ontdaveringstoestand (DebouncingState) van het event [SWS_DM_01710].
  • GetFaultDetectionCounter levert de actuele foutdetectieteller (FaultDetectionCounter) als een 8-bits geheel getal met teken [SWS_DM_01711].
  • GetDTCNumber vraagt het toegewezen DTC-nummer in het gevraagde DTCFormatType op [SWS_DM_01709].

De thread-safety van deze opvraagfuncties hangt af van de configuratie [SWS_DM_01707], [SWS_DM_01709], [SWS_DM_01710], [SWS_DM_01711].

Nutzungsablauf ara::diag::MultipleEventAnwendungMultipleEventDiagnoseManagementUse Case: InstanziierungMultipleEvent(specifier)Bindung an PortPrototypeBevestiging / BeschikbaarstellingUse Case: Notifier-RegistrierungSetEventStatusChangedNotifier(handle, notifier)Result<void>Use Case: Status- en DTC-opvraagGetEventStatus(handle)Statusabfrage weiterleitenEventStatusByteFuture<EventStatusByte>GetDTCNumber(handle, dtcFormat)DTC-Abfrage weiterleitenDTC-NummerFuture<uint32_t>

Sequentiediagram: typisch gebruikspad voor het observeren en opvragen van diagnose-events via MultipleEvent. Bronnen: [SWS_DM_01705], [SWS_DM_01707], [SWS_DM_01708], [SWS_DM_01709], [SWS_DM_01710], [SWS_DM_01711]

Foutscenario's

Methoden van MultipleEvent signaleren fouttoestanden via het type DiagErrc, dat ingekapseld wordt getransporteerd in een ara::core::Result of in de geretourneerde ara::core::Future [SWS_DM_01707], [SWS_DM_01708], [SWS_DM_01709]. De volgende foutgevallen zijn gespecificeerd:

In het geval van een fout garanderen de operaties rollback-semantiek [SWS_DM_01707], [SWS_DM_01709].

Deze handleiding is uitsluitend gebaseerd op de specificatievoorschriften uit AUTOSAR Adaptive R25-11.

Ledenkaart

Klassendiagram

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

G nara__diag__MultipleEvent593 MultipleEvent + MultipleEvent() + operator=() + ~MultipleEvent() + GetDTCNumber() + GetDebouncingStatus() + GetEventStatus() + GetFaultDetectionCounter() + SetEventStatusChangedNotifier()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

MultipleEvent functie 3

Constructor MultipleEvent class.

Overloads MultipleEvent 3
explicit MultipleEvent (const ara::core::InstanceSpecifier &specifier) noexcept; SWS_DM_01705
MultipleEvent (MultipleEvent &&) noexcept=delete; SWS_DM_02069
MultipleEvent (MultipleEvent &)=delete; SWS_DM_02070

Destructor of class MultipleEvent.

~MultipleEvent () noexcept;

Methoden

Get the current debouncing status of the requested event.

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

Returns the DTC-ID related to requested event.

ara::core::Future< std::uint32_t > GetDTCNumber (EventHandleType event Handle, DTCFormatType dtcFormat) noexcept;

Returns the current status of the requested event.

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

Returns the current value of Fault Detection Counter of the selected event.

ara::core::Future< std::int8_t > GetFaultDetectionCounter (EventHandle Type eventHandle) 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 (EventHandle Type eventHandle, EventStatusByteNotifier notifier) noexcept;

Operatoren

operator= functie 2

Copy assignment operator of MultipleEvent.

Overloads = 2
MultipleEvent & operator= (MultipleEvent &)=delete; SWS_DM_02067
MultipleEvent & operator= (MultipleEvent &&)=delete; SWS_DM_02068

Documentatie van de methoden

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

ara::core::Future< std::uint32_t > GetDTCNumber (EventHandleType event Handle, DTCFormatType dtcFormat) noexcept;

Returns the DTC-ID related to requested event.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event
dtcFormatDefine DTC format type for the return value.

Rückgabewert

TypBeschreibung
ara::core::Future<std::uint32_t >DTC number in respective DTCFormatType.

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
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_01709
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01709@rel:R25-11#71313da3
Content hash
71313da3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01709
Status: valid/unmigrated Version: rel:R25-11#e7981753 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_01709@rel:R25-11#e7981753
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#bec474d72026-09-30
  • R23-11rel:R23-11#9a0ba31b2026-10-14
  • R24-11rel:R24-11#e8916a392026-10-14
  • R25-11rel:R25-11#e79817532026-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_01710] Upstream: RS_Diag_04068, RS_Diag_04225, RS_AP_00139

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

Get the current debouncing status of the requested event.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
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_01710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01710@rel:R25-11#985e26cb
Content hash
985e26cb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01710
Status: valid/unmigrated Version: rel:R25-11#66286266 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_01710@rel:R25-11#66286266
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#02687f5a2026-09-30
  • R23-11rel:R23-11#74e6f1862026-10-14
  • R24-11rel:R24-11#ae2c6ff62026-10-14
  • R25-11rel:R25-11#662862662026-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_01707] Upstream: RS_Diag_04151, RS_AP_00139

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

Returns the current status of the requested event.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
eventHandleHandle of the Event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
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_01707
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01707@rel:R25-11#7cb65ab1
Content hash
7cb65ab1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01707
Status: valid/unmigrated Version: rel:R25-11#60d26ba2 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_01707@rel:R25-11#60d26ba2
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#00fb8fb82026-09-30
  • R23-11rel:R23-11#959068f12026-10-14
  • R24-11rel:R24-11#dd57a5052026-10-14
  • R25-11rel:R25-11#60d26ba22026-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_01711] Upstream: RS_AP_00139

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

Returns the current value of Fault Detection Counter of the selected event.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
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_01711
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01711@rel:R25-11#59737da2
Content hash
59737da2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01711
Status: valid/unmigrated Version: rel:R25-11#5c4028f4 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_01711@rel:R25-11#5c4028f4
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#4982ea842026-09-30
  • R23-11rel:R23-11#50dedae62026-10-14
  • R24-11rel:R24-11#58737ccd2026-10-14
  • R25-11rel:R25-11#5c4028f42026-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 MultipleEvent [SWS_DM_01705] Upstream: RS_Diag_04151, RS_AP_00137, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

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

Constructor MultipleEvent class.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
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 DiagnosticMultipleEventPortMapping needs to be typed by a DiagnosticMultipleEventInterface. 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 DiagnosticMultipleEventInterface.

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

Record
AUTOSAR/AP/record/SWS_DM_01705
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01705@rel:R25-11#df7eef1f
Content hash
df7eef1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01705
Status: valid/unmigrated Version: rel:R25-11#14b1154a 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_01705@rel:R25-11#14b1154a
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e97676eb2026-09-30
  • R23-11rel:R23-11#4e9686b02026-10-14
  • R24-11rel:R24-11#b064f42e2026-10-14
  • R25-11rel:R25-11#14b1154a2026-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 MultipleEvent [SWS_DM_02069] Upstream: RS_AP_00147

MultipleEvent (MultipleEvent &&) noexcept=delete;

Move constructor of MultipleEvent.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent

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

Record
AUTOSAR/AP/record/SWS_DM_02069
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02069@rel:R25-11#42a8d743
Content hash
42a8d743
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02069
Status: valid/unmigrated Version: rel:R25-11#8fc0e2a4 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_DM_02069@rel:R25-11#8fc0e2a4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#8bb5b78d2026-09-30
  • R24-11rel:R24-11#8fc0e2a42026-10-14
  • R25-11rel:R25-11#8fc0e2a42026-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 MultipleEvent [SWS_DM_02070] Upstream: RS_AP_00147

MultipleEvent (MultipleEvent &)=delete;

Copy constructor of MultipleEvent.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent

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

Record
AUTOSAR/AP/record/SWS_DM_02070
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02070@rel:R25-11#32be827a
Content hash
32be827a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02070
Status: valid/unmigrated Version: rel:R25-11#fff39381 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_DM_02070@rel:R25-11#fff39381
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b96cd6282026-09-30
  • R24-11rel:R24-11#fff393812026-10-14
  • R25-11rel:R25-11#fff393812026-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_01708] Upstream: RS_Diag_04183, RS_AP_00139

ara::core::Result< void > SetEventStatusChangedNotifier (EventHandle Type eventHandle, EventStatusByteNotifier 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: bd91ad4f4cb5 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De methode ara::diag::MultipleEvent::SetEventStatusChangedNotifier [SWS_DM_01708] registreert een callback-functie van het type EventStatusByteNotifier, die wordt aangeroepen wanneer de toestand van een diagnose-event verandert. Via de parameter eventHandle wordt het gewenste event binnen de instantie geïdentificeerd. De methode is gespecificeerd als noexcept en retourneert een ara::core::Result<void>. Een hernieuwde aanroep overschrijft de eerder geregistreerde notifier [SWS_DM_01708].

Foutafhandeling

Treedt er bij de registratie een fout op, dan levert de ara::core::Result een bijbehorende foutcode op. Gespecificeerd is de fout DiagErrc::kInvalidArgument, bijvoorbeeld in de context van interne ontkoppeling zoals kPreFailed [SWS_DM_01708].

Gelijktijdigheid en beperkingen

De operatie is gedeclareerd als exception safe, maar uitdrukkelijk geclassificeerd als not thread-safe [SWS_DM_01708]. Gelijktijdige aanroepen op dezelfde instantie moeten daarom extern worden gesynchroniseerd.

Samenspel

Terwijl de klasse ara::diag::Event met SetEventStatusChangedNotifier [SWS_DM_00650] afzonderlijke events zonder handle beheert, bundelt MultipleEvent meerdere events. Vermoedelijk initieert Diagnostic Management (DM) analoog aan [SWS_DM_01029] bij elke statuswijziging van het via eventHandle toegewezen event de aanroep van de geregistreerde notifier AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.7 “Event status change notifications”. Vraag Q-ef7791b2a1106582 (open)

Deze gebruiksinstructie is geautomatiseerd opgesteld op basis van de AUTOSAR-specificatie.

Implementer's Guide volgt (complexiteit I2)

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

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event
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
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_01708
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01708@rel:R25-11#8b6f74f5
Content hash
8b6f74f5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01708
Status: valid/unmigrated Version: rel:R25-11#75cdce7a 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_01708@rel:R25-11#75cdce7a
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8d52a1ae2026-09-30
  • R23-11rel:R23-11#09aaa2182026-10-14
  • R24-11rel:R24-11#f4a611642026-10-14
  • R25-11rel:R25-11#75cdce7a2026-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_02067] Upstream: RS_AP_00147

MultipleEvent & operator= (MultipleEvent &)=delete;

Copy assignment operator of MultipleEvent.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent

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

Record
AUTOSAR/AP/record/SWS_DM_02067
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02067@rel:R25-11#ab00d43d
Content hash
ab00d43d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02067
Status: valid/unmigrated Version: rel:R25-11#5d5f9dd0 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_DM_02067@rel:R25-11#5d5f9dd0
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#eea970b12026-09-30
  • R24-11rel:R24-11#5d5f9dd02026-10-14
  • R25-11rel:R25-11#5d5f9dd02026-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_02068] Upstream: RS_AP_00147

MultipleEvent & operator= (MultipleEvent &&)=delete;

Move assignment operator of MultipleEvent.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent

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

Record
AUTOSAR/AP/record/SWS_DM_02068
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02068@rel:R25-11#3794ba85
Content hash
3794ba85
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02068
Status: valid/unmigrated Version: rel:R25-11#77174b30 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_DM_02068@rel:R25-11#77174b30
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5e2fb56f2026-09-30
  • R24-11rel:R24-11#77174b302026-10-14
  • R25-11rel:R25-11#77174b302026-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 ~MultipleEvent [SWS_DM_01706] Upstream: RS_Diag_04151, RS_AP_00134

~MultipleEvent () noexcept;

Destructor of class MultipleEvent.

Header-Datei#include "ara/diag/multiple_event.h"
Scopeclass ara::diag::MultipleEvent
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_01706
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01706@rel:R25-11#49a1cd80
Content hash
49a1cd80
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01706
Status: valid/unmigrated Version: rel:R25-11#3c4e00c2 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_01706@rel:R25-11#3c4e00c2
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#de8d63a32026-09-30
  • R23-11rel:R23-11#93abb2b92026-10-14
  • R24-11rel:R24-11#3edfe3082026-10-14
  • R25-11rel:R25-11#3c4e00c22026-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