DEENESPTFRRUARHIKOZHNL

class 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

User GuideKI-GENERIERT

Ermöglicht die Überwachung aktiver Diagnosekanäle sowie die Kontrolle von Diagnosesitzung und Sicherheitsstufe.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 1824b6dbecd2 Herkunft Offene Fragen (2)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Ermöglicht die Überwachung aktiver Diagnosekanäle sowie die Kontrolle von Diagnosesitzung und Sicherheitsstufe.

Die Klasse ara::diag::Conversation repräsentiert einen Diagnosekommunikationskanal zur Überwachung von Aktivitätsstatus, Diagnosesitzung und Sicherheitsstufe sowie zum Zurücksetzen auf die Standardsitzung [SWS_DM_00692] [SWS_DM_00701]. Anwendungen beziehen Instanzen ausschließlich als Referenzen über statische Suchfunktionen, da eigene Instanziierungen sowie Kopier- und Verschiebevorgänge gelöscht sind [SWS_DM_02090]. Während lesende Statusabfragen thread-safe ausgeführt werden können, erfordern Callback-Registrierungen und das Rücksetzen der Sitzung externe Synchronisation.

Kontext

Die Klasse ara::diag::Conversation repräsentiert die Schnittstelle zu einem Kommunikationskanal zwischen einem externen Diagnosetester und der Adaptive Platform SWS Diagnostics §8.2 „Conversation“. Sie dient als Bindeglied zwischen der Anwendung und dem internen Diagnostik-Management (DM), um laufende Diagnoseaktivitäten nachzuvollziehen und zu steuern. Über ihre Instanzen erhalten Adaptive Anwendungen Einblick in den aktuellen Verbindungszustand [SWS_DM_00694], die aktive Diagnosesitzung [SWS_DM_00696], die Sicherheitsstufe [SWS_DM_00698] sowie die Identifikationsmerkmale des Kanals [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

Kontextdiagramm: Einbindung von ara::diag::Conversation zwischen Anwendung und Diagnostik-Management. Quellen: [SWS_DM_00692], [SWS_DM_00782], SWS Diagnostics §8.2 „Conversation“.

Lebenszyklus

Instanzen von ara::diag::Conversation werden vollständig durch den Diagnostic Management Daemon instanziiert und verwaltet. Ein manuelles Erzeugen, Kopieren oder Verschieben durch die Anwendung ist ausgeschlossen: Sowohl der Kopierkonstruktor [SWS_DM_02090] und Verschiebekonstruktor [SWS_DM_02092] als auch die Zuweisungsoperatoren [SWS_DM_02091] [SWS_DM_02093] sind gelöscht (=delete). Die Lebensdauer der referenzierten Objekte dürfte daher unmittelbar an den Laufzeitzustand des Diagnosesubsystems gekoppelt sein. Frage Q-f8deca481d5b76e1 (offen)

Der Zugriff auf bestehende Instanzen erfolgt ausschließlich über statische Abfragefunktionen. Mit GetAllConversations() lassen sich Referenzen auf sämtliche konfigurierten Verbindungen abrufen [SWS_DM_00782], während GetCurrentActiveConversations() eine Liste aller aktuell aktiven Kanäle liefert, deren Aktivitätsstatus kActive entspricht [SWS_DM_00783]. Zudem kann über GetConversation(metaInfo) eine spezifische Verbindung anhand der Metadaten einer laufenden Diagnoseanfrage aufgelöst werden [SWS_DM_00692].

Hinsichtlich der Nebenläufigkeit sind sämtliche lesenden Zugriffe auf Status und Identifikatoren als thread-safe spezifiziert [SWS_DM_00694] [SWS_DM_00696] [SWS_DM_00698]. Das Registrieren von Benachrichtigungs-Callbacks sowie das Rücksetzen der Sitzung gelten hingegen als nicht thread-sicher (not thread-safe) [SWS_DM_00695] [SWS_DM_00701] und erfordern anwendungsseitige Synchronisation.

Nutzungspfad

Ein typischer Anwendungsfall umfasst das Ermitteln der Verbindung, die Registrierung von Benachrichtigungsfunktionen und die gezielte Überwachung oder Manipulation des Sitzungszustands:

  • Referenz beschaffen: Bei einer eintreffenden Diagnoseanfrage wird die zugehörige Instanz mittels GetConversation(metaInfo) bezogen [SWS_DM_00692].
  • Zustandsüberwachung einrichten: Über die Registrierungsmethoden SetActivityNotifier() [SWS_DM_00695] [SWS_DM_02126], SetDiagnosticSessionNotifier() [SWS_DM_00697] [SWS_DM_02127] und SetSecurityLevelNotifier() [SWS_DM_00699] [SWS_DM_02128] wird die Anwendung bei Änderungen benachrichtigt. Ein wiederholter Aufruf überschreibt den zuvor registrierten Callback.
  • Status abfragen: Der augenblickliche Zustand lässt sich synchron mit GetDiagnosticSession() [SWS_DM_00696] oder GetDiagnosticSecurityLevel() [SWS_DM_00698] ermitteln. Mittels GetDiagnosticSessionShortName() [SWS_DM_00707] und GetDiagnosticSecurityLevelShortName() [SWS_DM_00708] können die Enums in lesbare Kurzbezeichner aufgelöst werden.
  • Sitzung zurücksetzen: Erfordert die Logik einen Abbruch oder ein Zurückfallen in den Grundzustand, versetzt ResetToDefaultSession() den Kanal zurück in die Standardsitzung [SWS_DM_00701].
Nutzungsablauf für ara::diag::ConversationAnwendungConversationDiagnosticManagementUse Case: VerbindungsauflösungGetConversation(metaInfo)Result<Conversation&>Use Case: Callback-Registrierung & StatusabfrageSetDiagnosticSessionNotifier(notifier)Result<void>GetDiagnosticSession()Result<SessionControlType>Use Case: SitzungssteuerungResetToDefaultSession()Sitzungswechsel ausführenResult<void>

Sequenzdiagramm: Typische Interaktionsabfolge zur Registrierung von Notifiern, Zustandsabfrage und Sitzungsrücksetzung. Quellen: [SWS_DM_00692], [SWS_DM_00697], [SWS_DM_00696], [SWS_DM_00701].

Fehlerszenarien

Methoden von ara::diag::Conversation signalisieren Fehler über ara::core::Result. Ist die grundlegende Funktionalität des Diagnostic Management vorübergehend nicht verfügbar, schlagen GetConversation(), GetActivityStatus(), GetDiagnosticSession(), GetDiagnosticSecurityLevel() und GetConversationIdentifier() mit dem Fehlercode DiagErrc::kServiceNotAvailable fehl [SWS_DM_00692] [SWS_DM_00694] [SWS_DM_00696] [SWS_DM_00698] [SWS_DM_00700]. Aufrufe folgen dabei der Rollback-Semantik und bleiben ohne Nebenwirkungen.

Bei den String-Konvertierungsfunktionen GetDiagnosticSessionShortName() [SWS_DM_00707] und GetDiagnosticSecurityLevelShortName() [SWS_DM_00708] führt die Übergabe eines unbekannten oder ungültigen Enumerationswerts zum Fehler DiagErrc::kInvalidArgument. Für die Notifier-Registrierungsmethoden sowie für ResetToDefaultSession() sind in der Spezifikation keine standardisierten Fehlercodes definiert [SWS_DM_00701].

Dieser Leitfaden basiert ausschließlich auf der AUTOSAR-Adaptive-Spezifikation R25-11.

Mitgliederkarte

Klassendiagramm

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

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Konstruktoren und Destruktor

Conversation function 2

Copy constructor of conversation is deleted.

Überladungen Conversation 2
Conversation (const Conversation &)=delete; SWS_DM_02090
Conversation (Conversation &&)=delete; SWS_DM_02092

Methoden

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;

Operatoren

operator= function 2

Copy assignment operator of conversation is deleted.

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

Typaliase

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

Eingebettete Typen

Dokumentation der Methoden

function 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#4794c95c
Content hash
4794c95c
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

function 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#c1133833
Content hash
c1133833
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

function 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#2a044ec1
Content hash
2a044ec1
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

function 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#d2c5059b
Content hash
d2c5059b
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

function 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#43561499
Content hash
43561499
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

function 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#12611884
Content hash
12611884
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

function 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#f90567b8
Content hash
f90567b8
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: a38bce94acc6 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode GetDiagnosticSecurityLevel der Klasse ara::diag::Conversation dient der synchronen Ermittlung der aktuell aktiven Sicherheitsstufe einer Diagnosekonversation (AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.6 „GetDiagnosticSecurityLevel“, [SWS_DM_00698]). Sie wird über den Header #include "ara/diag/conversation.h" bereitgestellt, nimmt keine Übergabeparameter entgegen und ist mit dem Spezifizierer noexcept deklariert.

Als Rückgabetyp liefert die Funktion ein ara::core::Result<SecurityLevelType>. Im Erfolgsfall enthält dieses Objekt direkt den Enum-Wert des aktuellen Sicherheitszustands der aktiven Verbindung [SWS_DM_00698].

Fehlerbehandlung und Nebenläufigkeit

Schlägt die Abfrage fehl, liefert die Methode ein ara::core::Result mit dem Fehlercode DiagErrc::kServiceNotAvailable [SWS_DM_00698]. Dies signalisiert unter Anwendung von Rollback-Semantik, dass essenzielle Funktionen des Diagnostic Management (DM) zum Aufrufzeitpunkt nicht verfügbar sind. In Bezug auf Ausführungssicherheit ist GetDiagnosticSecurityLevel als thread-safe sowie exception-safe klassifiziert [SWS_DM_00698] und erlaubt damit nebenläufige Aufrufe aus unterschiedlichen Threads.

Zusammenspiel

Interpretation: Ein Aufruf dürfte typischerweise vor der Ausführung geschützter Diagnoseaktivitäten erfolgen, um das Vorliegen der erforderlichen Berechtigungsstufe abzugleichen. Frage Q-8c056d4c5199524d (offen) Zur Weiterverarbeitung oder Diagnoseausgabe kann der ermittelte SecurityLevelType über die Methode GetDiagnosticSecurityLevelShortName (AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.7 „GetDiagnosticSecurityLevelShortName“, [SWS_DM_00708]) in den zugehörigen symbolischen Kurznamen (shortName als ara::core::StringView) übersetzt werden.

Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikation AUTOSAR Adaptive R25-11 erstellt.

Implementer's Guide folgt (Komplexität 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#628e5fed
Content hash
628e5fed
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 384b6d7f7a21 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die synchrone Methode ara::diag::Conversation::GetDiagnosticSecurityLevelShortName aus dem Header ara/diag/conversation.h löst einen übergebenen Sicherheitslevel vom Typ SecurityLevelType in den Bezeichner des konfigurierten Kurznamens (DiagnosticSecurityLevel.shortName) auf [SWS_DM_00708]. Der Aufruf gibt das Ergebnis als ara::core::Result<ara::core::StringView> zurück.

Fehlerbehandlung

Im Fehlerfall liefert die Funktion den Fehlercode DiagErrc::kInvalidArgument zurück [SWS_DM_00708]. Die Instanz des Diagnostic Servers validiert den Parameterwert dabei anhand zweier Bedingungen:

  • Wird als Argument securityLevel der gesperrte Zustand kLocked übergeben, muss der Diagnostic Server zwingend kInvalidArgument zurückgeben [SWS_DM_01259].
  • Entspricht der übergebene Wert keinem konfigurierten Eintrag nach der Berechnung ((DiagnosticSecurityAccess.requestSeedId + 1) / 2) im DiagnosticContributionSet, schlägt der Aufruf ebenfalls mit kInvalidArgument fehl [SWS_DM_01260].

Nebenläufigkeit und Einschränkungen

Die Methode ist als noexcept deklariert sowie als ausnahmesicher (exception safe) und threadsicher (thread-safe) spezifiziert [SWS_DM_00708]. Aufgrund der spezifizierten Threadsicherheit dürfte der Aufruf auch bei nebenläufigen Diagnoseaktivitäten ohne anwendungsseitige Mutex-Synchronisation sicher sein. Frage Q-b851a473c2d836b7 (offen) Vor dem Zugriff auf die referenzierte Zeichenkette muss die Anwendung prüfen, ob das ara::core::Result einen Fehler enthält.

Dieser Nutzungshinweis wurde automatisiert erstellt. Alle Belege stammen aus den Spezifikationen der AUTOSAR-Adaptive-Plattform für Release R25-11.

Implementer's Guide folgt (Komplexität 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#ad3cc17f
Content hash
ad3cc17f
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

function 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#d12e41e9
Content hash
d12e41e9
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

function 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#38252026
Content hash
38252026
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 040cba85c191 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode ara::diag::Conversation::ResetToDefaultSession ermöglicht es einer Adaptive Application, eine Diagnosekonversation explizit in die Standard-Sitzung (Default Session) zurückzusetzen [SWS_DM_00701].

Verwendung

Der Aufruf erfolgt parameterlos an einer Instanz von ara::diag::Conversation über die Header-Datei #include "ara/diag/conversation.h" [SWS_DM_00701]. Wird die Methode aufgerufen, schließt die Instanz des Diagnostic Servers zunächst die laufende Anfrage ab und wechselt erst danach die Diagnosesitzung der Konversation in die Default Session [SWS_DM_00842].

Fehlerbehandlung und Nebenläufigkeit

  • Rückgabewert und Fehler: Die Funktion gibt ein ara::core::Result<void> zurück [SWS_DM_00701]. Es sind keine standardisierten Fehlercodes vorgegeben; Interpretation: Etwaige Fehler im Result dürften herstellerspezifische Probleme bei der Auftragsabwicklung durch den Diagnostic Server abbilden. Frage Q-9f780f4ef7991bf4 (offen)
  • Thread-Sicherheit: Die Funktion ist exceptionsicher (noexcept), aber als nicht threadsicher (not thread-safe) spezifiziert [SWS_DM_00701]. Parallele Aufrufe auf demselben Konversationsobjekt müssen daher durch die aufrufende Anwendung koordiniert werden.

Zusammenspiel

Die Methode ergänzt den informativen Charakter der Konversationsschnittstelle um eine gezielte Zustandssteuerung AUTOSAR_AP_SWS_Diagnostics §7 „Diagnostic Conversation Interface“. Sie stellt sicher, dass bestehende Diagnoseanforderungen geordnet beendet werden, bevor der Zustand der Konversation modifiziert wird [SWS_DM_00842].

Dieser Nutzungshinweis wurde automatisiert generiert und basiert ausschließlich auf den Spezifikationsdokumenten von AUTOSAR Adaptive R25-11.

Implementer's Guide folgt (Komplexität 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#54ef57a9
Content hash
54ef57a9
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 49e9828acc72 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode ara::diag::Conversation::SetActivityNotifier dient der Registrierung einer Benachrichtigungsfunktion (notifier), die immer dann aufgerufen wird, wenn sich der Aktivitätsstatus der Diagnosekonversation ändert [SWS_DM_00695]. Die Deklaration erfolgt über die Header-Datei #include "ara/diag/conversation.h" im Scope der Klasse ara::diag::Conversation AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.11 „SetActivityNotifier“. Ein erneuter bzw. aufeinanderfolgender Aufruf an derselben Instanz überschreibt den zuvor registrierten Notifier vollständig [SWS_DM_00695], [SWS_DM_01355].

Fehlerbehandlung und Nebenläufigkeit

Der Rückgabewert ist als ara::core::Result<void> typisiert und meldet den Erfolg oder einen Fehlerzustand zurück; die Schnittstelle spezifiziert jedoch keine standardisierten Fehlercodes [SWS_DM_00695]. Die Methode ist als noexcept und ausnahmesicher (exception safe) deklariert.

Hinsichtlich der Thread-Sicherheit ist die Funktion als nicht threadsicher (not thread-safe) eingestuft [SWS_DM_00695]. Erfolgt der Zugriff auf dieselbe Konversationsinstanz aus mehreren Threads, muss der Registrierungsaufruf anwendungsseitig synchronisiert werden.

Zusammenspiel im Lebenszyklus

Instanzen der Konversation werden durch den Diagnostic Server bereitgestellt, wobei die Maximalzahl paralleler Konversationen über maxConversations konfiguriert wird [SWS_DM_00840]. Wenn der Lebenszyklus einer Diagnosekonversation endet, setzt der Diagnostic Server den Aktivitätsstatus auf kInactive [SWS_DM_00843]. Dies dürfte dem registrierten Notifier das Ende der aktiven Diagnosekommunikation signalisieren. Frage Q-93c30267eb100ed7 (offen)

Dieser Text wurde durch ein KI-System generiert und redaktionell geprüft.

Implementer's Guide folgt (Komplexität 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#5eecbfa0
Content hash
5eecbfa0
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: b40c717f1178 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Funktion SetDiagnosticSessionNotifier gehört zur Klasse ara::diag::Conversation und wird über die Header-Datei #include "ara/diag/conversation.h" bereitgestellt [SWS_DM_00697]. Sie ermöglicht Anwendungen, eine Notifier-Funktion zu registrieren, die bei jedem Wechsel der Diagnose-Sitzung ausgelöst wird.

Verwendung und Aufrufsemantik

Der Aufruf erfolgt synchron an einer Instanz von ara::diag::Conversation unter Übergabe des Parameters notifier vom Typ SessionControl TypeNotifier [SWS_DM_00697]. Ein aufeinanderfolgender bzw. wiederholter Methodenaufruf überschreibt den zuvor registrierten Notifier vollständig AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.12 „SetDiagnosticSessionNotifier“.

Rückgabewert und Fehlerbehandlung

Als Rückgabewert liefert die Schnittstelle ein ara::core::Result<void> zurück, welches entweder eine erfolgreiche Registrierung bestätigt oder ein Fehlerobjekt enthält [SWS_DM_00697]. Die Spezifikation definiert für diesen Aufruf keine standardisierten Fehlercodes; auftretende Fehler dürften daher auf implementierungsspezifische Validierungen zurückzuführen sein. Frage Q-1ac7eebee90e3c22 (offen)

Nebenläufigkeit und Einschränkungen

  • Thread-Sicherheit: Die Methode ist als nicht threadsicher (not thread-safe) spezifiziert [SWS_DM_00697]. Parallele Aufrufe für dieselbe Konversationsinstanz müssen daher anwendungsseitig synchronisiert werden.
  • Ausnahmesicherheit: Die Funktion ist als noexcept deklariert und gilt als ausnahmesicher (exception safe) [SWS_DM_00697].
  • Spezifikationsstatus: Der Dokumentationsabschnitt der Funktion ist im Standard als Entwurf (DRAFT) gekennzeichnet AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.12 „SetDiagnosticSessionNotifier“.

Dieser Nutzungshinweis wurde automatisiert erstellt. Er basiert ausschließlich auf den Spezifikationsdokumenten von AUTOSAR Adaptive Release R25-11.

Implementer's Guide folgt (Komplexität 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#4962fbb2
Content hash
4962fbb2
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: f0130e1f2bde Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode ara::diag::Conversation::SetSecurityLevelNotifier dient der Registrierung einer Callback-Funktion, die benachrichtigt wird, sobald sich die Sicherheitsstufe (SecurityLevel) der Diagnosekonversation ändert [SWS_DM_00699]. Sie wird über den Header ara/diag/conversation.h deklariert AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.13 „SetSecurityLevelNotifier“. Als Parameter nimmt sie die aufzurufende Funktion notifier entgegen. Ein erneuter Aufruf der Methode überschreibt eine zuvor registrierte Notifier-Funktion vollständig [SWS_DM_00699].

Semantik und Rückgabewert

Die Funktion ist als noexcept definiert und als ausnahmesicher (exception safe) spezifiziert [SWS_DM_00699]. Als Rückgabetyp liefert sie ara::core::Result<void>, welches entweder keinen Wert oder einen aufgetretenen Fehler zurückgibt [SWS_DM_00699].

Fehlerbehandlung

Die Spezifikation definiert für SetSecurityLevelNotifier keine standardisierten Fehlercodes [SWS_DM_00699]. Eventuell im ara::core::Result zurückgegebene Fehler dürften daher herstellerspezifisch oder durch die zugrunde liegende Plattformlaufzeit bedingt sein. Frage Q-c8dd53e9d661cc78 (offen)

Nebenläufigkeit und Einschränkungen

Hinsichtlich der Thread-Sicherheit ist die Methode explizit als not thread-safe eingestuft [SWS_DM_00699]. Parallele Zugriffe auf dieselbe Instanz von ara::diag::Conversation müssen somit aufruferseitig synchronisiert werden. Zudem besitzt die API-Definition im vorliegenden Dokumentationsstand den Status DRAFT AUTOSAR_AP_SWS_Diagnostics §8.9.3.2.2.13 „SetSecurityLevelNotifier“.

Dieser Nutzungshinweis basiert auf der Spezifikation AUTOSAR Adaptive Platform Release R25-11.

Implementer's Guide folgt (Komplexität 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#bd832bbe
Content hash
bd832bbe
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

function 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#c1fa5c07
Content hash
c1fa5c07
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

function 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#917ef331
Content hash
917ef331
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

Dokumentation der Typaliase

type alias 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#9d0d103a
Content hash
9d0d103a
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

type alias 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#bf178d8f
Content hash
bf178d8f
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

type alias 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#09cac05a
Content hash
09cac05a
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