DEENESPTFRRUARHIKOZHNL

क्लास ara::shwa::Platform

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_01101] पाठ अभी आयात नहीं हुआ Upstream: RS_SHWA_00018

class Platform final {...};

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

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

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

उपलब्ध हार्डवेयर त्वरण प्लेटफ़ॉर्मों और उनके संबद्ध उपकरणों के निर्धारण के लिए प्रवेश बिंदु के रूप में कार्य करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 60e95dec807e उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपलब्ध हार्डवेयर त्वरण प्लेटफ़ॉर्मों और उनके संबद्ध उपकरणों के निर्धारण के लिए प्रवेश बिंदु के रूप में कार्य करता है।

क्लास ara::shwa::Platform AUTOSAR क्लस्टर Safe Hardware Acceleration (SWS SafeHardwareAcceleration §1 “Scope of Document”) में हार्डवेयर त्वरक की खोज के लिए केंद्रीय प्रवेश बिंदु के रूप में कार्य करती है। स्टैटिक फ़ैक्टरी मेथड के माध्यम से उपलब्ध प्लेटफ़ॉर्म इंस्टेंस प्राप्त करने के बाद, ऐप्लिकेशन समानांतर कंप्यूटिंग कार्यों के लिए कनेक्टेड त्वरक उपकरणों का निर्धारण करने हेतु GetDevices() को कॉल करता है ([AP_SWS_SHWA_01108])। चूंकि डिफ़ॉल्ट कंस्ट्रक्टर हटा दिया गया है और मेथड्स थ्रेड-सुरक्षित नहीं हैं, इसलिए इंस्टेंस फ़ैक्टरी मेथड के माध्यम से प्राप्त किए जाने चाहिए और समवर्तीता के मामले में एक्सेस को ऐप्लिकेशन पक्ष पर सिंक्रोनाइज़ किया जाना चाहिए।

संदर्भ

क्लास ara::shwa::Platform AUTOSAR Adaptive Platform के कार्यात्मक क्लस्टर Safe Hardware Acceleration (SHWA) में केंद्रीय प्रवेश बिंदु बनाती है (SWS SafeHardwareAcceleration §1 “Scope of Document”)। इस क्लस्टर का उद्देश्य Adaptive Applications और अन्य कार्यात्मक क्लस्टरों को हार्डवेयर त्वरकों के उपयोग के लिए एक मानकीकृत, पोर्टेबल और सुरक्षित इंटरफ़ेस प्रदान करना है (SWS SafeHardwareAcceleration §4.1 “Functional Overview”)। SHWA क्लस्टर ऑटोमोटिव सुरक्षा आवश्यकताओं के अनुपालन में समानांतर कंप्यूटिंग संचालन, त्वरकों पर त्रुटि पहचान और त्रुटि सुधार, तथा हार्डवेयर की कार्यशील स्थिति की निगरानी के लिए जिम्मेदार है (SWS SafeHardwareAcceleration §4.1 “Functional Overview”)।

क्लस्टर आर्किटेक्चर में, Platform उच्च-स्तरीय हार्डवेयर प्लेटफ़ॉर्म का प्रतिनिधित्व करता है जिसके माध्यम से विशिष्ट निष्पादन इकाइयों (Device) तक पहुंच प्राप्त की जाती है (SWS SafeHardwareAcceleration §7 “High Level Design of Safe Hardware Acceleration in an Adaptive Platform”)। एक Adaptive Application उपलब्ध त्वरक उपकरणों का निर्धारण करने के लिए प्लेटफ़ॉर्म के साथ इंटरैक्ट करता है, जो क्यू (Queues) और बफ़र्स (Buffers) के संयोजन में गणना-गहन कार्यों को समानांतर में संसाधित करते हैं (SWS SafeHardwareAcceleration §7 “High Level Design of Safe Hardware Acceleration in an Adaptive Platform”)।

जीवनचक्र

ara::shwa::Platform का जीवनचक्र नियंत्रित इंस्टैंसिएशन के अधीन है। डिफ़ॉल्ट कंस्ट्रक्टर स्पष्ट रूप से हटा दिया गया है ([AP_SWS_SHWA_01102]), ताकि ऐप्लिकेशन बिना संदर्भ के प्लेटफ़ॉर्म ऑब्जेक्ट्स नहीं बना सकें। आरंभीकरण केवल स्टैटिक फ़ैक्टरी मेथड GetPlatforms() ([AP_SWS_SHWA_01107]) के माध्यम से होता है।

