función 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.
Uso y semántica
El método de fábrica estático Create sirve, conforme a [SWS_CM_10438], para la creación libre de excepciones de una instancia de proxy (<SI>Proxy) según el modismo de constructor nombrado. Requiere como parámetro handle un handle de servicio determinado previamente según [SWS_CM_00131]. La llamada se realiza de forma síncrona y está declarada como noexcept. El resultado se devuelve en un ara::core::Result que, en caso de éxito, contiene la instancia de proxy lista para operar.
Manejo de errores
Si se produce un error durante la instanciación, Create devuelve a través de ara::core::Result un código de error de tipo ara::com::ComErrc [SWS_CM_10438]:
ComErrc::kServiceNotAvailable: El servicio ya no está disponible tras haber sido ofrecido previamente a través deOfferService().ComErrc::kCommunicationFailure: El binding de red notifica un error de comunicación recuperable o el fallo de una conexión protegida.
Ambos errores presentan una semántica de reversión (rollback) [SWS_CM_10438]. En caso de errores estructurales o de seguridad, se aplican las vulneraciones especificadas (violations): Si el handle transferido es nulo o está corrupto, se produce una ErroneousServiceHandleViolation. Si el proceso invocador carece de los permisos necesarios para la instancia en el marco del Grant Enforcement, la solicitud se rechaza y se trata como InsufficientPermissionsViolation (SWS CommunicationManagement §8 «Security», [SWS_CM_10438]).
Concurrencia y condiciones de contorno
Interpretación: Dado que Create opera de forma síncrona y vincula recursos de comunicación, es de suponer que la llamada sea reentrante para handles diferentes, pero no debería ejecutarse en bucles de tiempo real estricto (hard real-time) críticos en el tiempo debido a posibles inicializaciones de red. Pregunta Q-f7ba23670f562788 (abierta)
Este texto fue generado por un sistema de IA sobre la base de la especificación AUTOSAR R25-11.
Guía del implementador pendiente (complejidad 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#12219e01- Content hash
12219e01- 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 en alemán