함수 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.
사용법 및 의미론
정적 팩토리 메서드 Create은 [SWS_CM_10438]에 따라 Named Constructor 관용구에 따라 프록시 인스턴스(<SI>Proxy)를 예외 없이 생성하는 데 사용됩니다. 이는 매개변수 handle으로 [SWS_CM_00131]에 따라 이전에 결정된 서비스 핸들을 필요로 합니다. 호출은 동기식으로 수행되며 noexcept로 선언되어 있습니다. 결과는 성공 시 작동 준비가 된 프록시 인스턴스를 포함하는 ara::core::Result에 반환됩니다.
오류 처리
인스턴스화 중에 오류가 발생하면 Create은 ara::core::Result을 통해 ara::com::ComErrc 유형의 오류 코드를 반환합니다 [SWS_CM_10438]:
ComErrc::kServiceNotAvailable: 이전에OfferService()을 통해 제공된 후 서비스를 더 이상 사용할 수 없습니다.ComErrc::kCommunicationFailure: 네트워크 바인딩이 복구 가능한 통신 오류 또는 보안 연결 실패를 보고합니다.
두 오류 모두 롤백 시맨틱을 갖습니다 [SWS_CM_10438]. 구조적 또는 보안 관련 오류의 경우 지정된 위반(Violations)이 적용됩니다. 전달된 핸들이 null이거나 손상된 경우 ErroneousServiceHandleViolation이 존재합니다. Grant Enforcement의 일환으로 호출 프로세스에 인스턴스에 대한 필요한 권한이 부족한 경우 요청이 거부되고 InsufficientPermissionsViolation로 처리됩니다(SWS CommunicationManagement §8 “Security”, [SWS_CM_10438]).
동시성 및 제약 조건
해석: Create은 동기식으로 작동하고 통신 리소스를 바인딩하므로 서로 다른 핸들에 대한 호출은 재진입 가능할 것으로 추정되지만, 가능한 네트워크 초기화로 인해 시간에 민감한 하드 실시간 루프에서 실행되어서는 안 됩니다. 질문 Q-f7ba23670f562788 (열림)
본 텍스트는 AUTOSAR R25-11 사양을 바탕으로 AI 시스템에 의해 생성되었습니다.
구현자 가이드 준비 중 (복잡도 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#f47e9207- Content hash
f47e9207- 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 · 독일어 원문