फ़ंक्शन Disable [SWS_PHM_01380] Upstream: RS_PHM_00101, RS_AP_00159
ara::core::Future< void > Disable () noexcept;
Disable supervision until Enable() is called.
उपयोग
क्लास ara::phm::SupervisedEntity का फ़ंक्शन Disable() किसी इकाई की निगरानी को निष्क्रिय करने के लिए कार्य करता है, जब तक कि इसे Enable() के माध्यम से पुनः सक्रिय न किया जाए [SWS_PHM_01380]। विधि को बिना किसी पैरामीटर के कॉल किया जाता है और इसे अपवाद-सुरक्षित (noexcept) के रूप में घोषित किया गया है [SWS_PHM_01380]। रिटर्न मान के रूप में यह एक ara::core::Future<void> लौटाता है, जिसके माध्यम से अतुल्यकालिक निष्क्रियण के परिणाम के बारे में पूछताछ की जा सकती है [SWS_PHM_01380]।
त्रुटि प्रबंधन
सफलता की स्थिति में, Future मान void प्रदान करता है। यदि निष्क्रियण के दौरान कोई त्रुटि होती है, तो Future में त्रुटि डोमेन PhmErrc [SWS_PHM_01380], [SWS_PHM_01240] से एक त्रुटि कोड होता है। विशेष रूप से, त्रुटि PhmErrc::kServiceNotReady तब वापस की जाती है जब पहले से ही एक अधूरा Enable() या Disable() अनुरोध मौजूद हो [SWS_PHM_01380], [SWS_PHM_01240]। इस त्रुटि स्थिति के लिए रोलबैक सिमेंटिक्स निर्दिष्ट है [SWS_PHM_01380]।
समवर्तीता और परस्पर क्रिया
विधि को गैर-थ्रेड-सुरक्षित (not-threadsafe) के रूप में वर्गीकृत किया गया है [SWS_PHM_01380]। इसलिए SupervisedEntity के समान इंस्टेंस पर समानांतर कॉल को सिंक्रोनाइज़ किया जाना चाहिए। व्याख्या: किसी चल रहे अनुरोध को केवल तभी पूर्ण माना जाना चाहिए जब लौटाया गया Future उपलब्ध हो, ताकि PhmErrc::kServiceNotReady को बाहर करने के लिए तब तक के बाद के कॉलों से बचा जाना चाहिए। प्रश्न Q-ffc7fc693d7ddbe9 (खुला) सफल निष्क्रियण के बाद, निगरानी तब तक निष्क्रिय रहती है जब तक कि Enable() द्वारा निगरानी को – बशर्ते वर्तमान फ़ंक्शन समूह स्थिति में इसकी अनुमति हो – फिर से शुरू न किया जाए [SWS_PHM_01130]।
यह पाठ विनिर्देश के आधार पर एक AI प्रणाली द्वारा उत्पन्न किया गया था।
| Header-Datei | #include "ara/phm/supervised_entity.h" |
|---|---|
| Scope | class ara::phm::SupervisedEntity |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not-threadsafe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | void if successful, otherwise an error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| PhmErrc::kServiceNotReady | rollback_semantics There is already an ongoing Enable or Disable request. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_PHM_01380- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_PHM_01380@rel:R25-11#37c9460e- Content hash
37c9460e- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01380
Status: valid/unmigrated
Version: rel:R25-11#45d48541
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_PHM_01380@rel:R25-11#45d48541
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 · जर्मन मूल