DEENESPTFRRUARHIKOZHNL

class 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] wording not yet imported 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

User GuideAI-GENERATED

Enables monitoring of hardware devices and querying their current operating state.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7b51b19e11ac Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Enables monitoring of hardware devices and querying their current operating state.

The class ara::shwa::DeviceMonitor serves for the synchronous monitoring of the state of hardware devices in the functional cluster shwa. Instances are created via the static factory method Create based on a device reference ([AP_SWS_SHWA_01407]), after which the device status can be continuously queried via the method Status() ([AP_SWS_SHWA_01409]). While creation via factory methods is executed thread-safely, the call for status query is not thread-safe and presumably requires application-side synchronization in case of concurrent access. Question (open)

Context

The class ara::shwa::DeviceMonitor provides the central interface for monitoring the state of hardware devices in module shwa. Application software uses the class to query the operating status of a hardware component identified via a device reference Device or via a selector element DeviceSelector ([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). By encapsulating the status determination in the return type DeviceStatus ([AP_SWS_SHWA_01409]), DeviceMonitor decouples the calling control application from internal hardware details and serves as a standardized observer for the life and fault cycle of the addressed device.

Lifecycle

Instances of DeviceMonitor cannot be created via a parameterless default constructor, as it is explicitly deleted ([AP_SWS_SHWA_01402]). Instead, object creation occurs in a controlled manner via two static factory methods: Create(const Device &device) ([AP_SWS_SHWA_01407]) or the template function Create(const DeviceSelector &deviceSelector) ([AP_SWS_SHWA_01408]). Both factory paths return a ara::core::Result<DeviceMonitor>, are specified as exception-safe (exception safe), and guarantee thread safety.

Regarding ownership and value semantics, the class behaves flexibly: Both copy constructor ([AP_SWS_SHWA_01403]) and copy assignment operator ([AP_SWS_SHWA_01404]) as well as move constructor ([AP_SWS_SHWA_01405]) and move assignment operator ([AP_SWS_SHWA_01406]) are available as standardized (default) and exception-safe (noexcept) operations.

Regarding concurrency, a strict distinction must be made between construction and usage: While creation via the factory functions is thread-safe, the query method Status() is explicitly declared as not thread-safe (not thread-safe) ([AP_SWS_SHWA_01409]). In the event of parallel access by multiple threads to the same instance, application-side synchronization is presumably required. Question Q-4002d6fb6cac23ce (open)

Usage Path

The typical usage path is divided into creating the monitor instance, validating the result, and repeatedly querying the device status. First, the application calls one of the factory methods Create and passes the target component ([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). Subsequently, the application checks the resulting ara::core::Result for success. If the object is valid, the method Status() is called ([AP_SWS_SHWA_01409]), which synchronously returns an object of type DeviceStatus.

Usage path for DeviceMonitorApplicationDeviceMonitorCreate(device)Result<DeviceMonitor>altResult contains valueStatus()DeviceStatusResult contains errorAuswertung von ShwaErrorCode

Sequence diagram: Typical call sequence from instantiation to repeated status query. Sources: [AP_SWS_SHWA_01407], [AP_SWS_SHWA_01409]

Error Scenarios

Errors predominantly occur during creation via the factory methods Create and are provided without C++ exceptions in the return type ara::core::Result via ShwaErrorCode ([AP_SWS_SHWA_01407], [AP_SWS_SHWA_01408]). The following error states are defined for creation:

During ongoing operation when calling Status(), no error codes or exceptions are provided; the method is noexcept and guarantees exception safety ([AP_SWS_SHWA_01409]). A hardware failure or connection loss is therefore likely to be mapped in the returned state value DeviceStatus. Question Q-8e2c8c2c7533b36f (open)

This guide is based on the specifications of the AUTOSAR Adaptive Platform R25-11 specification.

Member map

Constructors and destructor

1

Methods

2

Operators

1

Detail view

Select an entry in the outline.

Constructors and destructor

DeviceMonitor function 3

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

Overloads 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

Methods

Create function 2

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

Overloads 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 function

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

DeviceStatus Status () const noexcept;

Operators

operator= function 2

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

Overloads = 2
DeviceMonitor & operator= (const DeviceMonitor &devMonitor) noexcept=default; AP_SWS_SHWA_01404
DeviceMonitor & operator= (DeviceMonitor &&devMonitor) noexcept=default; AP_SWS_SHWA_01406

Details

function 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#259dd759
Content hash
259dd759
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

function 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#62075007
Content hash
62075007
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

function 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#ef73e799
Content hash
ef73e799
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

function 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#6e7296b5
Content hash
6e7296b5
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

function 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#5df7fddf
Content hash
5df7fddf
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

function 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#b38e96c2
Content hash
b38e96c2
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

function 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#56df0a2e
Content hash
56df0a2e
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

function 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#174997a6
Content hash
174997a6
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