DEENESPTFRRUARHIKOZHNL

클래스 ara::shwa::DeviceMonitor

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Safe Hardware Acceleration (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

[AP_SWS_SHWA_01401] 문구 아직 가져오지 않음 Upstream: RS_SHWA_00004

class DeviceMonitor final {...};

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

Header-Datei#include "ara/shwa/device_monitor.h"
Scopenamespace ara::shwa

사용자 가이드AI 생성

하드웨어 장치를 모니터링하고 현재 작동 상태를 쿼리할 수 있도록 지원합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 7b51b19e11ac 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

하드웨어 장치를 모니터링하고 현재 작동 상태를 쿼리할 수 있도록 지원합니다.

ara::shwa::DeviceMonitor 클래스는 shwa 기능 클러스터에서 하드웨어 장치 상태의 동기식 모니터링을 위해 사용됩니다. 인스턴스는 장치 참조를 기반으로 정적 팩토리 메서드 Create을(를) 통해 생성되며([AP_SWS_SHWA_01407]), 이후 Status() 메서드를 통해 지속적으로 장치 상태를 쿼리할 수 있습니다([AP_SWS_SHWA_01409]). 팩토리 메서드를 통한 생성은 스레드 안전하게 실행되지만, 상태 쿼리 호출은 스레드 안전하지 않으므로 병렬 접근 시 아마도 애플리케이션 측의 동기화가 필요합니다. 질문 (열림)

컨텍스트

클래스 ara::shwa::DeviceMonitor은 모듈 shwa에서 하드웨어 장치의 상태를 모니터링하기 위한 중앙 인터페이스를 제공합니다. 애플리케이션 소프트웨어는 장치 참조 Device 또는 선택기 요소 DeviceSelector을 통해 식별된 하드웨어 컴포넌트의 작동 상태를 조회하기 위해 이 클래스를 사용합니다([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). 반환 타입 DeviceStatus([AP_SWS_SHWA_01409]) 내에 상태 확인을 캡슐화함으로써, DeviceMonitor은 호출하는 제어 애플리케이션을 내부 하드웨어 세부 정보로부터 분리하고 주소 지정된 장치의 수명 및 오류 주기를 위한 표준화된 옵저버 역할을 합니다.

수명 주기

매개변수가 없는 기본 생성자가 명시적으로 삭제되었으므로([AP_SWS_SHWA_01402]), DeviceMonitor의 인스턴스는 이를 통해 생성할 수 없습니다. 대신 객체 생성은 두 개의 정적 팩토리 메서드 Create(const Device &device)([AP_SWS_SHWA_01407]) 또는 템플릿 함수 Create(const DeviceSelector &deviceSelector)([AP_SWS_SHWA_01408])를 통해 제어된 방식으로 수행됩니다. 두 팩토리 경로는 모두 ara::core::Result<DeviceMonitor>을 반환하고 예외 안전(exception safe)으로 명시되어 있으며 스레드 안전성을 보장합니다.

소유권 및 값 의미론 측면에서 이 클래스는 유연하게 동작합니다. 복사 생성자([AP_SWS_SHWA_01403])와 복사 할당 연산자([AP_SWS_SHWA_01404])뿐만 아니라 이동 생성자([AP_SWS_SHWA_01405])와 이동 할당 연산자([AP_SWS_SHWA_01406])도 표준화된(default) 예외 안전(noexcept) 연산으로 제공됩니다.

동시성 문제에서는 생성과 사용을 엄격히 구분해야 합니다. 팩토리 함수를 통한 생성은 스레드 안전하지만, 조회 메서드 Status()은 명시적으로 스레드 안전하지 않은 것(not thread-safe)으로 선언되어 있습니다([AP_SWS_SHWA_01409]). 여러 스레드가 동일한 인스턴스에 병렬로 접근하는 경우 애플리케이션 측의 동기화가 필요할 것으로 추정됩니다. 질문 Q-4002d6fb6cac23ce (열림)

사용 경로

일반적인 사용 경로는 모니터 인스턴스 생성, 결과 검증, 그리고 반복적인 장치 상태 조회로 나뉩니다. 먼저 애플리케이션은 팩토리 메서드 Create 중 하나를 호출하고 대상 컴포넌트를 전달합니다([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). 그런 다음 애플리케이션은 결과인 ara::core::Result의 성공 여부를 확인합니다. 객체가 유효하면 메서드 Status()가 호출되며([AP_SWS_SHWA_01409]), 이는 DeviceStatus 타입의 객체를 동기식으로 반환합니다.

DeviceMonitor의 사용 경로애플리케이션DeviceMonitorCreate(device)Result<DeviceMonitor>altResult에 값이 포함됨Status()DeviceStatusResult에 오류가 포함됨Auswertung von ShwaErrorCode

시퀀스 다이어그램: 인스턴스화부터 반복적인 상태 조회까지의 일반적인 호출 흐름. 출처: [AP_SWS_SHWA_01407], [AP_SWS_SHWA_01409]

오류 시나리오

오류는 주로 팩토리 메서드 Create을 통한 생성 시 발생하며 C++ 예외 없이 반환 타입 ara::core::Result에서 ShwaErrorCode를 통해 제공됩니다([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). 생성을 위해 다음과 같은 오류 상태가 정의되어 있습니다:

실행 중 Status() 호출 시 오류 코드나 예외는 제공되지 않습니다. 이 메서드는 noexcept이며 예외 안전성([AP_SWS_SHWA_01409])을 보장합니다. 따라서 하드웨어 장애나 연결 손실은 반환된 상태 값 DeviceStatus에 반영될 것으로 보입니다. 질문 Q-8e2c8c2c7533b36f (열림)

이 가이드는 AUTOSAR Adaptive Platform R25-11 사양의 규정을 기반으로 합니다.

멤버 맵

생성자 및 소멸자

1

메서드

2

연산자

1

상세 보기

개요에서 항목을 선택하세요.

생성자 및 소멸자

DeviceMonitor 함수 3

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

오버로드 DeviceMonitor 3
DeviceMonitor ()=delete; AP_SWS_SHWA_01402
DeviceMonitor (DeviceMonitor &&devMonitor) noexcept=default; AP_SWS_SHWA_01405
DeviceMonitor (DeviceMonitor const &devMonitor) noexcept=default; AP_SWS_SHWA_01403

메서드

Create 함수 2

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

오버로드 Create 2
static ara::core::Result< DeviceMonitor > Create (const Device &device) noexcept; AP_SWS_SHWA_01407
template <typename DeviceSelector> static ara::core::Result< DeviceMonitor > Create (const DeviceSelector &deviceSelector) noexcept; AP_SWS_SHWA_01408
Status 함수

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

DeviceStatus Status () const noexcept;

연산자

operator= 함수 2

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

오버로드 = 2
DeviceMonitor & operator= (const DeviceMonitor &devMonitor) noexcept=default; AP_SWS_SHWA_01404
DeviceMonitor & operator= (DeviceMonitor &&devMonitor) noexcept=default; AP_SWS_SHWA_01406

세부 정보

함수 DeviceMonitor [AP_SWS_SHWA_01402] Upstream: RS_SHWA_00004

DeviceMonitor ()=delete;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::DeviceMonitor

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01402
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01402@rel:R25-11#b637fd6e
Content hash
b637fd6e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01402
Status: valid/unmigrated Version: rel:R25-11#259dd759 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01402@rel:R25-11#259dd759
Point-in-Time History:
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

함수 DeviceMonitor [AP_SWS_SHWA_01405] Upstream: RS_SHWA_00004, RS_SHWA_00018

DeviceMonitor (DeviceMonitor &&devMonitor) noexcept=default;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::DeviceMonitor
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01405
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01405@rel:R25-11#79b3bd67
Content hash
79b3bd67
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01405
Status: valid/unmigrated Version: rel:R25-11#62075007 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01405@rel:R25-11#62075007
Point-in-Time History:
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= [AP_SWS_SHWA_01404] Upstream: RS_SHWA_00004

DeviceMonitor & operator= (const DeviceMonitor &devMonitor) noexcept=default;

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

Scopeclass ara::shwa::DeviceMonitor
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01404
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01404@rel:R25-11#d04baf92
Content hash
d04baf92
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01404
Status: valid/unmigrated Version: rel:R25-11#ef73e799 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01404@rel:R25-11#ef73e799
Point-in-Time History:
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= [AP_SWS_SHWA_01406] Upstream: RS_SHWA_00004

DeviceMonitor & operator= (DeviceMonitor &&devMonitor) noexcept=default;

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

Scopeclass ara::shwa::DeviceMonitor
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01406
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01406@rel:R25-11#b9833e4b
Content hash
b9833e4b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01406
Status: valid/unmigrated Version: rel:R25-11#6e7296b5 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01406@rel:R25-11#6e7296b5
Point-in-Time History:
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

함수 DeviceMonitor [AP_SWS_SHWA_01403] Upstream: RS_SHWA_00004

DeviceMonitor (DeviceMonitor const &devMonitor) noexcept=default;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::DeviceMonitor
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01403
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01403@rel:R25-11#5fa2950c
Content hash
5fa2950c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01403
Status: valid/unmigrated Version: rel:R25-11#5df7fddf Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01403@rel:R25-11#5df7fddf
Point-in-Time History:
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

함수 Create [AP_SWS_SHWA_01407] Upstream: RS_SHWA_00004, RS_SHWA_00007

static ara::core::Result< DeviceMonitor > Create (const Device &device) noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::DeviceMonitor
Thread Safetythread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error rollback_semantics ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy rollback_semantics ShwaErrorCode::kInvalid Parameter Invalid argument to an API function rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k FeatureNotSupported Used when a requested feature isn’t supported

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01407
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01407@rel:R25-11#6accc396
Content hash
6accc396
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01407
Status: valid/unmigrated Version: rel:R25-11#b38e96c2 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01407@rel:R25-11#b38e96c2
Point-in-Time History:
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

함수 Create [AP_SWS_SHWA_01408] Upstream: RS_SHWA_00004, RS_SHWA_00007

template <typename DeviceSelector> static ara::core::Result< DeviceMonitor > Create (const DeviceSelector &deviceSelector) noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::DeviceMonitor
Thread Safetythread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error rollback_semantics ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy rollback_semantics ShwaErrorCode::kInvalid Parameter Invalid argument to an API function rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k FeatureNotSupported Used when a requested feature isn’t supported

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01408
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01408@rel:R25-11#90c54686
Content hash
90c54686
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01408
Status: valid/unmigrated Version: rel:R25-11#56df0a2e Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01408@rel:R25-11#56df0a2e
Point-in-Time History:
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

함수 Status [AP_SWS_SHWA_01409] Upstream: RS_SHWA_00004

DeviceStatus Status () const noexcept;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::DeviceMonitor
Thread Safetynot thread-safe
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01409
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01409@rel:R25-11#3d397809
Content hash
3d397809
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01409
Status: valid/unmigrated Version: rel:R25-11#174997a6 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01409@rel:R25-11#174997a6
Point-in-Time History:
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