DEENESPTFRRUARHIKOZHNL

فئة ara::exec::StateClient

[SWS_EM_02275] Upstream: RS_EM_00101, RS_AP_00154, RS_AP_00150

class StateClient final {...};

ara::exec::StateClient is an interface of Execution Management that is used by State Management to request transitions between Function Group States or to perform other related operations. Class used to perform Function Group state management operation needed during lifetime of a Machine. State Management during its own lifetime will need to start and stop software, that is intended to run on a Machine managed by it. This can be achieved by performing state transition of a Function Group to which required software is assigned. Integrator will assign software to run in a particular state (of Function Group) and State Management can start it, by requesting Execution Management to perform state transition (of this Function Group) to the mentioned state. Execution Management will then start mentioned software and report transition result back to State Management. Please note that stopping software can be done in similar way (i.e. Function Group state transition, to a state in which software is not configured to be run).

Header-Datei#include "ara/exec/state_client.h"
Forwarding-Header#include "ara/exec/exec_fwd.h"
Scopenamespace ara::exec

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

يطلب تغييرات الحالة لمجموعات الوظائف من Execution Management للتحكم في العمليات على Machine.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 3af3f18c3d39 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يطلب تغييرات الحالة لمجموعات الوظائف من Execution Management للتحكم في العمليات على Machine.

تتيح الواجهة ara::exec::StateClient لـ State Management طلب تغييرات الحالة لمجموعات الوظائف من Execution Management للتحكم في تنفيذ العمليات المخصصة على Machine [SWS_EM_02278]. عند الإنشاء عبر Create()، يجب تسجيل استدعاء مرجعي صالح باستمرار للحالات غير المحددة غير المتوقعة [SWS_EM_02276]. بالإضافة إلى انتقالات الحالة غير المتزامنة، توفر الفئة غير القابلة للنسخ دوال للاستعلام عن نتيجة بدء تشغيل Machine وكذلك لتحليل الأخطاء في حالة أخطاء التنفيذ [SWS_EM_02279]، [SWS_EM_02542].

السياق

تشكل الفئة ara::exec::StateClient واجهة Execution Management التي يطلب State Management من خلالها انتقالات الحالة لمجموعات الوظائف (Function Groups) ويتحكم فيها. يستخدم State Management هذا العميل طوال فترة تشغيل Machine لبدء العمليات أو إنهائها بشكل هادف. يعين مسؤول التكامل مكونات البرمجيات لحالات محددة لمجموعة وظائف. وإذا أراد State Management تنفيذ هذه البرمجيات، فإنه يطلب عبر StateClient من Execution Management الانتقال إلى حالة مجموعة الوظائف المعنية؛ ويتم الإيقاف بالمثل من خلال الانتقال إلى حالة لا ينبغي أن تكون البرمجيات فيها نشطة [SWS_EM_02278].

StateClientContext StateManagement State Management StateClient ara::exec::StateClient (Client-Bibliothek) StateManagement->StateClient Aufrufe (Create, SetState) StateClient->StateManagement undefinedStateCallback (ExecutionErrorEvent) ExecutionManagement Execution Management (Dienst/Server) StateClient->ExecutionManagement IPC: Transition anfordern ExecutionManagement->StateClient IPC: Status / Transitionsergebnis

مخطط السياق: التفاعل بين State Management وStateClient وExecution Management. المصادر: [SWS_EM_02276]، [SWS_EM_02278]

دورة الحياة

يمكن إنشاء نسخ من StateClient إما عبر المنشئ المسمى Create() [SWS_EM_02276] كـ ara::core::Result<StateClient> أو عبر المنشئ العادي StateClient() [SWS_EM_02561]. يتطلب كلا مساري الإنشاء إلزاميًا معامل استدعاء مرجعي undefinedStateCallback من النوع std::function<void(const ara::exec::ExecutionErrorEvent&)>. يتم إطلاق هذا الاستدعاء المرجعي بواسطة مكتبة StateClient عندما تنتقل مجموعة وظائف بشكل غير متوقع ودون طلب مسبق بواسطة SetState() إلى حالة غير محددة. يجب على المتصل التأكد من بقاء هذا الاستدعاء المرجعي قابلاً للاستدعاء طوال فترة بقاء نسخة StateClient، وهو أمر مهم بشكل خاص عند ربط الكائنات عبر std::bind [SWS_EM_02276]، [SWS_EM_02561].

