functie Get [SWS_CM_00112] Upstream: RS_CM_00218, RS_AP_00114, RS_AP_00120, RS_AP_00127, RS_AP_00128, RS_AP_00138
ara::core::Future< FieldType > Get () noexcept;
Get the current value of the Field. The method is present only if Field.hasGetter ==TRUE, otherwise it is not present (shall not be generated)
Gebruik
De methode Get dient in de proxy-scope <SI-Namespace>::proxy::fields::<Field> voor het asynchroon ophalen van de actuele veldwaarde ([SWS_CM_00112]; zie ook AUTOSAR_AP_EXP_ARAComAPI §6 “FieldGet”). De functie wordt beschikbaar gesteld via de proxy-header <SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h en bestaat alleen wanneer voor het veld Field.hasGetter == TRUE gemodelleerd is ([SWS_CM_00112]). Ze accepteert geen parameters en levert een ara::core::Future<FieldType> terug, die na succesvolle overdracht de actuele waarde bevat ([SWS_CM_00112]).
Foutafhandeling en randvoorwaarden
De interface is gedefinieerd als noexcept en exceptieveilig ([SWS_CM_00112]). Mislukt de operatie, dan bevat de geretourneerde ara::core::Future een foutcode met rollback-semantiek ([SWS_CM_00112]):
ComErrc::kCommunicationFailure: De netwerkbinding meldt een herstelbare communicatiefout of het mislukken van een beveiligde communicatie ([SWS_CM_00112]).ComErrc::kMinimumSendIntervalViolationError: Een verzendverzoek vond sneller plaats dan het voor het element geconfigureerde minimale verzendinterval (minimumSendInterval) toestaat ([SWS_CM_00112]).InsufficientPermissionsViolation: De uitvoering wordt afgewezen door Grant Enforcement ([SWS_CM_00112]).
Toepassingsfouten (Application Errors) bestaan niet voor de getter ([SWS_CM_00113]).
Samenspel
Aan de skeleton-zijde vereist de verwerking van het getter-verzoek een callback die via RegisterGetHandler wordt geregistreerd ([SWS_CM_00114]). Elke aanroep van Get() voert een end-to-end-controle (E2E) uit; de daaruit resulterende toestandstatus kan aan de proxy-zijde synchroon via GetE2EStateMachineStateGetter worden opgevraagd ([SWS_CM_00145]).
Deze tekst is opgesteld door een AI op basis van de specificatiedocumenten.
Implementer's Guide volgt (complexiteit I2)
| Header-Datei | #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_proxy.h" |
|---|---|
| Scope | class <SI-Namespace>::proxy::fields::<Field> |
| Exception-Sicherheit | exception safe |
| Verletzungen (Violations) | InsufficientPer- Refused by Grant Enforcement missionsViolation |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< FieldType > | • If successful: an ara::core::Future containing a Field Type object as per [SWS_CM_11403] • If unsuccessful: an ara::core::Future containing a corresponding ara::core::FutureErrc |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ComErrc::kCommunicationFailure | rollback_semantics The network binding reported a recoverable communications error or a secure communication failure |
| ComErrc::kMinimumSendIntervalViolationError | rollback_semantics Minimum Send Interval violation, because a transmission request for a service instance element (event, field or method call) was issued faster than allowed, i.e., the configured minimum send interval ServiceInterfaceDeploymentElement. minimumSendInterval for the service instance element has not yet expired. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CM_00112- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CM_00112@rel:R25-11#e6b33dc7- Content hash
e6b33dc7- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00112
Status: valid/unmigrated
Version: rel:R25-11#ec4a8dc1
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_00112@rel:R25-11#ec4a8dc1
Recorded Revisions (8):
- R25-11
rel:R25-11#0bc1ce772026-09-30 - R19-11
rel:R19-11#85c2390c2026-10-14 - R20-11
rel:R20-11#85c2390c2026-10-14 - R21-11
rel:R21-11#85c2390c2026-10-14 - R22-11
rel:R22-11#5a1fa5a12026-10-14 - R23-11
rel:R23-11#da1367322026-10-14 - R24-11
rel:R24-11#78164d832026-10-14 - R25-11
rel:R25-11#ec4a8dc12026-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 · Duits origineel