प्रदान किए गए इंस्टेंस पूर्ण मान और मूव सेमांटिक्स का समर्थन करते हैं:

  • कॉपी कंस्ट्रक्टर ([AP_SWS_SHWA_01103]) और कॉपी असाइनमेंट ऑपरेटर ([AP_SWS_SHWA_01104]) को default और noexcept के रूप में घोषित किया गया है।
  • मूव कंस्ट्रक्टर ([AP_SWS_SHWA_01105]) और मूव असाइनमेंट ऑपरेटर ([AP_SWS_SHWA_01106]) भी default और noexcept के रूप में परिभाषित हैं।

व्याख्या: चूंकि सभी कॉपी और मूव ऑपरेटरों को ट्रिवियल डिफ़ॉल्ट घोषित किया गया है, इसलिए Platform को ड्राइवर संदर्भ के लिए एक हल्के प्रॉक्सी या डिस्क्रिप्टर के रूप में डिज़ाइन किए जाने की संभावना है। प्रश्न Q-d136569f5adb1a20 (खुला) समवर्तीता के संबंध में, क्लास के मेथड्स को स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में निर्दिष्ट किया गया है ([AP_SWS_SHWA_01107], [AP_SWS_SHWA_01108])। यदि इंस्टेंस का उपयोग थ्रेड्स के पार किया जाता है, तो कॉल्स को ऐप्लिकेशन पक्ष पर सिंक्रोनाइज़ किया जाना चाहिए।

उपयोग पथ

किसी ऐप्लिकेशन में ara::shwa::Platform का एकीकरण चरणों के एक निश्चित क्रम में होता है:

  1. सभी उपलब्ध प्लेटफ़ॉर्म इंस्टेंसेस को क्वेरी करने के लिए ऐप्लिकेशन स्टैटिक फ़ैक्टरी मेथड ara::shwa::Platform::GetPlatforms() को कॉल करता है ([AP_SWS_SHWA_01107])।
  2. लौटाए गए परिणाम वेक्टर से ऐप्लिकेशन वांछित प्लेटफ़ॉर्म इंस्टेंस का चयन करता है।
  3. संबद्ध हार्डवेयर त्वरकों को क्वेरी करने के लिए इस इंस्टेंस पर मेथड GetDevices() को कॉल किया जाता है ([AP_SWS_SHWA_01108])।
  4. हार्डवेयर पर कंप्यूटिंग संचालन निष्पादित करने के लिए परिणामी Device ऑब्जेक्ट्स का उपयोग बाद में क्यू और बफ़र्स बनाने के लिए किया जाता है (SWS SafeHardwareAcceleration §7 “High Level Design of Safe Hardware Acceleration in an Adaptive Platform”)।
प्लेटफ़ॉर्म और डिवाइस एक्सप्लोरेशनएप्लिकेशनara::shwa::PlatformInstanz: PlatformGetPlatforms()Result<Vector<Platform>>altErfolgGetDevices()Result<Vector<Device>>Fehler (kResourceBusy / kRuntime)त्रुटि हैंडलिंग निष्पादित करें

अनुक्रम आरेख: प्लेटफ़ॉर्म क्वेरी और उपलब्ध त्वरक उपकरणों के बाद के निर्धारण का विशिष्ट प्रवाह। स्रोत: [AP_SWS_SHWA_01107], [AP_SWS_SHWA_01108], SWS SafeHardwareAcceleration §7 “High Level Design of Safe Hardware Acceleration in an Adaptive Platform”।

त्रुटि परिदृश्य

ara::shwa::Platform के ऑपरेशन्स noexcept के रूप में घोषित हैं और कोई C++ अपवाद नहीं फेंकते हैं ([AP_SWS_SHWA_01107], [AP_SWS_SHWA_01108])। त्रुटि स्थितियां रिटर्न मान ara::core::Result के एरर प्रकार के माध्यम से प्रेषित की जाती हैं। GetPlatforms() और GetDevices() दोनों के लिए निम्नलिखित एरर कोड निर्दिष्ट हैं:

  • ShwaErrorCode::kResourceBusy: अनुरोधित ऑपरेशन निष्पादित नहीं किया जा सका क्योंकि प्रभावित हार्डवेयर या सॉफ़्टवेयर संसाधन वर्तमान में व्यस्त है ([AP_SWS_SHWA_01107], [AP_SWS_SHWA_01108])।
  • ShwaErrorCode::kRuntime: एक सामान्य रनटाइम त्रुटि हुई है ([AP_SWS_SHWA_01107], [AP_SWS_SHWA_01108])। इस त्रुटि के लिए कोई रोलबैक सेमांटिक्स (no_rollback_semantics) प्रदान नहीं किया गया है, यही वजह है कि आंतरिक स्थिति स्वचालित रूप से रीसेट नहीं होती है और ऐप्लिकेशन को इस प्रक्रिया को संभालना होगा।