عمليات النسخ محظورة صراحة لـ StateClient: إذ تم حذف كل من منشئ النسخ [SWS_EM_02565] ومعامل إسناد النسخ [SWS_EM_02568] (=delete). نقل الملكية ممكن فقط عبر دلالات النقل عبر منشئ النقل [SWS_EM_02566] وإسناد النقل [SWS_EM_02567]. فيما يتعلق بالتزامن، صُممت الدوال المتخصصة مثل SetState() وGetExecutionError() وGetInitialMachineStateTransitionResult() وكذلك الإنشاء لتكون آمنة بالنسبة للخيوط [SWS_EM_02276]، [SWS_EM_02278]، [SWS_EM_02279]، [SWS_EM_02542]. في المقابل، فإن عمليات النقل والمدمّر ~StateClient() ليست آمنة بالنسبة للخيوط [SWS_EM_02277]، [SWS_EM_02566]، [SWS_EM_02567].

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

تنقسم دورة التطبيق النموذجية إلى التهيئة، واستعلام نتيجة بدء التشغيل، وتغييرات الحالة المنتظمة، ومراقبة الأخطاء:

  1. الإنشاء: يُنشئ State Management نسخة من StateClient مع تحديد دالة استدعاء رجعي صالحة للإبلاغ عن الأخطاء عبر Create() [SWS_EM_02276].
  2. استعلام نتيجة بدء التشغيل الأولية: يطلب State Management باستخدام GetInitialMachineStateTransitionResult() نتيجة انتقال الحالة الأولي إلى حالة بدء التشغيل [SWS_EM_02279]. وبما أن هذا الانتقال يحدث لمرة واحدة فقط لكل دورة حياة للـ Machine، فإن ara::core::Future<void> المُقدَّم يظل مستقرًا ولا يتغير حتى إعادة التشغيل.
  3. طلب تغيير الحالة: يطلب State Management باستخدام SetState() انتقالات حالة غير متزامنة لمجموعات وظيفية فردية [SWS_EM_02278]. وتعود الطريقة على الفور وتقدم ara::core::Future<void> للاستعلام عن الاكتمال. وبمجرد استلام الطلب لدى Execution Management، يتم تنفيذه بصرف النظر عن فترة بقاء النسخة المستدعية الإضافية.
  4. فحص حالات الخطأ: إذا دخلت مجموعة وظيفية بصورة غير متوقعة في حالة غير معرَّفة، فيمكن عبر GetExecutionError() تحديد خطأ التنفيذ المتسبب في صورة ara::exec::ExecutionErrorEvent [SWS_EM_02542].
تسلسل الاستخدام النموذجي مع ara::exec::StateClientState ManagementStateClientExecution ManagementCreate(undefinedStateCallback)Result<StateClient>Use Case: Initiales Hochlaufergebnis abfragenGetInitialMachineStateTransitionResult()Startup-Status anfragenStartup-ErgebnisFuture<void>Use Case: Zustandswechsel anfordernSetState(functionGroupState)بدء الانتقال بين الحالاتFuture<void> (إرجاع فوري)اكتمل الانتقالFuture-Ergebnis bereitgestelltUse Case: مراقبة الأخطاءoptUnerwarteter undefinierter ZustandundefinedStateCallback(ExecutionErrorEvent)GetExecutionError(functionGroupState)Result<ExecutionErrorEvent>

مخطط تسلسلي: سير عمليات الإنشاء، واستعلام حالة البدء، وتغيير الحالة غير المتزامن، وتحليل الأخطاء. المصادر: [SWS_EM_02276]، [SWS_EM_02279]، [SWS_EM_02278]، [SWS_EM_02542]

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

تُبلّغ عمليات الفئة عن حالات الفشل عبر رموز أخطاء ExecErrorDomain:

  • ExecErrc::kNoCommunication: يُشير إلى اضطرابات في الاتصال مع Execution Management، على سبيل المثال عند انقطاع اتصال IPC. يحدث عند Create() [SWS_EM_02276]، وSetState() [SWS_EM_02278]، وGetInitialMachineStateTransitionResult() [SWS_EM_02279]، وكذلك GetExecutionError() [SWS_EM_02542]. وتتمثل عملية الاستعادة المقررة في إعادة الاستدعاء.
  • ExecErrc::kInvalidArgument: يتم الإبلاغ عنه بواسطة Create() وStateClient()، في حال لم تكن دالة الاستدعاء الرجعي الممررة تحتوي على دالة قابلة للاستدعاء [SWS_EM_02276]، [SWS_EM_02561].
  • ExecErrc::kOperationCanceled: يُشير عند SetState() إلى أنه تم إلغاء انتقال قيد التشغيل بواسطة طلب أحدث [SWS_EM_02278]. وعند GetInitialMachineStateTransitionResult() يحدث هذا الخطأ إذا تم إلغاء انتقال البدء الأولي، كأن يكون ذلك بسبب انقطاع تسلسل تحديث Machine [SWS_EM_02279].
  • ExecErrc::kInvalidTransition: انتقال الحالة المطلوب غير مسموح به، على سبيل المثال الانتقال إلى حالة Off لـ MachineFG، أو أن الحالة لم تعد موجودة بعد التحديث [SWS_EM_02278].
  • ExecErrc::kInvalidMetaModelIdentifier: الحالة الممررة غير موجودة في البيان (manifest) المعالج أو أن العملية لا تمتلك تعيينًا إلى المجموعة الوظيفية المعنية [SWS_EM_02278]، [SWS_EM_02542]. وإذا حدث هذا الخطأ عند GetInitialMachineStateTransitionResult()، فإن العملية تفتقر إلى التعيين لـ MachineFG، مما يشير إلى مشكلة في التكوين [SWS_EM_02279].
  • ExecErrc::kOperationFailed: فشل الانتقال [SWS_EM_02278]. وعند GetExecutionError() يُشير الرمز إلى أن المجموعة الوظيفية ليست في حالة غير معرَّفة وأن المشكلة قد تم حلها على الأرجح بالفعل [SWS_EM_02542].
  • ExecErrc::kIntegrityOrAuthenticityCheckFailed وExecErrc::kUnexpectedTermination: حالات فشل محددة أثناء SetState() نتيجة لفشل اختبارات السلامة أو الإنهاء غير المتوقع للعملية أثناء الانتقال [SWS_EM_02278].

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

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

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

2

المعاملات

1

مخطط الفئة

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

G nara__exec__StateClient893 StateClient + StateClient() + operator=() + ~StateClient() + Create() + GetExecutionError() + GetInitialMachineStateTransitionResult() + SetState()

عرض التفاصيل

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

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

StateClient دالة 3

Regular constructor for StateClient.

التحميلات الزائدة StateClient 3
StateClient (std::function< void(const ara::exec::ExecutionErrorEvent &)> undefinedStateCallback) noexcept(false); SWS_EM_02561
StateClient (const StateClient &)=delete; SWS_EM_02565
StateClient (StateClient &&rval) noexcept; SWS_EM_02566
~StateClient دالة

noexcept destructor

~StateClient () noexcept;

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

Create دالة

Named constructor for StateClient.

static ara::core::Result< StateClient > Create (std::function< void(const ara::exec::ExecutionErrorEvent &)> undefinedStateCallback) noexcept;

Returns the execution error which changed the Function Group of the given Function Group State to an Undefined Function Group State. This function will return with error and will not return an ExecutionErrorEvent object, if the Function Group is in a defined Function Group state again.

ara::core::Result< ara::exec::ExecutionErrorEvent > GetExecutionError (const ara::exec::FunctionGroupState &functionGroupState) noexcept;

Method to retrieve result of Machine State initial transition to Startup state.

ara::core::Future< void > GetInitialMachineStateTransitionResult () const noexcept;
SetState دالة

Method to request state transition for a single Function Group. This method will request Execution Management to perform state transition and return immediately. Returned ara::core::Future can be used to determine result of requested transition.

ara::core::Future< void > SetState (const FunctionGroupState &state) const noexcept;

المعاملات

operator= دالة 2

Intentional use of move assignment for StateClient.

التحميلات الزائدة = 2
StateClient & operator= (StateClient &&rval) noexcept; SWS_EM_02567
StateClient & operator= (const StateClient &)=delete; SWS_EM_02568

توثيق الدوال

دالة Create [SWS_EM_02276] Upstream: RS_EM_00101, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00139, RS_AP_00144, RS_AP_00159

static ara::core::Result< StateClient > Create (std::function< void(const ara::exec::ExecutionErrorEvent &)> undefinedStateCallback) noexcept;

Named constructor for StateClient.

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

تُستخدم دالة المصنع الثابتة Create كمنشئ مسمى (Named Constructor) لإنشاء مثيل لـ ara::exec::StateClient ([SWS_EM_02276]). ويتم تمرير undefinedStateCallback كمعامل إلزامي. ويتم إطلاق هذا الاستدعاء الراجع بواسطة مكتبة العميل عندما تنتقل مجموعة وظائف بشكل غير متوقع – أي بدون طلب مسبق عبر SetState() – إلى حالة غير محددة ([SWS_EM_02276]). وفي هذه الحالة، يتم إرسال مجموعة الوظائف المتأثرة والخطأ عبر ExecutionErrorEvent إلى الاستدعاء الراجع.

تنطبق شروط إطارية ثابتة على سياق الاستدعاء وفترة البقاء:

  • الدالة آمنة لخيوط المعالجة (thread-safe)، وآمنة من حيث الاستثناءات (exception-safe)، ومصرح عنها كـ noexcept ([SWS_EM_02276]).
  • يجب أن يظل undefinedStateCallback الممرر قابلاً للاستدعاء طوال فترة بقاء مثيل StateClient المنشأ ([SWS_EM_02276]). ويتطلب ذلك عناية خاصة عند الربط بمثيل كائن (على سبيل المثال بواسطة std::bind).

تتم عملية إنشاء المثيل بشكل متزامن وتُرجع ara::core::Result<StateClient> ([SWS_EM_02276]). وفي حالة حدوث خطأ، يتم تحديد رموز الخطأ التالية:

  • ara::exec::ExecErrc::kInvalidArgument: يُبلّغ عنه عندما لا تتضمن المعاملة المُمرّرة دالة قابلة للاستدعاء (دلالات التراجع؛ وتتم المعالجة من خلال توفير دالة صالحة) ([SWS_EM_02276]).
  • ara::exec::ExecErrc::kNoCommunication: يُشير إلى خطأ في الاتصال (دلالات عدم التراجع؛ وتتم المعالجة عبر إعادة المحاولة) ([SWS_EM_02276]). يُرجّح أن يعود ذلك إلى فشل إنشاء الاتصال ببيئة التنفيذ. سؤال Q-c312c2b5e7c3c7d0 (مفتوح)

يتطابق نمط التصميم بنيويًا مع أسلوب التهيئة لعملاء التنفيذ ذوي الصلة مثل ara::exec::ExecutionClient ([SWS_EM_02562])، والذي يتم إنشاؤه أيضًا مع رد نداء إلزامي عبر منشئ مسمى (Named Constructor).

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

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

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
undefinedStateCallbackcallback to be invoked by StateClient library if a FunctionGroup changes its state unexpectedly to an Undefined Function Group State, i.e. without previous request by SetState(). The affected FunctionGroup and ExecutionError is provided as an argument to the callback in form of ExecutionErrorEvent. Lifetime: it is expected that undefinedStateCallback remains callable, during entire lifetime of the StateClient instance. This is especially important if, undefinedStateCallback is bound to an instance of a class (e.g. using std::bind).

Rückgabewert

