फ़ंक्शन Create [SWS_SM_81014] Upstream: RS_SM_00402
static ara::core::Result< S2RSatellite > Create () noexcept;
Creation of an conneting directly to S2RHub within the current machine.
उपयोग
स्टैटिक फ़ैक्टरी विधि ara::sm::s2r::S2RSatellite::Create का उपयोग उसी मशीन के भीतर S2RHub के सीधे कनेक्शन के लिए सैटेलाइट के सिंक्रोनस इंस्टेंटिएशन हेतु किया जाता है ([SWS_SM_81014])। कॉल कोई पैरामीटर स्वीकार नहीं करता है और एक ara::core::Result<S2RSatellite> लौटाता है, जो सफल होने पर निर्मित सैटेलाइट ऑब्जेक्ट प्रदान करता है ([SWS_SM_81014])।
त्रुटि प्रबंधन
यदि कॉन्फ़िगरेशन में स्विच “Force IAM switch” true पर सेट है, तो कॉल विफल हो जाती है और त्रुटि कोड ara::sm::SmErrc::kAuthenticationRequired लौटाती है ([SWS_SM_00716])। इस स्थिति में, इसके बजाय कंस्ट्रक्टर ara::sm::s2r::S2RSatellite::S2RSatellite का उपयोग करना अनिवार्य है ([SWS_SM_81014])। इसके अतिरिक्त, यदि कॉल के समय ARA रनटाइम परिवेश प्रारंभ नहीं किया गया है, तो एक AraNotInitialized-Violation ट्रिगर किया जाता है ([SWS_SM_81014])।
समवर्तीता और सीमांत शर्तें
फ़ंक्शन को थ्रेड-सुरक्षित और अपवाद-सुरक्षित के रूप में निर्दिष्ट किया गया है और noexcept के साथ घोषित किया गया है ([SWS_SM_81014])। इसलिए इसे समवर्ती एप्लिकेशन संदर्भों से सुरक्षित रूप से कॉल किया जा सकता है।
इंटरैक्शन
S2RSatellite के इंस्टेंस का उपयोग सस्पेंड मोड से पहले और बाद में सूचनाओं को संसाधित करने के लिए S2R-सक्षम अनुप्रयोगों में किया जाता है (SWS StateManagement §7.5.2 “S2R Satellite”)। सफल इंस्टेंटिएशन के बाद, एप्लिकेशन Offer के माध्यम से हब पर पंजीकरण करता है ([SWS_SM_00710])। ऑब्जेक्ट को नष्ट करने से पहले, StopOffer का उपयोग करके अपंजीकरण को कॉल किया जाना चाहिए ([SWS_SM_00713])। व्याख्या: विधि Create मुख्य रूप से उन अनुप्रयोग परिदृश्यों के लिए अभिप्रेत होने की संभावना है जिनमें सैटेलाइट के लिए कोई IAM प्रमाणीकरण बाध्यकारी नहीं है। प्रश्न Q-fc41980edcb3f61a (खुला)
यह उपयोग नोट एक AI द्वारा तैयार किया गया था।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
| Header-Datei | #include "ara/sm/s2r/S2RSatellite.h" |
|---|---|
| Scope | class ara::sm::s2r::S2RSatellite |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
| Verletzungen (Violations) | AraNotInitialized- Violation message that is sent in case a constructor or function Violation checks for an initialized ara and identifies that ara is not initialized. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< S2RSatellite > | a result that contains either a object or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::sm::SmErrc::kAuthenticationRequired | rollback_semantics S2R Satellite requires IAM authentication. ara::sm::s2r:: S2RSatellite::S2RSatellite has to be used instead. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_SM_81014- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_SM_81014@rel:R25-11#bd8d4ae1- Content hash
bd8d4ae1- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_StateManagement.pdf#nameddest=SWS_SM_81014
Status: valid/unmigrated
Version: rel:R25-11#cd8a5e9e
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/SWS_SM_81014@rel:R25-11#cd8a5e9e
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल