DEENESPTFRRUARHIKOZHNL

clase 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

Guía del usuarioGENERADO POR IA

Permite a las aplicaciones la monitorización relativa al estado, el antirrebote y la consulta de DTC de eventos de diagnóstico.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 2f3253efefb6 Procedencia Preguntas abiertas (2)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Permite a las aplicaciones la monitorización relativa al estado, el antirrebote y la consulta de DTC de eventos de diagnóstico.

La clase ara::diag::Event proporciona en AUTOSAR Adaptive operaciones para la monitorización de eventos de diagnóstico y sus estados de antirrebote y de error. Las aplicaciones instancian el objeto a través de un InstanceSpecifier, registran notificaciones de cambio opcionales y consultan información de diagnóstico y de DTC de forma asíncrona [SWS_DM_00647]. Como restricción central, la instancia no es copiable ni reubicable (movible), y la mayoría de los métodos de consulta requieren sincronización del lado de la aplicación en caso de acceso concurrente debido a la falta de seguridad para hilos [SWS_DM_00649].

Contexto

La clase ara::diag::Event sirve en la AUTOSAR Adaptive Platform como interfaz principal para interactuar con eventos de diagnóstico. Actúa como enlace entre el software específico de la aplicación y la administración central de diagnóstico. A través de esta interfaz, las aplicaciones monitorizan el estado actual de diagnóstico y de antirrebote de un evento o reciben notificaciones sobre cambios de estado.

En el contexto del sistema, en la interacción participan esencialmente tres partes:

  • Software de aplicación: instancia la clase, inicia consultas de estado y recibe actualizaciones de estado asíncronas.
  • ara::diag::Event: encapsula el puerto de diagnóstico tipado (PortPrototype de un DiagnosticEventInterface) y proporciona métodos de consulta entre hilos o entre procesos.
  • Diagnostic Management (DM): ejecuta en el lado del servidor la detección de errores, las asignaciones de DTC y el comportamiento de antirrebote (debouncing).
app Anwendungssoftware event ara::diag::Event app->event Statusabfrage / Notifier dm Diagnostic Management event->dm Ereignisdaten / Notifikationen

Diagrama de contexto: integración de la clase Event entre el software de aplicación y Diagnostic Management. Fuentes: [SWS_DM_00647], [SWS_DM_00653]

Ciclo de vida

La instanciación se realiza explícitamente mediante la entrega de un ara::core::InstanceSpecifier [SWS_DM_00647]. El identificador debe hacer referencia a un PortPrototype tipado mediante un DiagnosticEventInterface. El constructor es exception-safe y thread-safe [SWS_DM_00647].

En cuanto a las relaciones de propiedad, ara::diag::Event se define como una instancia única no copiable y no reubicable (movible): tanto el constructor de copia [SWS_DM_01681] como el constructor de movimiento [SWS_DM_01682] y los operadores de asignación asociados ([SWS_DM_01679], [SWS_DM_01680]) están explícitamente eliminados (=delete). Un InstanceSpecifier no debe instanciarse múltiples veces por proceso [SWS_DM_00647].

La destrucción se realiza mediante el destructor ~Event() [SWS_DM_00648]. A diferencia del constructor, el destructor no es thread-safe. Las demás funciones miembro (a excepción de GetDTCNumber) también están especificadas como no thread-safe, por lo que las llamadas paralelas sobre la misma instancia deben sincronizarse del lado de la aplicación. En el Release R25-11 se armonizó la terminología correspondiente de reentrancy a concurrency AUTOSAR_AP_SWS_Diagnostics §1 «Change History».

Ruta de uso

Un caso de uso típico se divide en las siguientes llamadas:

  1. Inicialización: la aplicación crea la instancia a través de su InstanceSpecifier [SWS_DM_00647]. Es probable que la vinculación establezca la conexión con el demonio de diagnóstico en el momento de la inicialización. Pregunta Q-78e4462a0d147cfb (abierta)
  2. Registrar notificador: para la monitorización se registra opcionalmente una devolución de llamada (callback) mediante SetEventStatusChangedNotifier [SWS_DM_00650]. Una llamada posterior sobrescribe el notificador establecido previamente.
  3. Consultas de estado: durante el funcionamiento, la aplicación consulta datos de diagnóstico de forma asíncrona a través de ara::core::Future:
    • GetEventStatus() determina el byte de estado actual [SWS_DM_00649].
    • GetDebouncingStatus() devuelve el estado de antirrebote actual [SWS_DM_00654].
    • GetFaultDetectionCounter() consulta el contador de detección de fallos (FDC) [SWS_DM_00656].
    • GetTestComplete() comprueba si la prueba se ha completado (el FDC alcanza -128 o 127) [SWS_DM_00655].
    • GetDTCNumber(dtcFormat) suministra el número de DTC asociado en el formato seleccionado y está implementado como thread-safe [SWS_DM_00653].
Flujo típico de una interacción con eventos de diagnósticoAplicaciónara::diag::EventDiagnostic ManagementEvent(specifier)Verbindung registrierenSetEventStatusChangedNotifier(notifier)Result<void>GetEventStatus()Ereignisstatus anfordernEventStatusByteFuture<EventStatusByte>optEl estado del evento cambiaStatusaktualisierungnotifier(EventStatusByte)

