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

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

किसी Machine पर प्रक्रियाओं को नियंत्रित करने के लिए Execution Management से फ़ंक्शन समूहों के लिए स्थिति परिवर्तन का अनुरोध करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 3af3f18c3d39 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

किसी Machine पर प्रक्रियाओं को नियंत्रित करने के लिए Execution Management से फ़ंक्शन समूहों के लिए स्थिति परिवर्तन का अनुरोध करता है।

इंटरफ़ेस ara::exec::StateClient किसी Machine पर असाइन की गई प्रक्रियाओं के निष्पादन को नियंत्रित करने के लिए State Management को Execution Management से फ़ंक्शन समूहों के लिए स्थिति परिवर्तन का अनुरोध करने में सक्षम बनाता है [SWS_EM_02278]। Create() के माध्यम से निर्माण करते समय, अप्रत्याशित अपरिभाषित स्थितियों के लिए एक निरंतर मान्य कॉलबैक पंजीकृत होना चाहिए [SWS_EM_02276]। एसिंक्रोनस स्थिति संक्रमणों के अलावा, यह गैर-कॉपी करने योग्य क्लास मशीन स्टार्टअप परिणाम को क्वेरी करने और निष्पादन त्रुटियों के मामले में त्रुटि विश्लेषण के लिए मेथड प्रदान करती है [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] के माध्यम से बनाए जा सकते हैं। दोनों निर्माण पथों के लिए प्रकार std::function<void(const ara::exec::ExecutionErrorEvent&)> के एक अनिवार्य कॉलबैक पैरामीटर undefinedStateCallback की आवश्यकता होती है। यह कॉलबैक 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 Create() [SWS_EM_02276] के माध्यम से एक मान्य त्रुटि-सिग्नलिंग कॉलबैक निर्दिष्ट करते हुए StateClient को इंस्टेंटिएट करता है।
  2. प्रारंभिक स्टार्टअप परिणाम क्वेरी करना: GetInitialMachineStateTransitionResult() के साथ, State Management स्टार्टअप स्थिति में प्रारंभिक स्थिति संक्रमण के परिणाम का अनुरोध करता है [SWS_EM_02279]। चूंकि यह संक्रमण Machine के प्रति जीवनचक्र में ठीक एक बार होता है, इसलिए प्रदान किया गया ara::core::Future<void> स्थिर रहता है और पुनरारंभ होने तक नहीं बदलता है।
  3. स्थिति परिवर्तन का अनुरोध करना: SetState() के माध्यम से, State Management व्यक्तिगत फ़ंक्शन समूहों के लिए एसिंक्रोनस स्थिति संक्रमण का आदेश देता है [SWS_EM_02278]। मेथड तुरंत लौटती है और पूर्णता की जांच के लिए एक ara::core::Future<void> प्रदान करती है। जैसे ही ऑर्डर Execution Management द्वारा प्राप्त होता है, इसे कॉलिंग इंस्टेंस के आगे के जीवनकाल से स्वतंत्र रूप से निष्पादित किया जाता है।
  4. त्रुटि स्थितियों की जांच करना: यदि कोई फ़ंक्शन समूह अप्रत्याशित रूप से किसी अपरिभाषित स्थिति में पहुंच जाता है, तो GetExecutionError() के माध्यम से ara::exec::ExecutionErrorEvent के रूप में ट्रिगर करने वाली निष्पादन त्रुटि निर्धारित की जा सकती है [SWS_EM_02542]।
ara::exec::StateClient के साथ विशिष्ट उपयोग प्रवाहState 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-Update-अनुक्रम द्वारा [SWS_EM_02279]।
  • ExecErrc::kInvalidTransition: अनुरोधित स्थिति ट्रांज़िशन अमान्य है, उदाहरण के लिए MachineFG के लिए Off-स्थिति में ट्रांज़िशन, या फिर किसी अपडेट के बाद उस स्थिति का अस्तित्व ही समाप्त हो गया हो [SWS_EM_02278]।
  • ExecErrc::kInvalidMetaModelIdentifier: पास की गई स्थिति संसाधित मैनिफ़ेस्ट में मौजूद नहीं है या प्रक्रिया के पास संबंधित फ़ंक्शन समूह पर कोई मैपिंग नहीं है [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;
GetExecutionError फ़ंक्शन

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 · जर्मन मूल

स्टैटिक फ़ैक्टरी method Create ara::exec::StateClient ([SWS_EM_02276]) का एक इंस्टेंस बनाने के लिए नेम्ड कंस्ट्रक्टर के रूप में कार्य करता है। अनिवार्य पैरामीटर के रूप में undefinedStateCallback पास किया जाता है। यह कॉलबैक क्लाइंट लाइब्रेरी द्वारा तब ट्रिगर किया जाता है जब कोई फ़ंक्शन समूह अप्रत्याशित रूप से - यानी SetState() के माध्यम से पूर्व अनुरोध के बिना - किसी अपरिभाषित स्थिति में परिवर्तित हो जाता है ([SWS_EM_02276])। इस दौरान, प्रभावित फ़ंक्शन समूह और त्रुटि कॉलबैक को ExecutionErrorEvent के माध्यम से प्रेषित की जाती है।

कॉल संदर्भ और जीवनकाल के लिए निश्चित रूपरेखा शर्तें लागू होती हैं:

  • फ़ंक्शन थ्रेड-सुरक्षित, अपवाद-सुरक्षित है और 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])। यह संभवतः निष्पादन परिवेश (execution environment) के साथ कनेक्शन स्थापित करने में विफलता के कारण हो सकता है। प्रश्न Q-c312c2b5e7c3c7d0 (खुला)

निर्माण पैटर्न संरचनात्मक रूप से ara::exec::ExecutionClient ([SWS_EM_02562]) जैसे संबंधित निष्पादन क्लाइंट के इनिशियलाइज़ेशन दृष्टिकोण से मेल खाता है, जो अनिवार्य कॉलबैक के साथ एक नेम्ड कंस्ट्रक्टर के माध्यम से भी बनाया जाता है।

यह उपयोग नोट 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#2e0f639d
Content hash
2e0f639d
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#854cf7e0
Content hash
854cf7e0
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#610b8822
Content hash
610b8822
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 से किसी एकल फ़ंक्शन समूह के लिए स्थिति संक्रमण (state transition) का अनुरोध करने के लिए किया जाता है [SWS_EM_02278]। कॉल अतुल्यकालिक रूप से की जाती है: विधि परिवर्तन आरंभ करती है और तुरंत एक ara::core::Future<void> के साथ वापस आती है, जिसके माध्यम से संक्रमण के परिणाम को निर्धारित किया जा सकता है [SWS_EM_02278]। एक पैरामीटर के रूप में एक FunctionGroupState पास किया जाता है, जो फ़ंक्शन समूह के भीतर मेटा-मॉडल-अनुरूप लक्ष्य स्थिति की पहचान करता है [SWS_EM_02278]।

यदि संक्रमण विफल रहता है, तो Future Exec-ErrorDomain [SWS_EM_02278] से एक त्रुटि प्रदान करता है। एक रोलबैक सेमांटिक्स ara::exec::ExecErrc::kInvalidTransition पर (उदा. MachineFG के लिए Off स्थिति जैसे निषिद्ध संक्रमणों के मामले में) और 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 के पूर्व कॉल के बिना घटित होते हैं। स्टार्टअप स्थिति में प्रारंभिक संक्रमण के परिणाम को GetInitialMachineStateTransitionResult के माध्यम से अलग से पूछा जा सकता है [SWS_EM_02279]।

यह पाठ एक AI द्वारा तैयार किया गया था; सटीकता की समीक्षा एक संपादक द्वारा की जाती है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता 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#7c1f51c5
Content hash
7c1f51c5
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#d987c2cb
Content hash
d987c2cb
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#d738a706
Content hash
d738a706
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#0dd12121
Content hash
0dd12121
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#1d313bb8
Content hash
1d313bb8
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#2261ee08
Content hash
2261ee08
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#53403a52
Content hash
53403a52
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