functie 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.
Gebruik
De statische factory-methode ara::sm::s2r::S2RSatellite::Create dient voor de synchrone instantiëring van een satelliet voor een directe verbinding met de S2RHub binnen dezelfde machine ([SWS_SM_81014]). De aanroep accepteert geen parameters en retourneert een ara::core::Result<S2RSatellite>, die bij succes het gecreëerde satellietobject beschikbaar stelt ([SWS_SM_81014]).
Foutafhandeling
Indien in de configuratie de schakelaar “Force IAM switch” op true is gezet, faalt de aanroep en levert deze de foutcode ara::sm::SmErrc::kAuthenticationRequired op ([SWS_SM_00716]). In dat geval moet in plaats daarvan verplicht de constructor ara::sm::s2r::S2RSatellite::S2RSatellite worden gebruikt ([SWS_SM_81014]). Bovendien wordt een AraNotInitialized-Violation getriggerd indien de ARA-runtime-omgeving op het moment van de aanroep niet is geïnitialiseerd ([SWS_SM_81014]).
Gelijktijdigheid en randvoorwaarden
De functie is gespecificeerd als thread-safe en exception-safe en gedeclareerd met noexcept ([SWS_SM_81014]). Ze kan zodoende veilig worden aangeroepen vanuit concurrente applicatiecontexten.
Samenspel
Instanties van S2RSatellite worden gebruikt in S2R-compatibele applicaties om meldingen vóór en na de suspend-modus te verwerken (SWS StateManagement §7.5.2 “S2R Satellite”). Na succesvolle instantiëring registreert de applicatie zich via Offer bij de hub ([SWS_SM_00710]). Vóór het vernietigen van het object moet de deregistratie via StopOffer worden aangeroepen ([SWS_SM_00713]). Interpretatie: De methode Create zal vermoedelijk primair zijn bedoeld voor toepassingsscenario's waarin geen IAM-authenticatie voor de satelliet wordt afgedwongen. Vraag Q-fc41980edcb3f61a (open)
Deze gebruiksinstructie is opgesteld door een AI.
Implementer's Guide volgt (complexiteit 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#befb323a- Content hash
befb323a- 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 · Duits origineel