DEENESPTFRRUARHIKOZHNL

فئة ara::diag::MultipleEvent

[SWS_DM_01704] Upstream: RS_Diag_04151

class MultipleEvent final {...};

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

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

دليل المستخدممولَّد بالذكاء الاصطناعي

يتيح الاستعلام عن ومراقبة أحداث تشخيصية متعددة عبر مقابض الأحداث وإشعارات رد النداء.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4cd8b0cbe34d المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يتيح الاستعلام عن ومراقبة أحداث تشخيصية متعددة عبر مقابض الأحداث وإشعارات رد النداء.

تتيح الفئة للتطبيقات الاستعلام المعتمد على الحالة عن أحداث تشخيصية متعددة ومراقبتها عبر واجهة مشتركة استنادًا إلى مقابض الأحداث [SWS_DM_01705]. وبالإضافة إلى تسجيل ردود نداء الإشعارات، تتوفر طرق غير متزامنة لتحديد حالة الحدث، وإزالة الارتداد، وعداد الأخطاء، ورقم DTC [SWS_DM_01707]، [SWS_DM_01709]. النسخ غير قابلة للنسخ أو النقل وتتطلب إنهاءً منظمًا للعمليات النشطة قبل التحرير بسبب المدمر (destructor) غير الآمن مع الخيوط [SWS_DM_01706]، [SWS_DM_02067].

السياق

توفر الفئة ara::diag::MultipleEvent واجهات للتطبيق للاستعلام عن أحداث التشخيص ومراقبتها عبر واجهات للأحداث المتعددة [SWS_DM_01705]. وعلى عكس فئات الأحداث الفردية، تخاطب العمليات على نسخ MultipleEvent أحداثًا محددة عبر معرف من النوع EventHandleType [SWS_DM_01707]، [SWS_DM_01708]. تعمل الفئة كواجهة بين مكون البرمجيات التطبيقي وإدارة التشخيص (DM) الخاصة بـ Adaptive AUTOSAR AUTOSAR AP SWS Diagnostics, ص. 69. وعبر النموذج الأولي للمنفذ الخاص بـ DiagnosticMultipleEventInterface، يتم ربط الكائن بالبنية التحتية للتشخيص المكونة [SWS_DM_01705].

دورة الحياة

يتم إنشاء نسخة من MultipleEvent عبر منشئ فئات صريح مع تحديد ara::core::InstanceSpecifier [SWS_DM_01705]. منشئ الفئات آمن مع الخيوط ويتحقق من الارتباط المنمذج بنموذج أولي لمنفذ من نوع الواجهة DiagnosticMultipleEventInterface [SWS_DM_01705]. وإذا فشل التعيين (mapping) أو أعيد استخدام نفس معرف النسخة داخل العملية، تبلغ المنصة عن انتهاكات مطابقة مثل InstanceSpecifierAlreadyInUseViolation أو PortInterfaceMappingViolation [SWS_DM_01705].

تم حظر عمليات النسخ والنقل بالكامل لـ MultipleEvent: تم الإعلان عن حذف كل من منشئ النسخ والنقل بالإضافة إلى عوامل الإسناد المقابلة [SWS_DM_02067]، [SWS_DM_02068]، [SWS_DM_02069]، [SWS_DM_02070]. وبذلك يمتلك الكائن هوية صارمة ويظل في موقع إنشائه. تم تحديد المدمر ~MultipleEvent() بأنه غير آمن مع الخيوط [SWS_DM_01706]. لذلك، يجب على المكونات المستدعية التأكد قبل الإتلاف من عدم وجود أي استعلامات أو إشعارات غير متزامنة قيد التشغيل عبر النسخة AUTOSAR AP SWS Diagnostics, ص. 78.

مسار الاستخدام

بعد إنشاء النسخة، يسجل التطبيق عادةً دالة رد نداء باستخدام SetEventStatusChangedNotifier ليتم إخطاره بتغييرات حالة حدث معين (يتم تحديده عبر EventHandleType) [SWS_DM_01708]. يؤدي الاستدعاء المتكرر لهذه الطريقة لنفس الحدث إلى الكتابة فوق المخطر المعين مسبقًا [SWS_DM_01708]. دالة التسجيل هذه غير آمنة مع الخيوط [SWS_DM_01708].

