function 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.
use
The static factory method ara::sm::s2r::S2RSatellite::Create serves for the synchronous instantiation of a satellite for direct connection to the S2RHub within the same machine ([SWS_SM_81014]). The call takes no parameters and returns a ara::core::Result<S2RSatellite>, which provides the created satellite object in case of success ([SWS_SM_81014]).
Error handling
If the configuration switch “Force IAM switch” is set to true, the call fails and returns the error code ara::sm::SmErrc::kAuthenticationRequired ([SWS_SM_00716]). In this case, the constructor ara::sm::s2r::S2RSatellite::S2RSatellite must mandatorily be used instead ([SWS_SM_81014]). In addition, a AraNotInitialized-Violation is triggered if the ARA runtime environment is not initialized at the time of the call ([SWS_SM_81014]).
Concurrency and Constraints
The function is specified as thread-safe as well as exception-safe and declared with noexcept ([SWS_SM_81014]). It can thus be called safely from concurrent application contexts.
Interaction
Instances of S2RSatellite are used in S2R-capable applications to process notifications before and after suspend mode (SWS StateManagement §7.5.2 “S2R Satellite”). After successful instantiation, the application registers with the hub via Offer ([SWS_SM_00710]). Before destroying the object, deregistration must be called by means of StopOffer ([SWS_SM_00713]). Interpretation: The method Create is likely intended primarily for application scenarios in which no IAM authentication is forced for the satellite. Question Q-fc41980edcb3f61a (open)
This usage note was created by an AI.
Implementer's Guide to follow (complexity 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#cd8a5e9e- Content hash
cd8a5e9e- 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 · German original