DEENESPTFRRUARHIKOZHNL

clase ara::diag::Conversation

[SWS_DM_00693] Upstream: RS_Diag_04166, RS_Diag_04169

class Conversation final {...};

Conversation interface.

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

Guía del usuarioGENERADO POR IA

Permite la monitorización de canales de diagnóstico activos, así como el control de la sesión de diagnóstico y del nivel de seguridad.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 1824b6dbecd2 Procedencia Preguntas abiertas (2)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Permite la monitorización de canales de diagnóstico activos, así como el control de la sesión de diagnóstico y del nivel de seguridad.

La clase ara::diag::Conversation representa un canal de comunicación de diagnóstico para la monitorización del estado de actividad, la sesión de diagnóstico y el nivel de seguridad, así como para el restablecimiento a la sesión estándar [SWS_DM_00692] [SWS_DM_00701]. Las aplicaciones obtienen instancias exclusivamente como referencias a través de funciones estáticas de búsqueda, ya que las instanciaciones propias, así como las operaciones de copia y movimiento, están eliminadas [SWS_DM_02090]. Mientras que las consultas de estado de lectura pueden ejecutarse de forma segura para hilos (thread-safe), los registros de retrollamada (callback) y el restablecimiento de la sesión requieren sincronización externa.

Contexto

La clase ara::diag::Conversation representa la interfaz hacia un canal de comunicación entre un comprobador de diagnóstico externo y la Adaptive Platform SWS Diagnostics §8.2 «Conversation». Sirve de enlace entre la aplicación y el Diagnostic Management (DM) interno para realizar el seguimiento y controlar las actividades de diagnóstico en curso. A través de sus instancias, las aplicaciones adaptativas obtienen visibilidad sobre el estado actual de la conexión [SWS_DM_00694], la sesión de diagnóstico activa [SWS_DM_00696], el nivel de seguridad [SWS_DM_00698], así como las características de identificación del canal [SWS_DM_00700].

diag_kontext app Adaptive Anwendung conv ara::diag::Conversation app->conv GetConversation() / Statusabfragen conv->app Notifier-Callbacks dm Diagnostic Management conv->dm ResetToDefaultSession() dm->conv Verwaltung & Lebenszyklus

Diagrama de contexto: integración de ara::diag::Conversation entre la aplicación y el Diagnostic Management. Fuentes: [SWS_DM_00692], [SWS_DM_00782], SWS Diagnostics §8.2 «Conversation».

Ciclo de vida

Las instancias de ara::diag::Conversation son instanciadas y gestionadas por completo por el demonio de Diagnostic Management. Se excluye una creación, copia o movimiento manual por parte de la aplicación: tanto el constructor de copia [SWS_DM_02090] y el constructor de movimiento [SWS_DM_02092] como los operadores de asignación [SWS_DM_02091] [SWS_DM_02093] están eliminados (=delete). Por lo tanto, es probable que la vida útil de los objetos referenciados esté vinculada directamente al estado de ejecución del subsistema de diagnóstico. Pregunta Q-f8deca481d5b76e1 (abierta)

El acceso a las instancias existentes se realiza exclusivamente a través de funciones estáticas de consulta. Con GetAllConversations() se pueden obtener referencias a todas las conexiones configuradas [SWS_DM_00782], mientras que GetCurrentActiveConversations() proporciona una lista de todos los canales actualmente activos cuyo estado de actividad corresponde a kActive [SWS_DM_00783]. Además, mediante GetConversation(metaInfo) se puede resolver una conexión específica a partir de los metadatos de una solicitud de diagnóstico en curso [SWS_DM_00692].

Con respecto a la concurrencia, todos los accesos de lectura al estado y a los identificadores están especificados como seguros para hilos (thread-safe) [SWS_DM_00694] [SWS_DM_00696] [SWS_DM_00698]. Por el contrario, el registro de callbacks de notificación, así como el restablecimiento de la sesión, se consideran no seguros para hilos (not thread-safe) [SWS_DM_00695] [SWS_DM_00701] y requieren sincronización por parte de la aplicación.

Ruta de uso

Un caso de uso típico comprende la obtención de la conexión, el registro de funciones de notificación y la monitorización o manipulación dirigida del estado de la sesión:

  • Obtener la referencia: ante una solicitud de diagnóstico entrante, la instancia correspondiente se obtiene mediante GetConversation(metaInfo) [SWS_DM_00692].
  • Configurar la monitorización de estado: a través de los métodos de registro SetActivityNotifier() [SWS_DM_00695] [SWS_DM_02126], SetDiagnosticSessionNotifier() [SWS_DM_00697] [SWS_DM_02127] y SetSecurityLevelNotifier() [SWS_DM_00699] [SWS_DM_02128] se notifica a la aplicación en caso de cambios. Una invocación reiterada sobrescribe el callback registrado previamente.
  • Consultar el estado: el estado actual se puede determinar de forma síncrona con GetDiagnosticSession() [SWS_DM_00696] o GetDiagnosticSecurityLevel() [SWS_DM_00698]. Mediante GetDiagnosticSessionShortName() [SWS_DM_00707] y GetDiagnosticSecurityLevelShortName() [SWS_DM_00708] los enums pueden resolverse en identificadores cortos legibles.
  • Restablecer la sesión: si la lógica requiere una interrupción o una reversión al estado básico, ResetToDefaultSession() devuelve el canal a la sesión estándar [SWS_DM_00701].
Flujo de uso para ara::diag::ConversationAplicaciónConversaciónDiagnosticManagementUse Case: Resolución de conexiónGetConversation(metaInfo)Result<Conversation&>Use Case: Callback-Registrierung & StatusabfrageSetDiagnosticSessionNotifier(notifier)Result<void>GetDiagnosticSession()Result<SessionControlType>Use Case: SitzungssteuerungResetToDefaultSession()Ejecutar cambio de sesiónResult<void>

Diagrama de secuencia: secuencia típica de interacción para el registro de notificadores, consulta de estado y restablecimiento de sesión. Fuentes: [SWS_DM_00692], [SWS_DM_00697], [SWS_DM_00696], [SWS_DM_00701].

Escenarios de error

Los métodos de ara::diag::Conversation señalan errores mediante ara::core::Result. Si la funcionalidad básica del Diagnostic Management no está disponible temporalmente, GetConversation(), GetActivityStatus(), GetDiagnosticSession(), GetDiagnosticSecurityLevel() y GetConversationIdentifier() fallan con el código de error DiagErrc::kServiceNotAvailable [SWS_DM_00692] [SWS_DM_00694] [SWS_DM_00696] [SWS_DM_00698] [SWS_DM_00700]. Las invocaciones siguen en este caso la semántica de reversión (rollback) y quedan sin efectos secundarios.

En las funciones de conversión de cadenas GetDiagnosticSessionShortName() [SWS_DM_00707] y GetDiagnosticSecurityLevelShortName() [SWS_DM_00708], el paso de un valor de enumeración desconocido o no válido provoca el error DiagErrc::kInvalidArgument. Para los métodos de registro de notificadores así como para ResetToDefaultSession() no hay códigos de error estandarizados definidos en la especificación [SWS_DM_00701].

Esta guía se basa exclusivamente en la especificación AUTOSAR Adaptive R25-11.

Mapa de miembros

Diagrama de clases

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

G nara__diag__Conversation235 Conversation + Conversation() + operator=() + GetActivityStatus() + GetAllConversations() + GetConversation() + GetConversationIdentifier() + GetCurrentActiveConversations() + GetDiagnosticSecurityLevel() + GetDiagnosticSecurityLevelShortName() + GetDiagnosticSession() + GetDiagnosticSessionShortName() + ResetToDefaultSession() + SetActivityNotifier() + SetDiagnosticSessionNotifier() + SetSecurityLevelNotifier()

Vista de detalle

Selecciona una entrada en el índice.

Constructores y destructor

Conversation función 2

Copy constructor of conversation is deleted.

Sobrecargas Conversation 2
Conversation (const Conversation &)=delete; SWS_DM_02090
Conversation (Conversation &&)=delete; SWS_DM_02092

Métodos

Represents the status of an active conversation.

ara::core::Result< ActivityStatusType > GetActivityStatus () noexcept;

Get all possible conversations.

static ara::core::Vector< std::reference_wrapper< Conversation > > Get AllConversations () noexcept;

Get one conversation based on given MetaInfo.

static ara::core::Result< Conversation & > GetConversation (const Meta Info &metaInfo) noexcept;

Getter for the current identification properties of the active conversation.

Get all currently active conversations.

static ara::core::Vector< std::reference_wrapper< Conversation > > Get CurrentActiveConversations () noexcept;

Represents the current active diagnostic SecurityLevel of an active conversation.

ara::core::Result< SecurityLevelType > GetDiagnosticSecurityLevel () noexcept;

Converts the given diagnostic SecurityLevel into the ShortName.

Represents the current active diagnostic session of an active conversation.

ara::core::Result< SessionControlType > GetDiagnosticSession () noexcept;

Converts the given diagnostic session into the ShortName.

ara::core::Result< ara::core::StringView > GetDiagnosticSessionShort Name (SessionControlType session) noexcept;

Method to reset the current session to default session.

ara::core::Result< void > ResetToDefaultSession () noexcept;

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

ara::core::Result< void > SetActivityNotifier (ActivityStatusType Notifier notifier) noexcept;

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

ara::core::Result< void > SetDiagnosticSessionNotifier (SessionControl TypeNotifier notifier) noexcept;

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

ara::core::Result< void > SetSecurityLevelNotifier (SecurityLevelType Notifier notifier) noexcept;

Operadores

operator= función 2

Copy assignment operator of conversation is deleted.

Sobrecargas = 2
Conversation & operator= (const Conversation &)=delete; SWS_DM_02091
Conversation & operator= (Conversation &&)=delete; SWS_DM_02093