أثناء التشغيل، يمكن الاستعلام عن معلومات التشخيص الحالية بشكل مستهدف لكل مقبض حدث. تعيد جميع عمليات القراءة المعتمدة على الحالة بياناتها بشكل غير متزامن في ara::core::Future:

  • يعيد GetEventStatus بايت الحالة الحالي للحدث كـ EventStatusByte [SWS_DM_01707].
  • يعيد GetDebouncingStatus حالة إزالة الارتداد (DebouncingState) الخاصة بالحدث [SWS_DM_01710].
  • يعيد GetFaultDetectionCounter عداد اكتشاف الأعطال الحالي (FaultDetectionCounter) كقيمة عدد صحيح بعلامة ذي 8 بت [SWS_DM_01711].
  • يستعلم GetDTCNumber عن رقم DTC المخصص في DTCFormatType المطلوب [SWS_DM_01709].

يعتمد أمان دوال الاستعلام هذه مع الخيوط على التكوين [SWS_DM_01707]، [SWS_DM_01709]، [SWS_DM_01710]، [SWS_DM_01711].

Nutzungsablauf ara::diag::MultipleEventالتطبيقMultipleEventDiagnoseManagementUse Case: InstanziierungMultipleEvent(specifier)Bindung an PortPrototypeتأكيد / توفيرUse Case: Notifier-RegistrierungSetEventStatusChangedNotifier(handle, notifier)Result<void>Use Case: استعلام الحالة وDTCGetEventStatus(handle)Statusabfrage weiterleitenEventStatusByteFuture<EventStatusByte>GetDTCNumber(handle, dtcFormat)DTC-Abfrage weiterleitenDTC-NummerFuture<uint32_t>

مخطط التتابع: مسار الاستخدام النموذجي لمراقبة أحداث التشخيص والاستعلام عنها عبر MultipleEvent. المصادر: [SWS_DM_01705]، [SWS_DM_01707]، [SWS_DM_01708]، [SWS_DM_01709]، [SWS_DM_01710]، [SWS_DM_01711]

سيناريوهات الأخطاء

تشير طرق MultipleEvent إلى حالات الخطأ عبر النوع DiagErrc، والذي يتم نقله مغلفًا إما في ara::core::Result أو في ara::core::Future المعاد [SWS_DM_01707]، [SWS_DM_01708]، [SWS_DM_01709]. الحالات التالية محددة كأخطاء:

  • DiagErrc::kInvalidArgument: يحدث عند تمرير معلمات غير صالحة، مثل EventHandleType غير صالح أو عند حدوث أخطاء إزالة ارتداد داخلية مثل kPreFailed [SWS_DM_01707]، [SWS_DM_01708]، [SWS_DM_01709]، [SWS_DM_01710]، [SWS_DM_01711].
  • DiagErrc::kNoSuchDTC: يتم الإبلاغ عنه بواسطة GetDTCNumber إذا لم يتم تكوين أو تخصيص DTC مطابق لحدث التشخيص المطلوب [SWS_DM_01709].
  • DiagErrc::kServiceNotAvailable: يحدث أثناء عمليات القراءة عندما تكون الوظائف الأساسية الجوهرية لإدارة التشخيص غير متوفرة في وقت التنفيذ [SWS_DM_01707]، [SWS_DM_01709]، [SWS_DM_01710]، [SWS_DM_01711].

في حالة حدوث خطأ، تضمن العمليات دلالات التراجع (Rollback-Semantik) [SWS_DM_01707]، [SWS_DM_01709].

يعتمد هذا الدليل حصريًا على متطلبات المواصفة من AUTOSAR Adaptive R25-11.

خريطة الأعضاء

مخطط الفئة

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

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

عرض التفاصيل

اختر عنصرًا من المخطط.

المُنشئات والمُتلف

MultipleEvent دالة 3

Constructor MultipleEvent class.

التحميلات الزائدة MultipleEvent 3
explicit MultipleEvent (const ara::core::InstanceSpecifier &specifier) noexcept; SWS_DM_01705
MultipleEvent (MultipleEvent &&) noexcept=delete; SWS_DM_02069
MultipleEvent (MultipleEvent &)=delete; SWS_DM_02070

Destructor of class MultipleEvent.

~MultipleEvent () noexcept;

الدوال الأعضاء

Get the current debouncing status of the requested event.

ara::core::Future< DebouncingState > GetDebouncingStatus (EventHandle Type eventHandle) noexcept;
GetDTCNumber دالة

Returns the DTC-ID related to requested event.

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

Returns the current status of the requested event.

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

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

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

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

ara::core::Result< void > SetEventStatusChangedNotifier (EventHandle Type eventHandle, EventStatusByteNotifier notifier) noexcept;

المعاملات

operator= دالة 2

Copy assignment operator of MultipleEvent.

التحميلات الزائدة = 2
MultipleEvent & operator= (MultipleEvent &)=delete; SWS_DM_02067
MultipleEvent & operator= (MultipleEvent &&)=delete; SWS_DM_02068

