DEENESPTFRRUARHIKOZHNL

क्लास <DataElement-Namespace>::<DataElementInterface>

[SWS_DM_00603] Upstream: RS_Diag_04169

class <DataElementInterface> {...};

DiagnosticDataElementInterface class

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Forwarding-Header#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }/<DataElementShortname>_fwd.h"
Scopenamespace <DataElement-Namespace>

उपयोगकर्ता गाइडएआई जनित

एप्लिकेशनों को Diagnostic Manager के लिए डायग्नोस्टिक रीड प्रश्नों को प्रदान करने और उत्तर देने में सक्षम बनाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 70357181b1bf उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

एप्लिकेशनों को Diagnostic Manager के लिए डायग्नोस्टिक रीड प्रश्नों को प्रदान करने और उत्तर देने में सक्षम बनाता है।

यह इंटरफ़ेस Adaptive एप्लिकेशनों को Diagnostic Management के रीड एक्सेस के लिए डायग्नोस्टिक डेटा प्रदान करने का कार्य करता है। इंस्टेंस विनिर्देशक के माध्यम से इंस्टेंसिएशन के बाद, एप्लिकेशन को सेवा को सक्रिय रूप से प्रस्तुत करना होगा ताकि आने वाले रीड अनुरोध प्राप्त किए जा सकें [SWS_DM_00597]। आने वाले अनुरोधों को एसिंक्रोनस रीड विधि के माध्यम से संसाधित किया जाता है, जो अनुरोधित आउटपुट डेटा या नकारात्मक फीडबैक कोड एक फ़्यूचर मान में प्रदान करता है [SWS_DM_00596]। चूंकि कॉपी और मूव संचालन हटा दिए गए हैं, इसलिए प्रत्येक इंस्टेंस अपने संदर्भ से दृढ़ता से बंधा हुआ है।

संदर्भ

जनरेट की गई C++ क्लास <DataElementInterface> कार्यात्मक क्लस्टर diag (AUTOSAR Adaptive Platform) के भीतर पठनीय डायग्नोस्टिक डेटा प्रदान करने के लिए एक मानकीकृत सर्वर इंटरफ़ेस के रूप में कार्य करती है AUTOSAR_AP_SWS_Diagnostics पृ. 68। विशेष रूप से, यह read भूमिका में एक DiagnosticDataElementInterface का प्रतिनिधित्व करती है, जिसके माध्यम से एक Adaptive एप्लिकेशन Diagnostic Manager (DM) को डायग्नोस्टिक अनुरोधों (जैसे कि UDS ReadDataByIdentifier) के लिए डेटा मान प्रेषित करता है [SWS_DM_00596]।

महत्वपूर्ण इंटरैक्शन पार्टनर प्लेटफ़ॉर्म डेमॉन का Diagnostic Management है, जो आने वाले डायग्नोस्टिक अनुरोधों का समन्वय करता है, साथ ही कार्यान्वयन करने वाला Adaptive एप्लिकेशन है, जो इस इंटरफ़ेस से इनहेरिट करता है और प्रावधान लॉजिक तैयार करता है। सॉफ़्टवेयर आर्किटेक्चर के लिए इंस्टेंसिएशन और असाइनमेंट एक मॉडल किए गए पोर्ट प्रोटोटाइप के माध्यम से होता है, जो ara::core::InstanceSpecifier के माध्यम से जुड़ा होता है [SWS_DM_00587]। आउटपुट डेटा को एक प्रकार-विशिष्ट संरचना में इनकैप्सुलेट किया जाता है, जिसके तर्कों को संबंधित आउटपुट तत्वों द्वारा दर्शाया जाता है [SWS_DM_80023], [SWS_DM_00581]।

जीवनचक्र

एक इंस्टेंस का निर्माण कंस्ट्रक्टर के माध्यम से ara::core::InstanceSpecifier और समवर्ती मोड ara::diag::ConcurrencyType निर्दिष्ट करके किया जाता है [SWS_DM_00587]। प्रक्रिया के भीतर एक अद्वितीय असाइनमेंट बनाए रखने के लिए, कॉपी कंस्ट्रक्टर और मूव कंस्ट्रक्टर दोनों हटा दिए गए हैं [SWS_DM_01661], [SWS_DM_01662]। इसी तरह, कॉपी और मूव असाइनमेंट ऑपरेटर स्पष्ट रूप से हटा दिए गए हैं [SWS_DM_01659], [SWS_DM_01660]। इस प्रकार एक इंस्टेंस अपने बनाए गए पते पर दृढ़ता से रहता है।