TypBeschreibung
ara::core::Result< StateClient >a result that contains either a StateClient object or an error.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics Communication error occurred. Recovery: try again
ara::exec::ExecErrc::kInvalidArgumentrollback_semantics Given undefinedStateCallback doesn’t contain a callable function. Recovery: change argument
Hinweise: This named constructor may call a private constructor defined by the developer.

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

Record
AUTOSAR/AP/record/SWS_EM_02276
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02276@rel:R25-11#a28ec2c6
Content hash
a28ec2c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02276
Status: valid/unmigrated Version: rel:R25-11#e0c84a0f 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_EM_02276@rel:R25-11#e0c84a0f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4f8bba6e2026-09-30
  • R19-11rel:R19-11#de12c8242026-10-14
  • R20-11rel:R20-11#e48137012026-10-14
  • R21-11rel:R21-11#656a7fe92026-10-14
  • R22-11rel:R22-11#76c30edc2026-10-14
  • R23-11rel:R23-11#7c0d72972026-10-14
  • R24-11rel:R24-11#924d8c912026-10-14
  • R25-11rel:R25-11#e0c84a0f2026-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

دالة GetExecutionError [SWS_EM_02542] Upstream: RS_EM_00101, RS_AP_00120, RS_AP_00121, RS_AP_00128, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::exec::ExecutionErrorEvent > GetExecutionError (const ara::exec::FunctionGroupState &functionGroupState) noexcept;

Returns the execution error which changed the Function Group of the given Function Group State to an Undefined Function Group State. This function will return with error and will not return an ExecutionErrorEvent object, if the Function Group is in a defined Function Group state again.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
functionGroupStateFunction Group State of interest.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::exec::ExecutionErrorEvent >The execution error which changed the Function Group of the given Function Group State to an Undefined Function Group State.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kOperationFailedrollback_semantics The Function Group of the given Function Group State is not in an Undefined Function Group State. Recovery: Function should only be called, if the given function group is in an undefined function group state. The problem has likely already been resolved.
ara::exec::ExecErrc::kNoCommunicationrollback_semantics if StateClient can’t communicate with Execution Management (e.g. IPC link is down). Recovery: Call function again
ara::exec::ExecErrc::kInvalidMetaModelIdentifierrollback_semantics The given Function Group State couldn’t be found in the Processed Manifest or Process does not have a mapping to the Function Group of the given Function Group State. Recovery: Call function with a different argument

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

Record
AUTOSAR/AP/record/SWS_EM_02542
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02542@rel:R25-11#529188ee
Content hash
529188ee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02542
Status: valid/unmigrated Version: rel:R25-11#6fdce36e 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_EM_02542@rel:R25-11#6fdce36e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7df954d32026-09-30
  • R20-11rel:R20-11#0deb34d02026-10-14
  • R21-11rel:R21-11#651408902026-10-14
  • R22-11rel:R22-11#a060de742026-10-14
  • R23-11rel:R23-11#936ca2392026-10-14
  • R24-11rel:R24-11#56ea53d02026-10-14
  • R25-11rel:R25-11#6fdce36e2026-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

دالة GetInitialMachineStateTransitionResult [SWS_EM_02279] Upstream: RS_EM_00101, RS_AP_00119, RS_AP_00120, RS_AP_00138, RS_AP_00128, RS_AP_00159

ara::core::Future< void > GetInitialMachineStateTransitionResult () const noexcept;

Method to retrieve result of Machine State initial transition to Startup state.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Future< void >void if requested transition is successful, otherwise it returns Exec ErrorDomain error.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kOperationCanceledrollback_semantics StateManagement may decide to cancel [SWS_EM_01023] transition and start specific startup sequence. This could happen for number of reasons and one of them could be interrupted Machine update sequence. Recovery: Call SetState again with initial state
ara::exec::ExecErrc::kOperationFailedrollback_semantics if transition to the requested Function Group state failed. Recovery: Call SetState again with initial state
ara::exec::ExecErrc::kNoCommunicationrollback_semantics if StateClient can’t communicate with Execution Management (e.g. IPC link is down). Recovery: Call function again
ara::exec::ExecErrc::kInvalidMetaModelIdentifierrollback_semantics Process does not have a mapping to MachineFG. Recovery: Indicates configuration problem (should never happen)
Hinweise: This method allows State Management to retrieve the result of a transition specified by [SWS_EM_01023] and [SWS_EM_02241]. Please note that this transition happens once per machine life cycle, thus the result delivered by this method shall not change (unless machine is started again). Please note that concerns about returned ara::core::Future from ara::exec:: StateClient::SetState apply for ara::exec::StateClient:: GetInitialMachineStateTransitionResult.

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

Record
AUTOSAR/AP/record/SWS_EM_02279
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02279@rel:R25-11#da94c77a
Content hash
da94c77a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02279
Status: valid/unmigrated Version: rel:R25-11#54b9984c 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_EM_02279@rel:R25-11#54b9984c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9c81ce292026-09-30
  • R19-11rel:R19-11#ed225dc02026-10-14
  • R20-11rel:R20-11#cea035782026-10-14
  • R21-11rel:R21-11#3464ea3a2026-10-14
  • R22-11rel:R22-11#eb3f336b2026-10-14
  • R23-11rel:R23-11#ad5bc79d2026-10-14
  • R24-11rel:R24-11#ed46df4b2026-10-14
  • R25-11rel:R25-11#54b9984c2026-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

دالة SetState [SWS_EM_02278] Upstream: RS_EM_00101, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00138, RS_AP_00128, RS_AP_00159

ara::core::Future< void > SetState (const FunctionGroupState &state) const noexcept;

Method to request state transition for a single Function Group. This method will request Execution Management to perform state transition and return immediately. Returned ara::core::Future can be used to determine result of requested transition.

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

تُستخدم الطريقة SetState لطلب انتقال الحالة لمجموعة وظائف مفردة من Execution Management [SWS_EM_02278]. ويتم الاستدعاء بشكل غير متزامن: تطلق الطريقة عملية التغيير وتعود فورًا بـ ara::core::Future<void>، والذي يمكن عبره تحديد نتيجة الانتقال [SWS_EM_02278]. ويُمرَّر كمعامل FunctionGroupState يحدد الحالة الهدف داخل مجموعة الوظائف بما يتوافق مع النموذج الفوقي [SWS_EM_02278].

إذا فشل الانتقال، يُرجع Future خطأً من نطاق الخطأ ErrorDomain الخاص بـ Exec [SWS_EM_02278]. تنطبق دلالات التراجع (Rollback) عند ara::exec::ExecErrc::kInvalidTransition (على سبيل المثال عند الانتقالات المحظورة مثل حالة Off لـ MachineFG) وعند ara::exec::ExecErrc::kInvalidMetaModelIdentifier (في حال غياب التعيين أو غياب التعريف في البيان) [SWS_EM_02278]. ودون دلالات التراجع، يتم الإبلاغ عن kOperationCanceled (تمت إزاحته بواسطة طلب أحدث)، وkOperationFailed، وkNoCommunication (عطل في اتصال IPC)، وkIntegrityOrAuthenticityCheckFailed، بالإضافة إلى kUnexpectedTermination [SWS_EM_02278].

الطريقة آمنة خيطيًا (thread-safe) وآمنة من الاستثناءات (exception safe) (noexcept) [SWS_EM_02278]. يعتمد ara::core::Future المُرجَع على دورة حياة المثيل المستدعي؛ وفي المقابل، يعالج Execution Management الطلب الوارد بصورة مستقلة عن دورة حياة مثيل StateClient [SWS_EM_02278].

بالتكامل مع إنشاء المثيل عبر Create [SWS_EM_02276] أو المنشئ [SWS_EM_02561]، يعترض undefinedStateCallback تغييرات الحالة غير المتوقعة التي تحدث دون استدعاء مسبق لـ SetState. ويمكن الاستعلام عن نتيجة الانتقال الأولي إلى حالة Startup بصورة منفصلة عبر GetInitialMachineStateTransitionResult [SWS_EM_02279].

أُنشئ هذا النص بواسطة ذكاء اصطناعي؛ وتتم مراجعة صحته بواسطة محرر.

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

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
staterepresenting meta-model definition of a state inside a specific Function Group. Execution Management will perform state transition from the current state to the state identified by this parameter.

