função Create [SWS_CM_10438] Upstream: RS_CM_00102, RS_AP_00114, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00139
static ara::core::Result< <SI>Proxy > Create (const <SI-Namespace>::proxy:: <SI>Proxy::HandleType &handle) noexcept;
Exception-less construction of a Proxy from a HandleType using the Named Constructor idiom.
Utilização e semântica
O método de fábrica estático Create serve, conforme [SWS_CM_10438], para a criação livre de exceções de uma instância de proxy (<SI>Proxy) de acordo com a convenção de named constructor. Ele requer como parâmetro handle um handle de serviço previamente determinado de acordo com [SWS_CM_00131]. A chamada ocorre de forma síncrona e é declarada como noexcept. O resultado é retornado em um ara::core::Result, que em caso de sucesso contém a instância de proxy operacional.
Tratamento de erros
Se ocorrer um erro durante a instanciação, Create fornece através do ara::core::Result um código de erro do tipo ara::com::ComErrc [SWS_CM_10438]:
ComErrc::kServiceNotAvailable: O serviço não está mais disponível após ter sido oferecido anteriormente viaOfferService().ComErrc::kCommunicationFailure: O binding de rede relata um erro de comunicação recuperável ou a falha de uma conexão segura.
Ambos os erros apresentam uma semântica de rollback [SWS_CM_10438]. Em caso de erros estruturais ou relacionados à segurança, aplicam-se violações especificadas (Violations): se o handle fornecido for nulo ou estiver corrompido, ocorre uma ErroneousServiceHandleViolation. Se faltarem ao processo chamador as permissões necessárias para a instância no âmbito do Grant Enforcement, a requisição é rejeitada e tratada como InsufficientPermissionsViolation (SWS CommunicationManagement §8 «Security», [SWS_CM_10438]).
Simultaneidade e condições marginais
Interpretação: Como Create opera de forma síncrona e vincula recursos de comunicação, a chamada deve ser reentrante para handles diferentes, mas não deve ser executada em loops hard real-time de tempo crítico devido a possíveis inicializações de rede. Pergunta Q-f7ba23670f562788 (aberta)
Este texto foi gerado por um sistema de IA com base na especificação AUTOSAR R25-11.
Guia do implementador em breve (complexidade I2)
| Header-Datei | #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h" |
|---|---|
| Scope | class <SI-Namespace>::proxy::<SI>Proxy |
| Exception-Sicherheit | exception safe |
| Verletzungen (Violations) | ErroneousService- Provided HandleType is null or corrupt HandleViolation InsufficientPer- Refused by Grant Enforcement missionsViolation |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| handle | As per [SWS_CM_00131] |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< {<service-interface-name> }Proxy > | • If successful: an ara::core::Result containing a ara:: core::Result::value_type containing a Proxy • If unsuccessful: an ara::core::Result containing an ara:: core::Result::error_type i.e. a corresponding ara:: com::ComErrc |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ComErrc::kServiceNotAvailable | rollback_semantics Service is not available after being previously offered via Offer Service() |
| ComErrc::kCommunicationFailure | rollback_semantics The network binding reported a recoverable communications error or a secure communication failure |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CM_10438- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CM_10438@rel:R25-11#e659befc- Content hash
e659befc- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_10438
Status: valid/unmigrated
Version: rel:R25-11#cfeddea9
Versionshistorie & Revisions (1 transition, 8 revision)
- 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_CM_10438@rel:R25-11#cfeddea9
Recorded Revisions (8):
- R25-11
rel:R25-11#b417ae7a2026-09-30 - R19-11
rel:R19-11#7e4e18b92026-10-14 - R20-11
rel:R20-11#f1232f7e2026-10-14 - R21-11
rel:R21-11#f1232f7e2026-10-14 - R22-11
rel:R22-11#38bf837e2026-10-14 - R23-11
rel:R23-11#38bf837e2026-10-14 - R24-11
rel:R24-11#08265d1c2026-10-14 - R25-11
rel:R25-11#cfeddea92026-10-14 active
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 · Original em alemão