Alias de tipo

Register a notifier function which is called if the activity is changed.

using ActivityStatusTypeNotifier = std::function<void(ActivityStatus Type)>;

Register a notifier function which is called if the SecurityLevel is changed.

using SecurityLevelTypeNotifier = std::function<void(SecurityLevel Type)>;

Register a notifier function which is called if the Session is changed.

using SessionControlTypeNotifier = std::function<void(SessionControl Type)>;

Tipos anidados

Documentación de los métodos

función Conversation [SWS_DM_02090] Upstream: RS_AP_00134

Conversation (const Conversation &)=delete;

Copy constructor of conversation is deleted.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation

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

Record
AUTOSAR/AP/record/SWS_DM_02090
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02090@rel:R25-11#a2580594
Content hash
a2580594
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02090
Status: valid/unmigrated Version: rel:R25-11#4794c95c Versionshistorie & Revisions (1 transition)
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_02090@rel:R25-11#4794c95c
Point-in-Time History:
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 Conversation [SWS_DM_02092] Upstream: RS_AP_00134

Conversation (Conversation &&)=delete;

Move constructor of conversation is deleted.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation

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

Record
AUTOSAR/AP/record/SWS_DM_02092
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02092@rel:R25-11#78cfe872
Content hash
78cfe872
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02092
Status: valid/unmigrated Version: rel:R25-11#c1133833 Versionshistorie & Revisions (1 transition)
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_02092@rel:R25-11#c1133833
Point-in-Time History:
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 GetActivityStatus [SWS_DM_00694] Upstream: RS_AP_00139, RS_Diag_04169

ara::core::Result< ActivityStatusType > GetActivityStatus () noexcept;

Represents the status of an active conversation.

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

Rückgabewert

TypBeschreibung
ara::core::Result<ActivityStatusType >the activity status of the conversation

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_00694
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00694@rel:R25-11#ddb5dc6d
Content hash
ddb5dc6d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00694
Status: valid/unmigrated Version: rel:R25-11#ed7817d4 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_00694@rel:R25-11#ed7817d4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2a044ec12026-09-30
  • R19-11rel:R19-11#5bb1402e2026-10-14
  • R20-11rel:R20-11#572f5ddc2026-10-14
  • R21-11rel:R21-11#572f5ddc2026-10-14
  • R22-11rel:R22-11#bd60d8fa2026-10-14
  • R23-11rel:R23-11#46b965a92026-10-14
  • R24-11rel:R24-11#3d1f91b12026-10-14
  • R25-11rel:R25-11#ed7817d42026-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 GetAllConversations [SWS_DM_00782] Upstream: RS_Diag_04166, RS_Diag_04169, RS_Diag_04209

static ara::core::Vector< std::reference_wrapper< Conversation > > Get AllConversations () noexcept;

Get all possible conversations.

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

Rückgabewert

TypBeschreibung
ara::core::Vector<std::reference_wrapper<Conversation > >A Vector of all possible Conversation objects

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

Record
AUTOSAR/AP/record/SWS_DM_00782
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00782@rel:R25-11#1d5e18f6
Content hash
1d5e18f6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00782
Status: valid/unmigrated Version: rel:R25-11#d611d124 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_00782@rel:R25-11#d611d124
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d2c5059b2026-09-30
  • R19-11rel:R19-11#5b89e7fd2026-10-14
  • R20-11rel:R20-11#a48e4d862026-10-14
  • R21-11rel:R21-11#657f3de32026-10-14
  • R22-11rel:R22-11#fde570342026-10-14
  • R23-11rel:R23-11#3933ca7f2026-10-14
  • R24-11rel:R24-11#afddc99e2026-10-14
  • R25-11rel:R25-11#d611d1242026-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 GetConversation [SWS_DM_00692] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04170

static ara::core::Result< Conversation & > GetConversation (const Meta Info &metaInfo) noexcept;

Get one conversation based on given MetaInfo.

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

Parameter (in)

ParameterBeschreibung
metaInfoMetaInfo of the request.

Rückgabewert

TypBeschreibung
ara::core::Result<Conversation & >Conversation object or error

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_00692
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00692@rel:R25-11#619982e3
Content hash
619982e3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00692
Status: valid/unmigrated Version: rel:R25-11#56f84ccd 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_00692@rel:R25-11#56f84ccd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#435614992026-09-30
  • R19-11rel:R19-11#842bac5e2026-10-14
  • R20-11rel:R20-11#c12542fc2026-10-14
  • R21-11rel:R21-11#b2bba1dd2026-10-14
  • R22-11rel:R22-11#069f33cc2026-10-14
  • R23-11rel:R23-11#36f823122026-10-14
  • R24-11rel:R24-11#02c9dc132026-10-14
  • R25-11rel:R25-11#56f84ccd2026-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 GetConversationIdentifier [SWS_DM_00700] Upstream: RS_AP_00139, RS_Diag_04169