Rückgabewert

TypBeschreibung
ara::core::Future< void >void if requested transition is successful, otherwise it returns Exec ErrorDomain error.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kOperationCanceledno_rollback_semantics if transition to the requested Function Group state was cancelled by a newer request. Recovery: Try again (error is informative, does not indicate a problem)
ara::exec::ExecErrc::kOperationFailedno_rollback_semantics if transition to the requested Function Group state failed. Recovery: Try transition to another state
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics if StateClient can’t communicate with Execution Management (e.g. IPC link is down). Rovery: Try again
ara::exec::ExecErrc::kInvalidTransitionrollback_semantics if transition to the requested state is prohibited (e.g. Off state for MachineFG) or the requested Function Group State is invalid (e.g. does not exist anymore after a software update). Recovery: Eventually try transition to another state
ara::exec::ExecErrc::kIntegrityOrAuthenticityCheckFailedno_rollback_semantics if an integrity or authenticity check failed during state transition. Recovery: transition to another state
ara::exec::ExecErrc::kUnexpectedTerminationno_rollback_semantics One of the processes terminated in an unexpected way during the state transition. Recovery: transition to another state
ara::exec::ExecErrc::kInvalidMetaModelIdentifierrollback_semantics The given Function Group State couldn’t be found in the Processed Manifest or Process does not have a mapping to the Function Group of the requested Function Group State. Recovery: transition to another state
Hinweise: Asynchronous nature of ara::exec::StateClient::SetState makes the returned ara:: core::Future dependable on lifetime of the instance from which it was received. It is expected that once state change request is received by Execution Management, it will be processed independently of lifetime of the instance from which it was requested. Please note that the qualified short names representing Function Groups and Function Group States could be quite long. They can be replaced by implementation specific data types to speed up any checks that have to be performed by the ara::exec::StateClient:: SetState method. This is enabled by the ara::exec::FunctionGroupState data-type.

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

Record
AUTOSAR/AP/record/SWS_EM_02278
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02278@rel:R25-11#45aa9748
Content hash
45aa9748
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02278
Status: valid/unmigrated Version: rel:R25-11#af874de7 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_EM_02278@rel:R25-11#af874de7
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d775b6ca2026-09-30
  • R19-11rel:R19-11#8cf69c292026-10-14
  • R20-11rel:R20-11#a14424692026-10-14
  • R21-11rel:R21-11#b0e586f52026-10-14
  • R22-11rel:R22-11#2527e4232026-10-14
  • R23-11rel:R23-11#716a2bc42026-10-14
  • R24-11rel:R24-11#16e40bce2026-10-14
  • R25-11rel:R25-11#af874de72026-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

دالة StateClient [SWS_EM_02561] Upstream: RS_EM_00101, RS_AP_00114, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00151, RS_AP_00159

StateClient (std::function< void(const ara::exec::ExecutionErrorEvent &)> undefinedStateCallback) noexcept(false);

Regular constructor for StateClient.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
undefinedStateCallbackcallback to be invoked by StateClient library if a FunctionGroup changes its state unexpectedly to an Undefined Function Group State, i.e. without previous request by SetState(). The affected FunctionGroup and ExecutionError is provided as an argument to the callback in form of ExecutionErrorEvent Lifetime: it is expected that undefinedStateCallback remains callable, during entire lifetime of the StateClient instance. This is especially important if, undefinedStateCallback is bound to an instance of a class (e.g. using std::bind).

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics Communication error occurred. Recovery: try again
ara::exec::ExecErrc::kInvalidArgumentrollback_semantics Given undefinedStateCallback doesn’t contain a callable function. Recovery: change argument

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

Record
AUTOSAR/AP/record/SWS_EM_02561
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02561@rel:R25-11#a8e4604a
Content hash
a8e4604a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02561
Status: valid/unmigrated Version: rel:R25-11#3cf40e7b 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_EM_02561@rel:R25-11#3cf40e7b
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e701fca12026-09-30
  • R23-11rel:R23-11#58978f772026-10-14
  • R24-11rel:R24-11#d3b259de2026-10-14
  • R25-11rel:R25-11#3cf40e7b2026-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

