function Disable [SWS_PHM_01380] Upstream: RS_PHM_00101, RS_AP_00159
ara::core::Future< void > Disable () noexcept;
Disable supervision until Enable() is called.
use
The function Disable() of class ara::phm::SupervisedEntity serves to deactivate monitoring of an entity until it is activated again via Enable() [SWS_PHM_01380]. The method is called without parameters and is declared as exception-safe (noexcept) [SWS_PHM_01380]. As a return value, it delivers a ara::core::Future<void>, via which the result of the asynchronous deactivation can be queried [SWS_PHM_01380].
Error handling
In case of success, the Future yields the value void. If an error occurs during deactivation, the future contains an error code from the error domain PhmErrc [SWS_PHM_01380], [SWS_PHM_01240]. In particular, the error PhmErrc::kServiceNotReady is returned if an ongoing, not yet completed Enable() or Disable() request is already present [SWS_PHM_01380], [SWS_PHM_01240]. Rollback semantics are specified for this error case [SWS_PHM_01380].
Concurrency and Interaction
The method is classified as not thread-safe (not-threadsafe) [SWS_PHM_01380]. Parallel calls on the same instance of SupervisedEntity must therefore be synchronized. Interpretation: An ongoing request is probably only to be considered finished when the returned Future is ready, so subsequent calls should be avoided until then to preclude PhmErrc::kServiceNotReady. Question Q-ffc7fc693d7ddbe9 (open) After successful deactivation, monitoring remains inactive until monitoring is restarted by Enable() – provided this is permissible in the current Function Group State [SWS_PHM_01130].
This text was generated by an AI system based on the specification.
| 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#45d48541- Content hash
45d48541- 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 · German original