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

사용자 가이드AI 생성

Machine에서 프로세스를 제어하기 위해 Execution Management에 함수 그룹의 상태 전환을 요청합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 3af3f18c3d39 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

Machine에서 프로세스를 제어하기 위해 Execution Management에 함수 그룹의 상태 전환을 요청합니다.

인터페이스 ara::exec::StateClient은 State Management가 Machine에서 할당된 프로세스의 실행을 제어하기 위해 Execution Management에 함수 그룹의 상태 전환을 요청할 수 있도록 합니다 [SWS_EM_02278]. Create()를 통한 생성 시 예기치 않은 정의되지 않은 상태에 대한 지속적으로 유효한 콜백을 등록해야 합니다 [SWS_EM_02276]. 복사 불가능한 이 클래스는 비동기 상태 전환 외에도 Machine 시동 결과 쿼리 및 실행 오류에 대한 오류 분석 메서드를 제공합니다 [SWS_EM_02279], [SWS_EM_02542].

컨텍스트

ara::exec::StateClient 클래스는 State Management가 함수 그룹(Function Groups)의 상태 전환을 요청하고 제어하는 Execution Management의 인터페이스를 형성합니다. 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의 인스턴스는 ara::core::Result<StateClient>으로서 명명된 생성자 Create() [SWS_EM_02276]을 통해 생성되거나 정규 생성자 StateClient() [SWS_EM_02561]를 통해 생성될 수 있습니다. 두 생성 경로 모두 std::function<void(const ara::exec::ExecutionErrorEvent&)> 유형의 콜백 매개변수 undefinedStateCallback을 반드시 요구합니다. 이 콜백은 SetState()에 의한 사전 요청 없이 함수 그룹이 예기치 않게 정의되지 않은 상태로 전환될 때 StateClient 라이브러리에 의해 트리거됩니다. 호출자는 이 콜백이 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()을 통해 유효한 오류 신호 콜백을 지정하여 StateClient을 인스턴스화합니다 [SWS_EM_02276].
  2. 초기 시동 결과 쿼리: State Management는 GetInitialMachineStateTransitionResult()을 사용하여 Startup 상태로의 초기 상태 전환 결과를 요청합니다 [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::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: 예를 들어 IPC 연결이 끊어진 경우와 같이 Execution Management와의 통신 장애를 나타냅니다. 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: 요청된 상태 전환이 허용되지 않거나(예: 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의 사양 요구사항만을 기반으로 한다.

멤버 맵

클래스 다이어그램

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

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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 86cbb8f72d61 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

정적 팩토리 메서드 Create는 ara::exec::StateClient의 인스턴스를 생성하기 위한 네임드 생성자(Named Constructor) 역할을 합니다([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: 통신 오류를 알립니다(No-Rollback 시맨틱, 재시도를 통해 해결)([SWS_EM_02276]). 이는 실행 환경과의 연결 설정 실패에 기인한 것으로 보입니다. 질문 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#85ed8639
Content hash
85ed8639
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#a33ca04a
Content hash
a33ca04a
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#beaf3f63
Content hash
beaf3f63
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.

AI 생성 미검증 모델: 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은(는) 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#7efd4f5a
Content hash
7efd4f5a
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#4c42259c
Content hash
4c42259c
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#b9bf599a
Content hash
b9bf599a
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#ba70682d
Content hash
ba70682d
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#b4ace818
Content hash
b4ace818
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#2da219df
Content hash
2da219df
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#badc6c08
Content hash
badc6c08
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