ara::core::Result< ConversationIdentifierType > GetConversation Identifier () noexcept;

Getter for the current identification properties of the active conversation.

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

Rückgabewert

TypBeschreibung
ara::core::Result<ConversationIdentifierType >Returns the conversation information

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_00700
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00700@rel:R25-11#f4ac83a8
Content hash
f4ac83a8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00700
Status: valid/unmigrated Version: rel:R25-11#4e415079 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_00700@rel:R25-11#4e415079
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#126118842026-09-30
  • R19-11rel:R19-11#b95f93e22026-10-14
  • R20-11rel:R20-11#67ff974f2026-10-14
  • R21-11rel:R21-11#67ff974f2026-10-14
  • R22-11rel:R22-11#46ec30932026-10-14
  • R23-11rel:R23-11#1ae0af2f2026-10-14
  • R24-11rel:R24-11#2e3acc272026-10-14
  • R25-11rel:R25-11#4e4150792026-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 GetCurrentActiveConversations [SWS_DM_00783] Upstream: RS_Diag_04166, RS_Diag_04169, RS_Diag_04209

static ara::core::Vector< std::reference_wrapper< Conversation > > Get CurrentActiveConversations () noexcept;

Get all currently active conversations.

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

Rückgabewert

TypBeschreibung
ara::core::Vector<std::reference_wrapper<Conversation > >A Vector of all currently active (GetActivityStatus() == kActive) Conversation objects.

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

Record
AUTOSAR/AP/record/SWS_DM_00783
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00783@rel:R25-11#72e78bed
Content hash
72e78bed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00783
Status: valid/unmigrated Version: rel:R25-11#0836aea7 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_00783@rel:R25-11#0836aea7
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f90567b82026-09-30
  • R19-11rel:R19-11#f673e9752026-10-14
  • R20-11rel:R20-11#50e9815d2026-10-14
  • R21-11rel:R21-11#2b04ffb12026-10-14
  • R22-11rel:R22-11#297e1edb2026-10-14
  • R23-11rel:R23-11#f13cae9f2026-10-14
  • R24-11rel:R24-11#4274a6302026-10-14
  • R25-11rel:R25-11#0836aea72026-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 GetDiagnosticSecurityLevel [SWS_DM_00698] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

ara::core::Result< SecurityLevelType > GetDiagnosticSecurityLevel () noexcept;

Represents the current active diagnostic SecurityLevel of an active conversation.

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

usar

El método GetDiagnosticSecurityLevel de la clase ara::diag::Conversation sirve para determinar de forma síncrona el nivel de seguridad actualmente activo de una conversación de diagnóstico (AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.6 «GetDiagnosticSecurityLevel», [SWS_DM_00698]). Se proporciona a través del encabezado #include "ara/diag/conversation.h", no recibe parámetros de entrada y está declarado con el especificador noexcept.

Como tipo de retorno, la función proporciona un ara::core::Result<SecurityLevelType>. En caso de éxito, este objeto contiene directamente el valor de enumeración del estado de seguridad actual de la conexión activa [SWS_DM_00698].

Tratamiento de errores y concurrencia

Si la consulta falla, el método devuelve un ara::core::Result con el código de error DiagErrc::kServiceNotAvailable [SWS_DM_00698]. Esto señala, aplicando la semántica de reversión (rollback), que las funciones esenciales del Diagnostic Management (DM) no están disponibles en el momento de la llamada. Con respecto a la seguridad de ejecución, GetDiagnosticSecurityLevel está clasificado como thread-safe y exception-safe [SWS_DM_00698], lo que permite llamadas concurrentes desde diferentes subprocesos.

Interacción

Interpretación: Por lo general, es de esperar que se realice una llamada antes de ejecutar actividades de diagnóstico protegidas, con el fin de cotejar la presencia del nivel de autorización requerido. Pregunta Q-8c056d4c5199524d (abierta) Para su posterior procesamiento o salida de diagnóstico, el SecurityLevelType determinado se puede traducir a través del método GetDiagnosticSecurityLevelShortName (AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.7 «GetDiagnosticSecurityLevelShortName», [SWS_DM_00708]) en el nombre corto simbólico correspondiente (shortName como ara::core::StringView).

Esta nota de uso se creó automáticamente a partir de la especificación AUTOSAR Adaptive R25-11.

Guía del implementador pendiente (complejidad I2)

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

Rückgabewert

TypBeschreibung
ara::core::Result<SecurityLevelType >Returns the current SecurityLevel

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_00698
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00698@rel:R25-11#12b2beb0
Content hash
12b2beb0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00698
Status: valid/unmigrated Version: rel:R25-11#f7a1e8de 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_00698@rel:R25-11#f7a1e8de
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#628e5fed2026-09-30
  • R19-11rel:R19-11#9fed8b1c2026-10-14
  • R20-11rel:R20-11#c70e66042026-10-14
  • R21-11rel:R21-11#3fddfcd12026-10-14
  • R22-11rel:R22-11#fb7b24702026-10-14
  • R23-11rel:R23-11#d0084dcd2026-10-14
  • R24-11rel:R24-11#1251fd382026-10-14
  • R25-11rel:R25-11#f7a1e8de2026-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 GetDiagnosticSecurityLevelShortName [SWS_DM_00708] Upstream: RS_Diag_04169, RS_Diag_04208

ara::core::Result< ara::core::StringView > GetDiagnosticSecurityLevel ShortName (SecurityLevelType securityLevel) noexcept;

Converts the given diagnostic SecurityLevel into the ShortName.

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

usar

El método síncrono ara::diag::Conversation::GetDiagnosticSecurityLevelShortName de la cabecera ara/diag/conversation.h resuelve un nivel de seguridad pasado de tipo SecurityLevelType en el identificador del nombre corto configurado (DiagnosticSecurityLevel.shortName) [SWS_DM_00708]. La llamada devuelve el resultado como ara::core::Result<ara::core::StringView>.

Manejo de errores

En caso de error, la función devuelve el código de error DiagErrc::kInvalidArgument [SWS_DM_00708]. La instancia del Diagnostic Server valida el valor del parámetro en función de dos condiciones:

  • Si se pasa como argumento securityLevel el estado bloqueado kLocked, el Diagnostic Server debe devolver obligatoriamente kInvalidArgument [SWS_DM_01259].
  • Si el valor pasado no coincide con ninguna entrada configurada según el cálculo ((DiagnosticSecurityAccess.requestSeedId + 1) / 2) en el DiagnosticContributionSet, la llamada también falla con kInvalidArgument [SWS_DM_01260].

Concurrencia y restricciones

El método está declarado como noexcept, así como especificado como seguro ante excepciones (exception safe) y seguro frente a hilos (thread-safe) [SWS_DM_00708]. Debido a la seguridad frente a hilos especificada, es de esperar que la llamada sea segura incluso durante actividades de diagnóstico concurrentes sin sincronización por mutex en la aplicación. Pregunta Q-b851a473c2d836b7 (abierta) Antes de acceder a la cadena de caracteres referenciada, la aplicación debe comprobar si el ara::core::Result contiene un error.

Esta nota de uso se creó de forma automatizada. Todas las evidencias proceden de las especificaciones de la plataforma AUTOSAR Adaptive para el release R25-11.

Guía del implementador pendiente (complejidad I2)

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

Parameter (in)

ParameterBeschreibung
securityLevelSecurity level enum the shortname shall be returned for.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::StringView >ara::core::Result<ara::core::StringView> the SecurityLevel as shortName; DiagnosticSecurityLevel.shortName.

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_00708
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00708@rel:R25-11#9237994c
Content hash
9237994c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00708
Status: valid/unmigrated Version: rel:R25-11#3e07bb5e Versionshistorie & Revisions (1 transition, 7 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_00708@rel:R25-11#3e07bb5e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#ad3cc17f2026-09-30
  • R20-11rel:R20-11#b852d3862026-10-14
  • R21-11rel:R21-11#618fb0662026-10-14
  • R22-11rel:R22-11#4879f23d2026-10-14
  • R23-11rel:R23-11#488bb9ba2026-10-14
  • R24-11rel:R24-11#bce583e52026-10-14
  • R25-11rel:R25-11#3e07bb5e2026-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 GetDiagnosticSession [SWS_DM_00696] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

ara::core::Result< SessionControlType > GetDiagnosticSession () noexcept;

Represents the current active diagnostic session of an active conversation.

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

Rückgabewert

TypBeschreibung
ara::core::Result<SessionControlType >the current session

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_00696
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00696@rel:R25-11#4c468f7f
Content hash
4c468f7f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00696
Status: valid/unmigrated Version: rel:R25-11#43ed0f51 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_00696@rel:R25-11#43ed0f51
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d12e41e92026-09-30
  • R19-11rel:R19-11#0f787e1f2026-10-14
  • R20-11rel:R20-11#4ee06c722026-10-14
  • R21-11rel:R21-11#980ebaf22026-10-14
  • R22-11rel:R22-11#5a23cab62026-10-14
  • R23-11rel:R23-11#e3c9e4282026-10-14
  • R24-11rel:R24-11#043ec2502026-10-14
  • R25-11rel:R25-11#43ed0f512026-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 GetDiagnosticSessionShortName [SWS_DM_00707] Upstream: RS_Diag_04169, RS_Diag_04208

ara::core::Result< ara::core::StringView > GetDiagnosticSessionShort Name (SessionControlType session) noexcept;

Converts the given diagnostic session into the ShortName.

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

Parameter (in)

ParameterBeschreibung
sessionDiagnostic session the shortname shall be returned for.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::StringView >ara::core::Result<ara::core::StringView> the session as shortName; DiagnosticSession.shortName.

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_00707
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00707@rel:R25-11#d87a9f07
Content hash
d87a9f07
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00707
Status: valid/unmigrated Version: rel:R25-11#ec692072 Versionshistorie & Revisions (1 transition, 7 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_00707@rel:R25-11#ec692072
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#382520262026-09-30
  • R20-11rel:R20-11#8e2625812026-10-14
  • R21-11rel:R21-11#633a4a682026-10-14
  • R22-11rel:R22-11#8d9fdc682026-10-14
  • R23-11rel:R23-11#68d2b3682026-10-14
  • R24-11rel:R24-11#687ae1a02026-10-14
  • R25-11rel:R25-11#ec6920722026-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 ResetToDefaultSession [SWS_DM_00701] Upstream: RS_Diag_04006, RS_Diag_04166, RS_Diag_04169, RS_Diag_04209

ara::core::Result< void > ResetToDefaultSession () noexcept;

Method to reset the current session to default session.

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

El método ara::diag::Conversation::ResetToDefaultSession permite a una Adaptive Application restablecer explícitamente una conversación de diagnóstico a la sesión por defecto (Default Session) [SWS_DM_00701].

usar

La llamada se realiza sin parámetros en una instancia de ara::diag::Conversation a través del archivo de cabecera #include "ara/diag/conversation.h" [SWS_DM_00701]. Cuando se llama al método, la instancia del Diagnostic Server finaliza en primer lugar la solicitud en curso y solo después cambia la sesión de diagnóstico de la conversación a la Default Session [SWS_DM_00842].

Tratamiento de errores y concurrencia

  • Valor de retorno y errores: La función devuelve un ara::core::Result<void> [SWS_DM_00701]. No hay predefinidos códigos de error estandarizados; interpretación: Los posibles errores en el Result probablemente reflejen problemas específicos del fabricante en la tramitación del encargo por parte del Diagnostic Server. Pregunta Q-9f780f4ef7991bf4 (abierta)
  • Seguridad de hilos: La función es segura frente a excepciones (noexcept), pero está especificada como no segura para hilos (not thread-safe) [SWS_DM_00701]. Por tanto, las llamadas paralelas sobre el mismo objeto de conversación deben ser coordinadas por la aplicación llamadora.

Interacción

El método complementa el carácter informativo de la interfaz de conversación con un control de estados específico AUTOSAR_AP_SWS_Diagnostics §7 «Diagnostic Conversation Interface». Garantiza que las peticiones de diagnóstico existentes concluyan de forma ordenada antes de que se modifique el estado de la conversación [SWS_DM_00842].

Esta nota de uso se ha generado de forma automatizada y se basa exclusivamente en los documentos de especificación de AUTOSAR Adaptive R25-11.

Guía del implementador pendiente (complejidad I2)

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_DM_00701
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00701@rel:R25-11#e53644a9
Content hash
e53644a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00701
Status: valid/unmigrated Version: rel:R25-11#c03208e0 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_00701@rel:R25-11#c03208e0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#54ef57a92026-09-30
  • R19-11rel:R19-11#cba5e6552026-10-14
  • R20-11rel:R20-11#576381052026-10-14
  • R21-11rel:R21-11#576381052026-10-14
  • R22-11rel:R22-11#3b3097d22026-10-14
  • R23-11rel:R23-11#945d0ca32026-10-14
  • R24-11rel:R24-11#5966beb72026-10-14
  • R25-11rel:R25-11#c03208e02026-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 SetActivityNotifier [SWS_DM_00695] Upstream: RS_AP_00139, RS_Diag_04169

ara::core::Result< void > SetActivityNotifier (ActivityStatusType Notifier notifier) noexcept;

Register a notifier function which is called if the activity 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: 49e9828acc72 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

El método ara::diag::Conversation::SetActivityNotifier sirve para registrar una función de notificación (notifier), a la que se llama siempre que cambia el estado de actividad de la conversación de diagnóstico [SWS_DM_00695]. La declaración se realiza a través del archivo de cabecera #include "ara/diag/conversation.h" en el ámbito de la clase ara::diag::Conversation AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.11 «SetActivityNotifier». Una llamada nueva o consecutiva en la misma instancia sobrescribe por completo el notificador registrado previamente [SWS_DM_00695], [SWS_DM_01355].

Tratamiento de errores y concurrencia

El valor de retorno está tipificado como ara::core::Result<void> y devuelve el éxito o un estado de error; no obstante, la interfaz no especifica códigos de error estandarizados [SWS_DM_00695]. El método está declarado como noexcept y seguro frente a excepciones (exception safe).

En cuanto a la seguridad de hilos, la función está clasificada como no segura para hilos (not thread-safe) [SWS_DM_00695]. Si el acceso a la misma instancia de conversación se realiza desde varios hilos, la llamada de registro debe sincronizarse en el lado de la aplicación.

Interacción en el ciclo de vida