यह क्लास गाइड Safe Hardware Acceleration मॉड्यूल के विनिर्देशों के आधार पर AUTOSAR Adaptive Platform रिलीज़ R25-11 के लिए तैयार किया गया था।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

1

ऑपरेटर

1

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

Platform फ़ंक्शन 3

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

ओवरलोड Platform 3
Platform ()=delete; AP_SWS_SHWA_01102
Platform (Platform &&ptfm) noexcept=default; AP_SWS_SHWA_01105
Platform (Platform const &ptfm) noexcept=default; AP_SWS_SHWA_01103

मेथड

GetDevices फ़ंक्शन

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

ara::core::Result< ara::core::Vector< Device > > GetDevices () noexcept;
GetPlatforms फ़ंक्शन

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

static ara::core::Result< ara::core::Vector< Platform > > GetPlatforms () noexcept;

ऑपरेटर

operator= फ़ंक्शन 2

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

ओवरलोड = 2
Platform & operator= (const Platform &ptfm) noexcept=default; AP_SWS_SHWA_01104
Platform & operator= (Platform &&ptfm) noexcept=default; AP_SWS_SHWA_01106

विवरण

फ़ंक्शन Platform [AP_SWS_SHWA_01102] Upstream: RS_SHWA_00018

Platform ()=delete;

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

Scopeclass ara::shwa::Platform

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01102
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01102@rel:R25-11#4024215e
Content hash
4024215e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01102
Status: valid/unmigrated Version: rel:R25-11#5f0e5b74 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_01102@rel:R25-11#5f0e5b74
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

फ़ंक्शन Platform [AP_SWS_SHWA_01105] Upstream: RS_SHWA_00018

Platform (Platform &&ptfm) noexcept=default;

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

Scopeclass ara::shwa::Platform
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01105@rel:R25-11#e5093123
Content hash
e5093123
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01105
Status: valid/unmigrated Version: rel:R25-11#55be7f30 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_01105@rel:R25-11#55be7f30
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_01104] Upstream: RS_SHWA_00018

Platform & operator= (const Platform &ptfm) noexcept=default;

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

Scopeclass ara::shwa::Platform
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01104@rel:R25-11#1b07afe1
Content hash
1b07afe1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01104
Status: valid/unmigrated Version: rel:R25-11#4f68176d 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_01104@rel:R25-11#4f68176d
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_01106] Upstream: RS_SHWA_00018

Platform & operator= (Platform &&ptfm) noexcept=default;

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

Scopeclass ara::shwa::Platform
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01106@rel:R25-11#ed307f76
Content hash
ed307f76
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01106
Status: valid/unmigrated Version: rel:R25-11#c17dcc96 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_01106@rel:R25-11#c17dcc96
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

फ़ंक्शन Platform [AP_SWS_SHWA_01103] Upstream: RS_SHWA_00018

Platform (Platform const &ptfm) noexcept=default;

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

Scopeclass ara::shwa::Platform
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01103@rel:R25-11#d7b4c8af
Content hash
d7b4c8af
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01103
Status: valid/unmigrated Version: rel:R25-11#a94b2acc 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_01103@rel:R25-11#a94b2acc
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

फ़ंक्शन GetDevices [AP_SWS_SHWA_01108] Upstream: RS_SHWA_00018, RS_SHWA_00007

ara::core::Result< ara::core::Vector< Device > > GetDevices () noexcept;

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

Scopeclass ara::shwa::Platform
Thread Safetynot thread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error no_rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01108@rel:R25-11#364f6996
Content hash
364f6996
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01108
Status: valid/unmigrated Version: rel:R25-11#7cfbd613 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_01108@rel:R25-11#7cfbd613
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

फ़ंक्शन GetPlatforms [AP_SWS_SHWA_01107] Upstream: RS_SHWA_00018, RS_SHWA_00007

static ara::core::Result< ara::core::Vector< Platform > > GetPlatforms () noexcept;

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

Scopeclass ara::shwa::Platform
Thread Safetynot thread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error no_rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01107@rel:R25-11#f1e74658
Content hash
f1e74658
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01107
Status: valid/unmigrated Version: rel:R25-11#5546e8ef 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_01107@rel:R25-11#5546e8ef
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