संचालन के संबंध में, ऑब्जेक्ट परिभाषित चरणों से गुजरता है:

  • प्रस्तुत नहीं (Not Offered): निर्माण के बाद, ऑब्जेक्ट प्रारंभ में एक निष्क्रिय अवस्था में होता है जिसमें DM कोई रीड अनुरोध वितरित नहीं करता है।
  • प्रस्तुत (Offered): Offer() को कॉल करने से DM पर सेवा सक्रिय हो जाती है, जिससे आने वाले रीड अनुरोध अग्रेषित किए जाते हैं [SWS_DM_00597]।
  • डी-रजिस्टर किया गया: StopOffer() का कॉल DM द्वारा भविष्य के डायग्नोस्टिक अनुरोधों के अग्रेषण को निष्क्रिय कर देता है [SWS_DM_00617]।
  • विनाश: वर्चुअल डिस्ट्रक्टर ~<DataElementInterface>() इंटरफ़ेस इंस्टेंस के जीवनचक्र को समाप्त करता है [SWS_DM_00588]।

जबकि कंस्ट्रक्टर थ्रेड-सुरक्षित निर्दिष्ट है [SWS_DM_00587], Offer(), StopOffer(), Read() और डिस्ट्रक्टर थ्रेड-सुरक्षित नहीं हैं [SWS_DM_00597], [SWS_DM_00617], [SWS_DM_00596], [SWS_DM_00588]। कंस्ट्रक्टर में पैरामीटर concurrencyType यह निर्धारित करता है कि हैंडलर कार्यान्वयन थ्रेड-सुरक्षित (kConcurrent) है या थ्रेड-सुरक्षित नहीं (kNotConcurrent) है [SWS_DM_00587]।

Lifecycle Uninitialized Uninitialized NotOffered NotOffered Uninitialized->NotOffered Konstruktor Offered Offered NotOffered->Offered Offer() Destructed Destructed NotOffered->Destructed Destruktor Offered->NotOffered StopOffer() Offered->Destructed Destruktor

स्थिति आरेख: आरंभीकरण, प्रकाशन स्थिति और विनाश के बीच एक इंटरफ़ेस इंस्टेंस के स्थिति चरण। स्रोत: [SWS_DM_00587], [SWS_DM_00597], [SWS_DM_00617], [SWS_DM_00588]।

उपयोग पथ

डेटा पुनर्प्राप्ति के लिए नियमित प्रक्रिया चरणों के एक निश्चित क्रम का पालन करती है:

  1. इंस्टेंसिएशन: एप्लिकेशन वांछित instanceSpec और concurrencyType के साथ व्युत्पन्न हैंडलर क्लास को इंस्टेंटिएट करता है [SWS_DM_00587]।
  2. सेवा रिलीज़: एप्लिकेशन Offer() को कॉल करता है, जो DM को रीड अनुरोधों को अग्रेषित करने में सक्षम बनाता है [SWS_DM_00597]।
  3. रीड अनुरोधों का प्रसंस्करण: यदि DM पर कोई रीड अनुरोध आता है, तो यह हैंडलर पर शुद्ध वर्चुअल विधि Read(metaInfo, cancellationHandler) को कॉल करता है [SWS_DM_00596]। एप्लिकेशन metaInfo का मूल्यांकन करता है और cancellationHandler.IsCanceled() के माध्यम से जांच सकता है कि क्या वार्तालाप रद्द कर दिया गया था, या cancellationHandler.SetNotifier के माध्यम से एक कॉलबैक पंजीकृत कर सकता है [SWS_DM_00596]।
  4. प्रतिक्रिया: व्याख्या: आउटपुट डेटा का वास्तविक निर्धारण आमतौर पर एसिंक्रोनस रूप से होना चाहिए; परिणाम संबंधित ReadOutput ऑब्जेक्ट के साथ ara::core::Future में प्रदान किया जाता है [SWS_DM_00596], [SWS_DM_00581]। प्रश्न Q-ce317bd1275e4fd9 (खुला)
  5. सेवा समाप्ति: शटडाउन से पहले, एप्लिकेशन अग्रेषण को रोकने के लिए StopOffer() को कॉल करता है [SWS_DM_00617], जिसके बाद ऑब्जेक्ट विनाश होता है [SWS_DM_00588]।
निदान डेटा तत्व के प्रावधान और पठन के लिए कॉल अनुक्रमनिदान प्रबंधनDataElement HandlerAnwendungskernUse Case: DienstregistrierungOffer()Result<void> (kSuccess)Use Case: Leseanfrage verarbeitenRead(metaInfo, cancellationHandler)Daten abfragen / ermittelnaltErfolgreich gelesenReadOutput bereitstellenReadOutput के साथ FutureFehlerfall / NRCFehler aufgetretenDiagUdsNrcErrc के साथ FutureUse Case: DienstabmeldungStopOffer()

अनुक्रम आरेख: सेवा पंजीकरण से लेकर एसिंक्रोनस पढ़ने और डी-पंजीकरण तक कॉल अनुक्रम। स्रोत: [SWS_DM_00597], [SWS_DM_00596], [SWS_DM_00617]।

त्रुटि परिदृश्य

त्रुटि के मामले में, विभिन्न जीवन चरणों को अलग-अलग माना जाना चाहिए:

निर्माण के दौरान ही अखंडता उल्लंघन हो सकते हैं, जिन्हें विशिष्ट उल्लंघनों (Violations) के माध्यम से संकेतित किया जाता है [SWS_DM_00587]:

  • InstanceSpecifierMappingIntegrityViolation: निष्पादन योग्य के मॉडल में इंस्टेंस विनिर्देशक को हल नहीं किया जा सकता है या यह PortPrototype को संदर्भित नहीं करता है।
  • PortInterfaceMappingViolation: DiagnosticDataElementInterface द्वारा टाइप किया गया PortPrototype किसी DiagnosticDataPortMapping द्वारा संदर्भित नहीं है।
  • ProcessMappingViolation: एक उपयुक्त InstanceRef मौजूद है, लेकिन रनटाइम प्रक्रिया से मेल खाने वाली कोई उपयुक्त मॉडल प्रक्रिया नहीं मिली।
  • InstanceSpecifierAlreadyInUseViolation: कंस्ट्रक्टर को एक InstanceSpecifier के साथ कॉल किया गया था जो वर्तमान प्रक्रिया में पहले से ही उपयोग में है।

यदि Offer() को पहले से प्रस्तुत सेवा के लिए कॉल किया जाता है, तो विधि त्रुटि कोड DiagOfferErrc::kAlreadyOffered के साथ ara::core::Result लौटाती है (रोलबैक सिमेंटिक्स) [SWS_DM_00597]।

यदि Read() में किसी रीड अनुरोध का सफलतापूर्वक उत्तर नहीं दिया जा सकता है, तो लौटाए गए ara::core::Future में DiagUdsNrcErrc या ApApplicationError के माध्यम से संबंधित ISO 14229-1 Negative Response Code (NRC) होना चाहिए [SWS_DM_00596]।

यह मार्गदर्शिका AUTOSAR AP रिलीज़ R25-11 विनिर्देश पर आधारित है और diag मॉड्यूल की आवश्यकताओं को सारांशित करती है।

सदस्य मानचित्र

ऑपरेटर

1

स्थिरांक

1

नेस्टेड टाइप

1

क्लास आरेख

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

G n_DataElement_Namespace____DataElementInterface_750 <DataElementInterface> + <DataElementOutArg> + Offer() + Read() + StopOffer() + operator=() + <DataElementInterface>() + ~<DataElementInterface>()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

मेथड

<DataElementInterface> फ़ंक्शन 3

Construct a DataElement from an ara::core::InstanceSpecifier

ओवरलोड <DataElementInterface> 3
<DataElementInterface1> (ara::core::InstanceSpecifier instanceSpec, ara::diag::ConcurrencyType concurrencyType) noexcept; SWS_DM_00587
<DataElementInterface2> (const <DataElementInterface2> &other)=delete; SWS_DM_01661
<DataElementInterface4> (<DataElementInterface4> &&other)=delete; SWS_DM_01662
Offer फ़ंक्शन

This Offer will enable the DM to forward request messages to this handler

ara::core::Result< void > Offer () noexcept;
Read फ़ंक्शन

Provision of a Read DataElement (DiagnosticDataElementInterface in the role read)

virtual ara::core::Future< <DataElement>ReadOutput > Read (const ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;
StopOffer फ़ंक्शन

This StopOffer will disable the forwarding of request messages from DM

void StopOffer () noexcept;
~<DataElementInterface> फ़ंक्शन

Destruction of a DataElement

virtual ~<DataElementInterface6> () noexcept;

ऑपरेटर

operator= फ़ंक्शन 2

Copy assignment constructor deletion

ओवरलोड = 2
<DataElementInterface3> & operator= (const <DataElementInterface3> &other)=delete; SWS_DM_01659
<DataElementInterface5> & operator= ( <DataElementInterface5> &&other)=delete; SWS_DM_01660

स्थिरांक

Member declaration representing an out argument in an Output.

<DataElementOutArgType> <DataElementOutArg>;

नेस्टेड टाइप

<DataElement>ReadOutput क्लास

मेथड का प्रलेखन

फ़ंक्शन <DataElementInterface> [SWS_DM_00587] Upstream: RS_AP_00137, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

<DataElementInterface1> (ara::core::InstanceSpecifier instanceSpec, ara::diag::ConcurrencyType concurrencyType) noexcept;

Construct a DataElement from an ara::core::InstanceSpecifier

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 838df6a198bf उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

कंस्ट्रक्टर फ़ंक्शन [SWS_DM_00587] AUTOSAR_AP_SWS_Diagnostics §8.28.2.2.1.6 के अनुसार एक ara::core::InstanceSpecifier के माध्यम से <DataElementInterface> के इंस्टेंस निर्माण के लिए कार्य करता है।

उपयोग और पैरामीटर:

  • instanceSpec: मॉडल संदर्भ में सेवा के विशिष्ट इंस्टेंस को निर्दिष्ट करता है।
  • concurrencyType: समवर्तीता व्यवहार को निर्धारित करता है और तय करता है कि इंटरफ़ेस थ्रेड-सुरक्षित (kConcurrent) या गैर-थ्रेड-सुरक्षित (kNotConcurrent) निष्पादित किया जाता है।

समवर्तीता और अपवाद सुरक्षा: फ़ंक्शन को noexcept के रूप में घोषित किया गया है और विनिर्देश में थ्रेड-सुरक्षित (thread-safe) तथा अपवाद-सुरक्षित (exception-safe) के रूप में वर्गीकृत किया गया है [SWS_DM_00587]।

त्रुटि प्रबंधन और मॉडलिंग उल्लंघन: त्रुटियां C++ अपवादों का कारण नहीं बनती हैं, बल्कि निर्दिष्ट Violations का कारण बनती हैं:

  • InstanceSpecifierMappingIntegrityViolation: तब होता है जब instanceSpec प्रक्रिया संदर्भ में हल करने योग्य नहीं होता है या PortPrototype को संदर्भित नहीं करता है।
  • PortInterfaceMappingViolation: तब रिपोर्ट किया जाता है जब DiagnosticDataElementInterface के माध्यम से टाइप किया गया PortPrototype किसी DiagnosticDataPortMapping द्वारा संदर्भित नहीं होता है।
  • ProcessMappingViolation: तब मौजूद होता है जब कोई इंस्टेंस संदर्भ उपस्थित होता है, लेकिन रनटाइम प्रक्रिया के लिए कोई उपयुक्त मॉडल की गई प्रक्रिया मौजूद नहीं होती है।
  • InstanceSpecifierAlreadyInUseViolation: तब भेजा जाता है जब instanceSpec उसी प्रक्रिया में पहले से ही किसी कंस्ट्रक्टर कॉल द्वारा व्यस्त होता है।

यह उपयोग नोट AUTOSAR R25-11 के आधार पर स्वचालित रूप से तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

ParameterBeschreibung
instanceSpecThe specifier of a specific instance of a service.
concurrencyTypeSpecifies if the interface is implemented as thread safe ( kConcurrent) or non-thread safe (kNotConcurrent).

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

Record
AUTOSAR/AP/record/SWS_DM_00587
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00587@rel:R25-11#569b2de5
Content hash
569b2de5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00587
Status: valid/unmigrated Version: rel:R25-11#3137c965 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_00587@rel:R25-11#3137c965
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5035bc322026-09-30
  • R19-11rel:R19-11#362db1312026-10-14
  • R20-11rel:R20-11#2280335d2026-10-14
  • R21-11rel:R21-11#90eaccce2026-10-14
  • R22-11rel:R22-11#163504222026-10-14
  • R23-11rel:R23-11#bbe3ec942026-10-14
  • R24-11rel:R24-11#5f9d4fbd2026-10-14
  • R25-11rel:R25-11#3137c9652026-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

फ़ंक्शन <DataElementInterface> [SWS_DM_01661] Upstream: RS_AP_00147

<DataElementInterface2> (const <DataElementInterface2> &other)=delete;

Copy constructor deletion

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

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

Record
AUTOSAR/AP/record/SWS_DM_01661
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01661@rel:R25-11#e6ce85cb
Content hash
e6ce85cb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01661
Status: valid/unmigrated Version: rel:R25-11#2f60d744 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01661@rel:R25-11#2f60d744
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1cd9fb522026-09-30
  • R23-11rel:R23-11#0016469c2026-10-14
  • R24-11rel:R24-11#de93ef5f2026-10-14
  • R25-11rel:R25-11#2f60d7442026-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

फ़ंक्शन <DataElementInterface> [SWS_DM_01662] Upstream: RS_AP_00147

<DataElementInterface4> (<DataElementInterface4> &&other)=delete;

Move constructor

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

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

Record
AUTOSAR/AP/record/SWS_DM_01662
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01662@rel:R25-11#34331b20
Content hash
34331b20
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01662
Status: valid/unmigrated Version: rel:R25-11#2bcbb47c Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01662@rel:R25-11#2bcbb47c
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#91b60d862026-09-30
  • R23-11rel:R23-11#df8de15a2026-10-14
  • R24-11rel:R24-11#05b223222026-10-14
  • R25-11rel:R25-11#2bcbb47c2026-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

फ़ंक्शन Offer [SWS_DM_00597] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04169, RS_Diag_04224

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

This Offer will enable the DM to forward request messages to this handler

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 9d47ee9edbd8 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

DataElementInterface की समकालिक विधि Offer Diagnostic Management Daemon (DM) द्वारा संबद्ध हैंडलर को आने वाले नैदानिक अनुरोधों के अग्रेषण को सक्षम बनाती है ([SWS_DM_00597])। यह कोई पैरामीटर स्वीकार नहीं करती है, अपवाद सुरक्षा (exception safe / noexcept) की गारंटी देती है और ara::core::Result<void> लौटाती है ([SWS_DM_00597])।

त्रुटि प्रबंधन, समवर्तीता और क्रम की शर्तों के लिए निम्नलिखित आवश्यकताएं लागू होती हैं:

  • त्रुटि प्रबंधन: यदि सेवा पहले ही पेश की जा चुकी है, तो कॉल विफल हो जाती है और रोलबैक सेमेंटिक्स के साथ त्रुटि कोड DiagOfferErrc::kAlreadyOffered लौटाती है ([SWS_DM_00597])।
  • समवर्तीता: फ़ंक्शन को गैर-थ्रेड-सुरक्षित (not thread-safe) निर्दिष्ट किया गया है ([SWS_DM_00597])। उसी इंस्टेंस पर एक साथ होने वाले कॉलों को एप्लिकेशन पक्ष पर सिंक्रनाइज़ किया जाना चाहिए।
  • अनुक्रम शर्तें: जब तक Offer को Adaptive Application द्वारा कॉल नहीं किया जाता है, तब तक DM हैंडलर को कोई अनुरोध अग्रेषित नहीं करता है या आंतरिक फ़ॉलबैक मानों का उपयोग करता है ([SWS_DM_01525], [SWS_DM_01527])। कॉल आमतौर पर एप्लिकेशन के स्टार्टअप चरण में होनी चाहिए (व्याख्या)। प्रश्न Q-dca0925e698789c5 (खुला)

Offer के माध्यम से प्रावधान की अवधारणा का उपयोग अन्य DM हैंडलर जैसे रूटीन ([SWS_DM_00594]) और डेटा पहचानकर्ताओं ([SWS_DM_00599]) के साथ भी लगातार किया जाता है। यद्यपि नामकरण ara::com पर आधारित है, यह एक स्वतंत्र DM कार्यान्वयन का प्रतिनिधित्व करता है (SWS Diagnostics §7.3.4.1.2 “Monitors”)।

यह पाठ विनिर्देश डेटा के आधार पर एक AI द्वारा तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >• If successful: an ara::core::Result containing a ara:: core::Result::value_type • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: diag::DiagOfferErrc

Fehler

FehlercodeBeschreibung
DiagOfferErrc::kAlreadyOfferedrollback_semantics The service is already offered.

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

Record
AUTOSAR/AP/record/SWS_DM_00597
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00597@rel:R25-11#82181180
Content hash
82181180
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00597
Status: valid/unmigrated Version: rel:R25-11#dc11c9cd 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_00597@rel:R25-11#dc11c9cd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#872cc3392026-09-30
  • R19-11rel:R19-11#aef2a6c42026-10-14
  • R20-11rel:R20-11#dc31bf0e2026-10-14
  • R21-11rel:R21-11#38b1f8ef2026-10-14
  • R22-11rel:R22-11#3ac4d67f2026-10-14
  • R23-11rel:R23-11#c2a3f2c12026-10-14
  • R24-11rel:R24-11#9279c3692026-10-14
  • R25-11rel:R25-11#dc11c9cd2026-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

फ़ंक्शन Read [SWS_DM_00596] Upstream: RS_AP_00114, RS_AP_00127, RS_AP_00128, RS_AP_00138

virtual ara::core::Future< <DataElement>ReadOutput > Read (const ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler cancellationHandler) noexcept=0;

Provision of a Read DataElement (DiagnosticDataElementInterface in the role read)

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 4be12ba12f01 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विधि Read read भूमिका में DiagnosticDataElementInterface इंस्टेंस के भीतर एक डेटा तत्व प्रदान करने का कार्य करती है [SWS_DM_00596]। नैदानिक पठन अनुरोधों को संसाधित करने के लिए कॉल Diagnostic Manager द्वारा अतुल्यकालिक रूप से की जाती है।

उपयोग और सिग्नेचर

इंटरफ़ेस [SWS_DM_00581] के अनुसार एक टाइप किए गए ReadOutput ऑब्जेक्ट के साथ ara::core::Future लौटाता है [SWS_DM_00596]। पास किए गए मापदंडों के माध्यम से, कार्यान्वयन अनुरोध को संसाधित करता है:

  • metaInfo: आने वाले नैदानिक अनुरोध के बारे में मेटा-जानकारी पास करता है [SWS_DM_00596]।
  • cancellationHandler: cancellationHandler.IsCanceled() के माध्यम से नैदानिक वार्तालाप के समयपूर्व निरस्तीकरण की निगरानी करने के साथ-साथ cancellationHandler.SetNotifier() के माध्यम से एक अधिसूचना फ़ंक्शन के पंजीकरण को सक्षम बनाता है [SWS_DM_00596]।

त्रुटि हैंडलिंग और समवर्तीता

यदि डेटा तत्व को सफलतापूर्वक नहीं पढ़ा जा सकता है, तो ara::core::Future कोई मान नहीं लौटाता है, बल्कि एक त्रुटि लौटाता है। त्रुटि कोड के रूप में, DiagUdsNrcErrc या ApApplicationError के माध्यम से ISO 14229-1 के अनुसार एक उपयुक्त UDS Negative Response Code (NRC) सेट किया जाना चाहिए [SWS_DM_00596]। फ़ंक्शन noexcept और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट है।

निष्पादन संदर्भ के संबंध में, Read को not thread-safe घोषित किया गया है [SWS_DM_00596]। अंतःक्रिया अनुकूली नैदानिक पठन संचालनों के सामान्य पैटर्न से मेल खाती है, जैसा कि डेटा पहचानकर्ताओं ([SWS_DM_00640]) या विस्तारित डेटा रिकॉर्ड्स ([SWS_DM_02156]) के लिए समान रूप से परिभाषित किया गया है।

यह उपयोग निर्देश AUTOSAR स्पेसिफिकेशन के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
metaInfoMetaInfo of the request.
cancellationHandlerThis parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled.

Rückgabewert

TypBeschreibung
ara::core::Future< {<data-element-name>}ReadOutput >• If successful: an ara::core::Future containing a ReadOutput object as per [SWS_DM_00581] • If unsuccessful: an ara::core::Future containing a corresponding DiagUdsNrcErrc or ApApplicationError.

Fehler

FehlercodeBeschreibung
Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.

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

Record
AUTOSAR/AP/record/SWS_DM_00596
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00596@rel:R25-11#5331573e
Content hash
5331573e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00596
Status: valid/unmigrated Version: rel:R25-11#db56d6b8 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_00596@rel:R25-11#db56d6b8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#46170e3a2026-09-30
  • R19-11rel:R19-11#27ec1d4b2026-10-14
  • R20-11rel:R20-11#7e478e7b2026-10-14
  • R21-11rel:R21-11#86f986be2026-10-14
  • R22-11rel:R22-11#d7f279f42026-10-14
  • R23-11rel:R23-11#05b772b12026-10-14
  • R24-11rel:R24-11#47e253022026-10-14
  • R25-11rel:R25-11#db56d6b82026-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

फ़ंक्शन StopOffer [SWS_DM_00617] Upstream: RS_Diag_04169

void StopOffer () noexcept;

This StopOffer will disable the forwarding of request messages from DM

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 91119add8e3c उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

इंटरफ़ेस <DataElement-Namespace>::<DataElementInterface> पर विधि StopOffer Diagnostic Management (DM) से संबंधित डेटा तत्व को आने वाले अनुरोध संदेशों के अग्रेषण को निष्क्रिय करती है [SWS_DM_00617]। कॉल समकालिक रूप से की जाती है, इसमें किसी पासिंग पैरामीटर की आवश्यकता नहीं होती है और यह कोई रिटर्न मान नहीं देती है [SWS_DM_00617]।

त्रुटि प्रबंधन के संबंध में, फ़ंक्शन को exception safe के रूप में निर्दिष्ट किया गया है और noexcept के साथ घोषित किया गया है [SWS_DM_00617]। न तो कोई C++ अपवाद उत्पन्न होते हैं और न ही कोई त्रुटि कोड लौटाए जाते हैं। व्याख्या: चूंकि विनिर्देश केवल संदेश अग्रेषण को दबाने का प्रावधान करता है, इसलिए विधि कॉल को केवल भविष्य के नैदानिक अनुरोधों को अस्वीकार करना चाहिए, जबकि कॉल के समय पहले से चल रहे प्रसंस्करण अप्रभावित रहते हैं। प्रश्न Q-a741bb87f41cfe59 (खुला)

समवर्तीता के संबंध में, इंटरफ़ेस को not thread-safe के रूप में परिभाषित किया गया है [SWS_DM_00617]। इसलिए कॉल करने वालों को एप्लिकेशन-साइड सिंक्रनाइज़ेशन तंत्र के माध्यम से उसी इंस्टेंस पर समानांतर पहुंच को सुरक्षित करना होगा। यद्यपि नाम ara::com के आधार पर चुना गया था, यह Diagnostics कार्यात्मक क्लस्टर का एक स्वतंत्र, निदान-विशिष्ट इंटरफ़ेस है AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”।

निष्क्रिय करना DM के समग्र वास्तुशिल्पीय पैटर्न में फिट बैठता है: अनुरूप StopOffer विधियाँ डेटा पहचानकर्ताओं (Data Identifier) [SWS_DM_00600], सामान्य रूटीनों [SWS_DM_00558], सामान्य UDS सेवाओं [SWS_DM_00620] और रीसेट अनुरोधों [SWS_DM_01017] के लिए मौजूद हैं, ताकि संबंधित हैंडलर को अनुरोधों के अग्रेषण को नियंत्रित तरीके से समाप्त किया जा सके।

यह उपयोग संबंधी निर्देश AUTOSAR AP R25-11 के विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_00617
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00617@rel:R25-11#0246518f
Content hash
0246518f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00617
Status: valid/unmigrated Version: rel:R25-11#f93e3c48 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_00617@rel:R25-11#f93e3c48
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c087b5492026-09-30
  • R19-11rel:R19-11#4686d8712026-10-14
  • R20-11rel:R20-11#302902f52026-10-14
  • R21-11rel:R21-11#60b4eb6e2026-10-14
  • R22-11rel:R22-11#630d49a22026-10-14
  • R23-11rel:R23-11#d3c624d92026-10-14
  • R24-11rel:R24-11#a0e4aac82026-10-14
  • R25-11rel:R25-11#f93e3c482026-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

फ़ंक्शन operator= [SWS_DM_01659] Upstream: RS_AP_00147

<DataElementInterface3> & operator= (const <DataElementInterface3> &other)=delete;

Copy assignment constructor deletion

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

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

Record
AUTOSAR/AP/record/SWS_DM_01659
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01659@rel:R25-11#5d29849f
Content hash
5d29849f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01659
Status: valid/unmigrated Version: rel:R25-11#af6f33fc Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01659@rel:R25-11#af6f33fc
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#473419de2026-09-30
  • R23-11rel:R23-11#9013eaab2026-10-14
  • R24-11rel:R24-11#bd96b8662026-10-14
  • R25-11rel:R25-11#af6f33fc2026-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

फ़ंक्शन operator= [SWS_DM_01660] Upstream: RS_AP_00147

<DataElementInterface5> & operator= ( <DataElementInterface5> &&other)=delete;

Move assignment constructor

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>

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

Record
AUTOSAR/AP/record/SWS_DM_01660
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01660@rel:R25-11#b39f4bbf
Content hash
b39f4bbf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01660
Status: valid/unmigrated Version: rel:R25-11#5711e300 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01660@rel:R25-11#5711e300
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e5b157292026-09-30
  • R23-11rel:R23-11#1e4f2e112026-10-14
  • R24-11rel:R24-11#92f17c3c2026-10-14
  • R25-11rel:R25-11#5711e3002026-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

फ़ंक्शन ~<DataElementInterface> [SWS_DM_00588] Upstream: RS_Diag_04169, RS_AP_00134

virtual ~<DataElementInterface6> () noexcept;

Destruction of a DataElement

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_00588
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00588@rel:R25-11#26db30c1
Content hash
26db30c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00588
Status: valid/unmigrated Version: rel:R25-11#ad7733a4 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_00588@rel:R25-11#ad7733a4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b88cfb3b2026-09-30
  • R19-11rel:R19-11#4c53dc262026-10-14
  • R20-11rel:R20-11#b2fa29ed2026-10-14
  • R21-11rel:R21-11#0f467e0d2026-10-14
  • R22-11rel:R22-11#b00f6d462026-10-14
  • R23-11rel:R23-11#28e88b432026-10-14
  • R24-11rel:R24-11#2cdc2f6c2026-10-14
  • R25-11rel:R25-11#ad7733a42026-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

स्थिरांकों / चरों का प्रलेखन

चर <DataElementOutArg> [SWS_DM_80023] Upstream: RS_Diag_04224, RS_Diag_04169

<DataElementOutArgType> <DataElementOutArg>;

Member declaration representing an out argument in an Output.

Header-Datei#include "<DataElementDirectoryPath>/{<data-element-shortname-lower> }.h"
Scopeclass <DataElement-Namespace>::<DataElementInterface>
Symbol<DataElementOutArg>
Typ<DataElementOutArgType>

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

Record
AUTOSAR/AP/record/SWS_DM_80023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_80023@rel:R25-11#e7d4e1e7
Content hash
e7d4e1e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_80023
Status: valid/unmigrated Version: rel:R25-11#caed5afa Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_80023@rel:R25-11#caed5afa
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#98e36acc2026-09-30
  • R24-11rel:R24-11#b1ac80b72026-10-14
  • R25-11rel:R25-11#caed5afa2026-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