Las instancias de la conversación son proporcionadas por el Diagnostic Server, configurándose el número máximo de conversaciones paralelas a través de maxConversations [SWS_DM_00840]. Cuando el ciclo de vida de una conversación de diagnóstico finaliza, el Diagnostic Server establece el estado de actividad en kInactive [SWS_DM_00843]. Es de suponer que esto señale al notificador registrado el final de la comunicación de diagnóstico activa. Pregunta Q-93c30267eb100ed7 (abierta)

Este texto fue generado por un sistema de IA y revisado editorialmente.

Guía del implementador pendiente (complejidad I2)

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

Parameter (in)

ParameterBeschreibung
notifiernotifier function to be called

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_DM_00695
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00695@rel:R25-11#2f7ca6e7
Content hash
2f7ca6e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00695
Status: valid/unmigrated Version: rel:R25-11#1015a6c7 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_00695@rel:R25-11#1015a6c7
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5eecbfa02026-09-30
  • R19-11rel:R19-11#c2cf431a2026-10-14
  • R20-11rel:R20-11#6973db082026-10-14
  • R21-11rel:R21-11#483f11df2026-10-14
  • R22-11rel:R22-11#dafc31d62026-10-14
  • R23-11rel:R23-11#996aadb12026-10-14
  • R24-11rel:R24-11#8248ea3f2026-10-14
  • R25-11rel:R25-11#1015a6c72026-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 SetDiagnosticSessionNotifier [SWS_DM_00697] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

ara::core::Result< void > SetDiagnosticSessionNotifier (SessionControl TypeNotifier notifier) noexcept;

Register a notifier function which is called if the Session 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: b40c717f1178 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función SetDiagnosticSessionNotifier pertenece a la clase ara::diag::Conversation y se proporciona a través del archivo de cabecera #include "ara/diag/conversation.h" [SWS_DM_00697]. Permite a las aplicaciones registrar una función notificadora que se activa con cada cambio de la sesión de diagnóstico.

Uso y semántica de llamada

La llamada se realiza de forma síncrona en una instancia de ara::diag::Conversation pasando el parámetro notifier de tipo SessionControl TypeNotifier [SWS_DM_00697]. Una llamada consecutiva o repetida al método sobrescribe por completo el notificador registrado previamente AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.12 «SetDiagnosticSessionNotifier».

Valor de retorno y tratamiento de errores

Como valor de retorno, la interfaz devuelve un ara::core::Result<void>, que o bien confirma un registro exitoso o bien contiene un objeto de error [SWS_DM_00697]. La especificación no define códigos de error estandarizados para esta llamada; por tanto, los errores que se produzcan probablemente se deban a validaciones específicas de la implementación. Pregunta Q-1ac7eebee90e3c22 (abierta)

Concurrencia y restricciones

  • Seguridad de hilos: El método está especificado como no seguro para hilos (not thread-safe) [SWS_DM_00697]. Por lo tanto, las llamadas paralelas para la misma instancia de conversación deben sincronizarse en el lado de la aplicación.
  • Seguridad frente a excepciones: La función está declarada como noexcept y se considera segura frente a excepciones (exception safe) [SWS_DM_00697].
  • Estado de la especificación: La sección de documentación de la función está identificada en el estándar como borrador (DRAFT) AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.12 «SetDiagnosticSessionNotifier».

Esta nota de uso se ha creado de forma automatizada. Se basa exclusivamente en los documentos de especificación de AUTOSAR Adaptive Release R25-11.

Guía del implementador pendiente (complejidad I1)

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

Parameter (in)

ParameterBeschreibung
notifiernotifier function to be called

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_DM_00697
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00697@rel:R25-11#a2ce068c
Content hash
a2ce068c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00697
Status: valid/unmigrated Version: rel:R25-11#07e4c466 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_00697@rel:R25-11#07e4c466
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4962fbb22026-09-30
  • R19-11rel:R19-11#0f2677902026-10-14
  • R20-11rel:R20-11#aef2058a2026-10-14
  • R21-11rel:R21-11#aef2058a2026-10-14
  • R22-11rel:R22-11#b2727dc92026-10-14
  • R23-11rel:R23-11#91ac768a2026-10-14
  • R24-11rel:R24-11#22154ba92026-10-14
  • R25-11rel:R25-11#07e4c4662026-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 SetSecurityLevelNotifier [SWS_DM_00699] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

ara::core::Result< void > SetSecurityLevelNotifier (SecurityLevelType Notifier notifier) noexcept;

Register a notifier function which is called if the SecurityLevel 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: f0130e1f2bde Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

El método ara::diag::Conversation::SetSecurityLevelNotifier sirve para registrar una función de retrollamada que recibe una notificación tan pronto como cambia el nivel de seguridad (SecurityLevel) de la conversación de diagnóstico [SWS_DM_00699]. Se declara a través de la cabecera ara/diag/conversation.h AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.13 «SetSecurityLevelNotifier». Acepta como parámetro la función notifier a la que se va a llamar. Una nueva llamada al método sobrescribe por completo una función notificadora registrada previamente [SWS_DM_00699].

Semántica y valor de retorno

La función está definida como noexcept y especificada como segura frente a excepciones (exception safe) [SWS_DM_00699]. Como tipo de retorno proporciona ara::core::Result<void>, que o bien no devuelve ningún valor o bien devuelve un error ocurrido [SWS_DM_00699].

Manejo de errores

La especificación no define códigos de error estandarizados para SetSecurityLevelNotifier [SWS_DM_00699]. Por tanto, los errores devueltos eventualmente en el ara::core::Result probablemente sean específicos del fabricante o se deban al tiempo de ejecución de la plataforma subyacente. Pregunta Q-c8dd53e9d661cc78 (abierta)

Concurrencia y restricciones

En cuanto a la seguridad de hilos, el método está clasificado explícitamente como not thread-safe [SWS_DM_00699]. Por tanto, los accesos paralelos a la misma instancia de ara::diag::Conversation deben sincronizarse en el lado del llamador. Además, la definición de la API posee en el estado de documentación presente el estado DRAFT AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.13 «SetSecurityLevelNotifier».

Esta nota de uso se basa en la especificación AUTOSAR Adaptive Platform Release R25-11.

Guía del implementador pendiente (complejidad I2)

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

Parameter (in)

ParameterBeschreibung
notifiernotifier function to be called

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_DM_00699
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00699@rel:R25-11#d70dd2d7
Content hash
d70dd2d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00699
Status: valid/unmigrated Version: rel:R25-11#1a953b3c 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_00699@rel:R25-11#1a953b3c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bd832bbe2026-09-30
  • R19-11rel:R19-11#955a893e2026-10-14
  • R20-11rel:R20-11#e175a4872026-10-14
  • R21-11rel:R21-11#965f1c762026-10-14
  • R22-11rel:R22-11#377ba2182026-10-14
  • R23-11rel:R23-11#a5a017ec2026-10-14
  • R24-11rel:R24-11#a280e19e2026-10-14
  • R25-11rel:R25-11#1a953b3c2026-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_02091] Upstream: RS_AP_00134

Conversation & operator= (const Conversation &)=delete;

Copy assignment operator of conversation is deleted.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation

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

Record
AUTOSAR/AP/record/SWS_DM_02091
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02091@rel:R25-11#b754b2d6
Content hash
b754b2d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02091
Status: valid/unmigrated Version: rel:R25-11#c1fa5c07 Versionshistorie & Revisions (1 transition)
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_02091@rel:R25-11#c1fa5c07
Point-in-Time History:
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_02093] Upstream: RS_AP_00134

Conversation & operator= (Conversation &&)=delete;

Move assignment operator of conversation is deleted.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation

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

Record
AUTOSAR/AP/record/SWS_DM_02093
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02093@rel:R25-11#7d869a98
Content hash
7d869a98
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02093
Status: valid/unmigrated Version: rel:R25-11#917ef331 Versionshistorie & Revisions (1 transition)
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_02093@rel:R25-11#917ef331
Point-in-Time History:
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

Documentación de los alias de tipo

alias de tipo ActivityStatusTypeNotifier [SWS_DM_02126] Upstream: RS_AP_00139, RS_Diag_04169

using ActivityStatusTypeNotifier = std::function<void(ActivityStatus Type)>;

Register a notifier function which is called if the activity is changed.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation
SymbolActivityStatusTypeNotifier
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_02126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02126@rel:R25-11#e8e68ff3
Content hash
e8e68ff3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02126
Status: valid/unmigrated Version: rel:R25-11#9d0d103a Versionshistorie & Revisions (1 transition)
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_02126@rel:R25-11#9d0d103a
Point-in-Time History:
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

alias de tipo SecurityLevelTypeNotifier [SWS_DM_02128] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

using SecurityLevelTypeNotifier = std::function<void(SecurityLevel Type)>;

Register a notifier function which is called if the SecurityLevel is changed.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation
SymbolSecurityLevelTypeNotifier
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_02128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02128@rel:R25-11#e77ece6f
Content hash
e77ece6f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02128
Status: valid/unmigrated Version: rel:R25-11#bf178d8f Versionshistorie & Revisions (1 transition)
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_02128@rel:R25-11#bf178d8f
Point-in-Time History:
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

alias de tipo SessionControlTypeNotifier [SWS_DM_02127] Upstream: RS_AP_00139, RS_Diag_04169, RS_Diag_04208

using SessionControlTypeNotifier = std::function<void(SessionControl Type)>;

Register a notifier function which is called if the Session is changed.

Header-Datei#include "ara/diag/conversation.h"
Scopeclass ara::diag::Conversation
SymbolSessionControlTypeNotifier
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_02127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02127@rel:R25-11#4b078dbe
Content hash
4b078dbe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02127
Status: valid/unmigrated Version: rel:R25-11#09cac05a Versionshistorie & Revisions (1 transition)
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_02127@rel:R25-11#09cac05a
Point-in-Time History:
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