Diagrama de secuencia: secuencia típica de interacción entre la aplicación, la instancia de Event y Diagnostic Management. Fuentes: [SWS_DM_00647], [SWS_DM_00650], [SWS_DM_00649], [SWS_DM_00653]

Escenarios de error

Las condiciones de error se manifiestan en forma de violaciones de modelado (Violations) durante la instanciación o como códigos de error en tiempo de ejecución:

  • Infracciones durante la llamada al constructor [SWS_DM_00647]:
    • InstanceSpecifierMappingIntegrityViolation: el identificador no se puede resolver en el modelo o no hace referencia a ningún PortPrototype.
    • PortInterfaceMappingViolation: el PortPrototype referenciado no está tipado como DiagnosticEventInterface.
    • ProcessMappingViolation: no se encontró ningún contexto modelado adecuado para el proceso.
    • InstanceSpecifierAlreadyInUseViolation: una instancia activa ya está utilizando el identificador en el mismo proceso.
  • Códigos de error en tiempo de ejecución a través de ara::core::Result o ara::core::Future:
    • DiagErrc::kServiceNotAvailable: se produce en todas las consultas de estado ([SWS_DM_00649], [SWS_DM_00653], [SWS_DM_00654], [SWS_DM_00655], [SWS_DM_00656]) si las funciones esenciales en segundo plano de Diagnostic Management no están disponibles. Es de suponer que la comunicación se gestione de forma asíncrona mediante IPC. Pregunta (abierta)
    • DiagErrc::kNoSuchDTC: es notificado por GetDTCNumber si no hay ningún DTC registrado para el evento [SWS_DM_00653].
    • DiagErrc::kInvalidArgument: es devuelto por SetEventStatusChangedNotifier, por ejemplo, en caso de valores de transferencia no válidos [SWS_DM_00650].

Esta guía se basa en las especificaciones de la AUTOSAR Adaptive Platform en el Release R25-11.

Mapa de miembros

Diagrama de clases

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()

Vista de detalle

Selecciona una entrada en el índice.

Constructores y destructor

Event función 3

Constructor Event class.

Sobrecargas 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 función

Destructor of class Event.

~Event () noexcept;

Métodos

Get the current debouncing status.

ara::core::Future< DebouncingState > GetDebouncingStatus () noexcept;
GetDTCNumber función

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;

Operadores

operator= función 2

Event shall be a single not assign-able instance.

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

Documentación de los métodos

función 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#56e0cb8c
Content hash
56e0cb8c
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

función 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#4c81ce52
Content hash
4c81ce52
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

función 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#ed84763b
Content hash
ed84763b
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

función 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#9b1fe5d4
Content hash
9b1fe5d4
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

función 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#b86c14ae
Content hash
b86c14ae
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

función 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#6a42a2fd
Content hash
6a42a2fd
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

función 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#f6425d13
Content hash
f6425d13
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

función 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#edae87be
Content hash
edae87be
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

función 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.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 07bc53ae711c Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

A través del método [SWS_DM_00650] de la clase ara::diag::Event (archivo de cabecera ara/diag/event.h), una Adaptive Application registra una función de retrollamada del tipo EventStatusByteNotifier. Tras un registro correcto, Diagnostic Management (DM) llama a este notificador con cada cambio de estado del evento de diagnóstico asociado [SWS_DM_01029]. Una llamada consecutiva al método sobrescribe el notificador registrado previamente [SWS_DM_00650]. La función posee la firma ara::core::Result<void> SetEventStatusChangedNotifier(EventStatusByteNotifier notifier) noexcept y, en caso de éxito, devuelve un resultado vacío [SWS_DM_00650].

Si se produce un error durante el procesamiento, el método devuelve el código de error DiagErrc::kInvalidArgument [SWS_DM_00650]. Aunque la interfaz está declarada como segura frente a excepciones (exception safe), se considera explícitamente no segura para subprocesos (not thread-safe) [SWS_DM_00650]. Interpretación: Los accesos concurrentes a la misma instancia deben sincronizarse en la aplicación; por lo tanto, es de suponer que el registro debería realizarse preferentemente durante la fase de inicialización de la aplicación. Pregunta Q-d8ed099eaed6b197 (abierta)

Funcionalmente, el notificador representa la contrapartida asíncrona a la consulta síncrona de estado mediante GetEventStatus [SWS_DM_00886], tal como se expone en SWS Diagnostics §7.3.4.1.7 «Event status change notifications». Para instancias colectivas, la clase ara::diag::MultipleEvent proporciona el método correspondiente [SWS_DM_01708] con la transferencia adicional de un EventHandleType SWS Diagnostics §8.43.2.1.3.5 «SetEventStatusChangedNotifier».

Esta nota de uso se ha generado de forma automatizada sobre la base de la especificación AUTOSAR Adaptive R25-11.

Guía del implementador pendiente (complejidad 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#c98cadd8
Content hash
c98cadd8
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

función 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#f653c514
Content hash
f653c514
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

función 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#0e1b2e40
Content hash
0e1b2e40
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

función ~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#aabb160c
Content hash
aabb160c
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