توثيق الدوال

دالة GetDTCNumber [SWS_DM_01709] Upstream: RS_Diag_04201, RS_AP_00139, RS_AP_00119

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

Returns the DTC-ID related to requested event.

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

Parameter (in)

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
DiagErrc::kNoSuchDTCrollback_semantics No mapped DTC exits for the requested event.
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01709
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01709@rel:R25-11#281de633
Content hash
281de633
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01709
Status: valid/unmigrated Version: rel:R25-11#e7981753 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01709@rel:R25-11#e7981753
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#bec474d72026-09-30
  • R23-11rel:R23-11#9a0ba31b2026-10-14
  • R24-11rel:R24-11#e8916a392026-10-14
  • R25-11rel:R25-11#e79817532026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetDebouncingStatus [SWS_DM_01710] Upstream: RS_Diag_04068, RS_Diag_04225, RS_AP_00139

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

Get the current debouncing status of the requested event.

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

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01710@rel:R25-11#ac8549a4
Content hash
ac8549a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01710
Status: valid/unmigrated Version: rel:R25-11#66286266 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01710@rel:R25-11#66286266
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#02687f5a2026-09-30
  • R23-11rel:R23-11#74e6f1862026-10-14
  • R24-11rel:R24-11#ae2c6ff62026-10-14
  • R25-11rel:R25-11#662862662026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetEventStatus [SWS_DM_01707] Upstream: RS_Diag_04151, RS_AP_00139

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

Returns the current status of the requested event.

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

Parameter (in)

ParameterBeschreibung
eventHandleHandle of the Event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01707
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01707@rel:R25-11#733225de
Content hash
733225de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01707
Status: valid/unmigrated Version: rel:R25-11#60d26ba2 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01707@rel:R25-11#60d26ba2
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#00fb8fb82026-09-30
  • R23-11rel:R23-11#959068f12026-10-14
  • R24-11rel:R24-11#dd57a5052026-10-14
  • R25-11rel:R25-11#60d26ba22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetFaultDetectionCounter [SWS_DM_01711] Upstream: RS_AP_00139

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

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

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

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01711
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01711@rel:R25-11#95e5380b
Content hash
95e5380b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01711
Status: valid/unmigrated Version: rel:R25-11#5c4028f4 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01711@rel:R25-11#5c4028f4
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#4982ea842026-09-30
  • R23-11rel:R23-11#50dedae62026-10-14
  • R24-11rel:R24-11#58737ccd2026-10-14
  • R25-11rel:R25-11#5c4028f42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة MultipleEvent [SWS_DM_01705] Upstream: RS_Diag_04151, RS_AP_00137, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

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

Constructor MultipleEvent class.

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

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticMultipleEventInterface.

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

Record
AUTOSAR/AP/record/SWS_DM_01705
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01705@rel:R25-11#8e818513
Content hash
8e818513
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01705
Status: valid/unmigrated Version: rel:R25-11#14b1154a Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01705@rel:R25-11#14b1154a
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e97676eb2026-09-30
  • R23-11rel:R23-11#4e9686b02026-10-14
  • R24-11rel:R24-11#b064f42e2026-10-14
  • R25-11rel:R25-11#14b1154a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة MultipleEvent [SWS_DM_02069] Upstream: RS_AP_00147

MultipleEvent (MultipleEvent &&) noexcept=delete;

Move constructor of MultipleEvent.

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

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

Record
AUTOSAR/AP/record/SWS_DM_02069
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02069@rel:R25-11#f3571d4a
Content hash
f3571d4a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02069
Status: valid/unmigrated Version: rel:R25-11#8fc0e2a4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_02069@rel:R25-11#8fc0e2a4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#8bb5b78d2026-09-30
  • R24-11rel:R24-11#8fc0e2a42026-10-14
  • R25-11rel:R25-11#8fc0e2a42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة MultipleEvent [SWS_DM_02070] Upstream: RS_AP_00147

MultipleEvent (MultipleEvent &)=delete;

Copy constructor of MultipleEvent.

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

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

Record
AUTOSAR/AP/record/SWS_DM_02070
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02070@rel:R25-11#d2c628cc
Content hash
d2c628cc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02070
Status: valid/unmigrated Version: rel:R25-11#fff39381 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_02070@rel:R25-11#fff39381
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b96cd6282026-09-30
  • R24-11rel:R24-11#fff393812026-10-14
  • R25-11rel:R25-11#fff393812026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة SetEventStatusChangedNotifier [SWS_DM_01708] Upstream: RS_Diag_04183, RS_AP_00139

