함수 ConfigureMonitor [SWS_DM_01696] Upstream: RS_AP_00137, RS_Diag_04179, RS_AP_00121
ara::core::Result< void > ConfigureMonitor (MonitorHandleType monitor Handle, InitMonitorNotifier initMonitor, std::function< std::int8_t()> getFaultDetectionCounter) noexcept;
Configures a monitor with Monitor-internal debouncing. Any overloaded ConfigureMonitor shall be only called once per monitor. The monitor can only be used after this initialisation step.
사용
메서드 ara::diag::MultipleMonitor::ConfigureMonitor는 모니터 내부 디바운싱을 위한 진단 모니터를 초기화합니다 [SWS_DM_01696]. 매개변수 monitorHandle를 통해 구성할 모니터가 지정되며, initMonitor을 통해서는 재초기화를 위한 알림 콜백이, getFaultDetectionCounter를 통해서는 현재 오류 카운터 값(FDC)을 조회하기 위한 함수가 등록됩니다 [SWS_DM_01696]. 실행은 동기식으로 이루어지며 ara::core::Result<void>을(를) 반환합니다 AUTOSAR_AP_SWS_Diagnostics §8.44.2.1.3.4 “ConfigureMonitor”.
오류 처리 및 동시성
오류 발생 시 오류 결과 DiagErrc::kInvalidArgument이(가) 반환됩니다 [SWS_DM_01696]. 이는 특히 유효하지 않은 함수 포인터가 전달되거나 내부 디바운싱 시 호환되지 않는 상태가 존재할 때 발생할 것으로 보입니다(해석). 질문 Q-3de0f2b0cc427ef3 (열림) 해당 연산은 noexcept 및 예외 안전(exception safe)으로 명시되어 있으나, 명시적으로 스레드 안전하지 않음(not thread-safe)으로 표시되어 있습니다 [SWS_DM_01696]. 따라서 동일한 모니터 인스턴스에 대한 호출은 애플리케이션 측에서 동기화되어야 합니다.
순서 및 상호작용
ConfigureMonitor의 각 오버로드는 하나의 모니터에 대해 정확히 한 번만 호출될 수 있으며, 모니터는 이 초기화 단계를 거친 후에야 비로소 사용 준비가 완료됩니다 [SWS_DM_01696]. 모니터 내부 디바운싱의 경우, 진단 모니터 애플리케이션이 디바운싱 로직을 자체적으로 처리하고 최종 결과만을 Diagnostic Management로 전달합니다 AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.5.3 “Monitor-internal debouncing”. 다른 디바운싱 메커니즘을 위해 시간 기반 [SWS_DM_01697], 카운터 기반 [SWS_DM_01702] 또는 디바운싱되지 않는 모니터링 [SWS_DM_01973]을 위한 대체 오버로드가 제공됩니다.
이 사용 지침은 사양을 바탕으로 자동 작성되었습니다.
구현자 가이드 준비 중 (복잡도 I2)
| Header-Datei | #include "ara/diag/multiple_monitor.h" |
|---|---|
| Scope | class ara::diag::MultipleMonitor |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| monitorHandle | Identifies the requested monitor |
| initMonitor | Possibility to register an InitMonitor callback |
| getFaultDetectionCounter | Possibility to register a function to get the current FDC for this event. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | Returns nothing or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| DiagErrc::kInvalidArgument | rollback_semantics e.g. kPreFailed with internal debouncing |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01696- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01696@rel:R25-11#1b2a7741- Content hash
1b2a7741- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01696
Status: valid/unmigrated
Version: rel:R25-11#8434f254
Versionshistorie & Revisions (1 transition, 4 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_DM_01696@rel:R25-11#8434f254
Recorded Revisions (4):
- R25-11
rel:R25-11#c62b40112026-09-30 - R23-11
rel:R23-11#daa241aa2026-10-14 - R24-11
rel:R24-11#b8bb06ec2026-10-14 - R25-11
rel:R25-11#8434f2542026-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 · 독일어 원문