دالة StateClient [SWS_EM_02565] Upstream: RS_AP_00145, RS_EM_00103

StateClient (const StateClient &)=delete;

Suppress default copy construction for StateClient.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient

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

Record
AUTOSAR/AP/record/SWS_EM_02565
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02565@rel:R25-11#4ab0bc97
Content hash
4ab0bc97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02565
Status: valid/unmigrated Version: rel:R25-11#76bf0ec8 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_EM_02565@rel:R25-11#76bf0ec8
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8b4c03792026-09-30
  • R23-11rel:R23-11#a637858c2026-10-14
  • R24-11rel:R24-11#76bf0ec82026-10-14
  • R25-11rel:R25-11#76bf0ec82026-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

دالة StateClient [SWS_EM_02566] Upstream: RS_AP_00145, RS_AP_00151, RS_EM_00103, RS_AP_00159

StateClient (StateClient &&rval) noexcept;

Intentional use of move constructor for StateClient.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
rvalreference to move

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

Record
AUTOSAR/AP/record/SWS_EM_02566
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02566@rel:R25-11#98d4ec39
Content hash
98d4ec39
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02566
Status: valid/unmigrated Version: rel:R25-11#1e24d943 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_EM_02566@rel:R25-11#1e24d943
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#4caec6e72026-09-30
  • R23-11rel:R23-11#235f0aa12026-10-14
  • R24-11rel:R24-11#58fab2f32026-10-14
  • R25-11rel:R25-11#1e24d9432026-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_EM_02567] Upstream: RS_AP_00145, RS_AP_00151, RS_EM_00103, RS_AP_00159

StateClient & operator= (StateClient &&rval) noexcept;

Intentional use of move assignment for StateClient.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
rvalreference to move

Rückgabewert

TypBeschreibung
StateClient &the new reference

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

Record
AUTOSAR/AP/record/SWS_EM_02567
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02567@rel:R25-11#97e99996
Content hash
97e99996
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02567
Status: valid/unmigrated Version: rel:R25-11#4f4cb0dc 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_EM_02567@rel:R25-11#4f4cb0dc
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#a46b62292026-09-30
  • R23-11rel:R23-11#960ab2862026-10-14
  • R24-11rel:R24-11#f17786252026-10-14
  • R25-11rel:R25-11#4f4cb0dc2026-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_EM_02568] Upstream: RS_AP_00145, RS_EM_00103

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

Suppress default copy assignment for StateClient.

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient

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

Record
AUTOSAR/AP/record/SWS_EM_02568
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02568@rel:R25-11#f48a3537
Content hash
f48a3537
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02568
Status: valid/unmigrated Version: rel:R25-11#47d79fd3 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_EM_02568@rel:R25-11#47d79fd3
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#5db14cb92026-09-30
  • R23-11rel:R23-11#c40c9f462026-10-14
  • R24-11rel:R24-11#47d79fd32026-10-14
  • R25-11rel:R25-11#47d79fd32026-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

دالة ~StateClient [SWS_EM_02277] Upstream: RS_AP_00134, RS_AP_00145, RS_EM_00101

~StateClient () noexcept;

noexcept destructor

Header-Datei#include "ara/exec/state_client.h"
Scopeclass ara::exec::StateClient
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_EM_02277
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02277@rel:R25-11#95833747
Content hash
95833747
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02277
Status: valid/unmigrated Version: rel:R25-11#1097d76c 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_EM_02277@rel:R25-11#1097d76c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#53c377542026-09-30
  • R19-11rel:R19-11#a750219c2026-10-14
  • R20-11rel:R20-11#be8e6c2d2026-10-14
  • R21-11rel:R21-11#8b1882202026-10-14
  • R22-11rel:R22-11#2e48894a2026-10-14
  • R23-11rel:R23-11#5ce3bed22026-10-14
  • R24-11rel:R24-11#a75a8bdb2026-10-14
  • R25-11rel:R25-11#1097d76c2026-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