ara::core::Result< void > SetEventStatusChangedNotifier (EventHandle Type eventHandle, EventStatusByteNotifier notifier) noexcept;

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

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: bd91ad4f4cb5 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تسجل الطريقة ara::diag::MultipleEvent::SetEventStatusChangedNotifier [SWS_DM_01708] دالة رد نداء من النوع EventStatusByteNotifier، والتي يتم استدعاؤها عندما تتغير حالة حدث تشخيص. وتحدد المعلمة eventHandle الحدث المطلوب داخل الحالة. حُددت الطريقة بأنها noexcept وتُرجع ara::core::Result<void>. ويؤدي الاستدعاء المتكرر إلى استبدال المٌخطر (Notifier) المسجل سابقاً [SWS_DM_01708].

معالجة الأخطاء

إذا حدث خطأ أثناء التسجيل، يُرجع ara::core::Result رمز الخطأ المقابل. والخطأ المحدد هو DiagErrc::kInvalidArgument، على سبيل المثال في سياق إزالة الارتداد الداخلية مثل kPreFailed [SWS_DM_01708].

التزامن والقيود

أُعلن عن العملية بأنها exception safe (آمنة من الاستثناءات)، ولكن صُنفت صراحةً بأنها not thread-safe (غير آمنة بالنسبة للخيوط) [SWS_DM_01708]. ولذلك يجب مزامنة الاستدعاءات المتزامنة على نفس الحالة خارجياً.

تفاعل

بينما تدير الفئة ara::diag::Event باستخدام SetEventStatusChangedNotifier [SWS_DM_00650] أحداثاً فردية بدون مقبض، تجمع MultipleEvent أحداثاً متعددة معاً. ويُرجح أن Diagnostic Management (DM) يُطلق، بشكل مماثل لـ [SWS_DM_01029]، استدعاء المُخطر المسجل عند كل تغيير في حالة الحدث المعين عبر eventHandle AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.7 «Event status change notifications». سؤال Q-ef7791b2a1106582 (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه تلقائياً بناءً على مواصفة AUTOSAR.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

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

Parameter (in)

ParameterBeschreibung
eventHandleIdentifies the requested event
notifierThe function to be called if a diagnostic event is changed.

Rückgabewert

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

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing

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

Record
AUTOSAR/AP/record/SWS_DM_01708
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01708@rel:R25-11#fcb98a1d
Content hash
fcb98a1d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01708
Status: valid/unmigrated Version: rel:R25-11#75cdce7a Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01708@rel:R25-11#75cdce7a
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8d52a1ae2026-09-30
  • R23-11rel:R23-11#09aaa2182026-10-14
  • R24-11rel:R24-11#f4a611642026-10-14
  • R25-11rel:R25-11#75cdce7a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_DM_02067] Upstream: RS_AP_00147

MultipleEvent & operator= (MultipleEvent &)=delete;

Copy assignment operator of MultipleEvent.

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

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

Record
AUTOSAR/AP/record/SWS_DM_02067
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02067@rel:R25-11#17df4747
Content hash
17df4747
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02067
Status: valid/unmigrated Version: rel:R25-11#5d5f9dd0 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_02067@rel:R25-11#5d5f9dd0
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#eea970b12026-09-30
  • R24-11rel:R24-11#5d5f9dd02026-10-14
  • R25-11rel:R25-11#5d5f9dd02026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_DM_02068] Upstream: RS_AP_00147

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

Move assignment operator of MultipleEvent.

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

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

Record
AUTOSAR/AP/record/SWS_DM_02068
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02068@rel:R25-11#22409f83
Content hash
22409f83
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02068
Status: valid/unmigrated Version: rel:R25-11#77174b30 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_02068@rel:R25-11#77174b30
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5e2fb56f2026-09-30
  • R24-11rel:R24-11#77174b302026-10-14
  • R25-11rel:R25-11#77174b302026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة ~MultipleEvent [SWS_DM_01706] Upstream: RS_Diag_04151, RS_AP_00134

~MultipleEvent () noexcept;

Destructor of class MultipleEvent.

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

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

Record
AUTOSAR/AP/record/SWS_DM_01706
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01706@rel:R25-11#40efe513
Content hash
40efe513
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01706
Status: valid/unmigrated Version: rel:R25-11#3c4e00c2 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01706@rel:R25-11#3c4e00c2
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#de8d63a32026-09-30
  • R23-11rel:R23-11#93abb2b92026-10-14
  • R24-11rel:R24-11#3edfe3082026-10-14
  • R25-11rel:R25-11#3c4e00c22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill