진단 모니터링 실행 및 Diagnostic Management로의 상태 보고에 사용됩니다.
AI 생성미검증모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 49f63d89472d출처열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문
진단 모니터링 실행 및 Diagnostic Management로의 상태 보고에 사용됩니다.
클래스 ara::diag::Monitor은(는) 진단 모니터링 기능의 구현 및 Diagnostic Management로의 연결을 위한 기능 인터페이스를 제공합니다 [SWS_DM_00548]. 포트 프로토타입에 바인딩된 후 애플리케이션은 Offer()을(를) 통해 수신 준비 상태를 알리고 ReportMonitorAction()을(를) 통해 테스트 결과를 지속적으로 전송합니다 [SWS_DM_01088], [SWS_DM_00543]. Monitor 인스턴스는 복사하거나 이동할 수 없으며 모든 연산은 스레드 안전하지 않은 것으로 명세되어 있습니다 [SWS_DM_01685].
컨텍스트
클래스 ara::diag::Monitor은(는) Adaptive Platform 내에서 진단 모니터링 기능(모니터)을 구현하기 위한 표준화된 C++ 인터페이스를 나타냅니다 [SWS_DM_00548]. 모니터는 기능 소프트웨어 컴포넌트의 오류 증상을 감지하고 보고하는 역할을 담당하며 해당 상태를 Diagnostic Management(DM) 모듈로 전송합니다.
AUTOSAR 시스템 모델에 대한 바인딩은 ara::core::InstanceSpecifier을(를) 통해 수행되며, 이는 DiagnosticMonitorInterface에 의해 유형화된 PortPrototype을(를) 반드시 참조해야 합니다 [SWS_DM_00548]. 전체 처리에는 본질적으로 세 가지 컴포넌트가 관여합니다: 애플리케이션별 기능 모니터링(Application), ara::diag::Monitor의 로컬 인터페이스 인스턴스, 그리고 이벤트를 수신하고 재초기화를 요청하는 플랫폼 모듈 Diagnostic Management(DM)입니다.
생성 후 인스턴스는 제공되지 않음(Unoffered) 상태에 있습니다. 애플리케이션이 Offer()을(를) 명시적으로 호출해야 비로소 initMonitor과(와) 같은 진단 콜아웃을 수신하고 처리할 준비가 되었음을 선언합니다 [SWS_DM_01088]. StopOffer()을(를) 사용하면 DM으로부터의 진단 요청 전달이 다시 비활성화됩니다 [SWS_DM_01089]. StopOffer() 호출 후 Offer()을(를) 다시 호출하여 나중에 작동을 재개하는 것이 가능할 것으로 추정됩니다. 질문 Q-136565db34b28ae6 (열림) 모니터 객체가 최종 소멸되기 전에 보류 중인 알림을 안전하게 차단하기 위해 애플리케이션이 StopOffer()을(를) 실행해야 할 것으로 추정됩니다.
인스턴스화: 애플리케이션이 InstanceSpecifier, 콜백 initMonitor 및 필요한 경우 디바운싱 매개변수 또는 FDC 콜백을 지정하여 Monitor 인스턴스를 생성합니다 [SWS_DM_00548], [SWS_DM_00549].
서비스 제공: 모니터가 Offer()을(를) 통해 DM에 수신 준비가 되었음을 등록합니다 [SWS_DM_01088].
초기화: Diagnostic Management는 등록된 InitMonitorNotifier 콜백을 통해 대기 중인 초기화 이벤트에 대해 애플리케이션에 알립니다 [SWS_DM_01088].
주기적/이벤트 기반 보고: 정상 운영 중에 애플리케이션은 ReportMonitorAction(action)을(를) 통해 모니터링 경로의 상태를 지속적으로 보고합니다 [SWS_DM_00543]. 전달되는 액션에는 테스트 결과(한정됨/한정되지 않음) 또는 디바운싱 제어 및 사전 저장(Prestorage) 명령이 포함됩니다. 모니터 내부 디바운싱이 구성된 경우, DM은 필요 시 등록된 콜백을 통해 오류 한계값을 쿼리합니다 [SWS_DM_00548].
서비스 종료: 시스템 종료 전 또는 진단 기능 비활성화 시, 애플리케이션은 StopOffer()을(를) 호출하여 수신되는 DM 메시지를 차단합니다 [SWS_DM_01089].
InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process.
InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceMonitorInternal or DiagnosticEventToDebounceAlgorithmMapping shall not exist.
Parameter (in)
Parameter
Beschreibung
specifier
InstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitor
Possibility to register an InitMonitor callback
getFaultDetectionCounter
Possibility to register a function to get the current FDC for this event.
Request a governed re-review of this record. The record is not changed immediately.
InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceCounterBased.
Parameter (in)
Parameter
Beschreibung
specifier
InstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitor
Possibility to register an InitMonitor callback
defaultValues
Default values for CounterBased debouncing
Request a governed re-review of this record. The record is not changed immediately.
InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceTimeBased.
Parameter (in)
Parameter
Beschreibung
specifier
InstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitor
Possibility to register an InitMonitor callback
defaultValues
Default values for TimeBased debouncing
Request a governed re-review of this record. The record is not changed immediately.
InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceMonitorInternal or DiagnosticEventToDebounceAlgorithmMapping shall not exist.
Parameter (in)
Parameter
Beschreibung
specifier
InstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitor
Possibility to register an InitMonitor callback
Request a governed re-review of this record. The record is not changed immediately.
With the Offer the application states that it is ready to receive and process initMonitor callouts.
AI 생성미검증모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 2e8d03769af8출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문
Adaptive Application은 메서드 Offer 호출을 통해 initMonitor 콜아웃을 수신하고 처리할 준비가 되었음을 Diagnostic Management(DM)에 알립니다 [SWS_DM_01088]. 클래스 ara::diag::Monitor의 메서드는 매개변수가 없으며 ara::core::Result<void>을(를) 반환합니다 [SWS_DM_01088]. 이름은 ara::com을(를) 본떠 선택되었지만, 진단 컴포넌트의 특정 구현체이며 통신 서비스와 혼동해서는 안 됩니다 AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”.
오류 발생 시, 서비스가 이미 이전에 제공된 상태라면 메서드는 오류 코드 DiagOfferErrc::kAlreadyOffered을(를) 반환합니다 [SWS_DM_01088]. 이는 진단 오류 도메인 내에서 이미 활성화된 오퍼를 보고하기 위한 열거자(enumerator)에 해당합니다 [SWS_DM_00514]. 성공적으로 호출되면 반환 객체에 오류가 포함되지 않습니다.
동시성과 관련하여 이 메서드는 not thread-safe로 명시되어 있으므로, 동일한 인스턴스에 대한 병렬 호출은 애플리케이션 측에서 동기화되어야 합니다 [SWS_DM_01088]. 또한 이 함수는 예외 안전(exception safe) 및 noexcept(으)로 선언되어 있습니다 [SWS_DM_01088].
Function to report the status information being relevant for error monitoring paths.
AI 생성미검증모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 8334da733b55출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문
클래스 ara::diag::Monitor의 동기식 메소드 ReportMonitorAction은(는) 진단 검사의 상태 및 모니터링 정보를 Diagnostic Management 데몬의 오류 모니터링에 보고합니다[SWS_DM_00543]. 애플리케이션은 MonitorAction 타입의 매개변수 action을(를) 통해 적격 또는 부적격 테스트 결과나 디바운싱을 제어하고 사전 저장(Prestorage)을 트리거하기 위한 제어 명령을 전달합니다[SWS_DM_00543]. 이 함수는 반환값을 제공하지 않으며(void), noexcept 및 예외 안전으로 선언되어 있습니다[SWS_DM_00543].
진단 이벤트의 구성된 디바운싱 방식에서 지원되지 않는 action 값을 사용하여 ReportMonitorAction이(가) 호출되면, Diagnostic Manager는 프로세스 위반을 발생시킵니다[SWS_DM_01988]. 또한 시스템은 인에이블 조건이 충족되지 않는 상황을 위한 kReportIgnored와(과) 같이, 타입 DiagErrc에서 내부 오류 코드를 정의합니다[SWS_DM_00514].
통합 및 동시성에 대해 다음 경계 조건이 적용됩니다:
스레드 안전성: 이 함수는 스레드 안전하지 않습니다(not thread-safe)[SWS_DM_00543]. 동일한 모니터 인스턴스에 대한 병렬 호출은 호출자 측에서 동기화되어야 합니다(생성자를 통해 스레드 안전성을 구성할 수 있는 MultipleMonitor와(과) 다름[SWS_DM_01698]).
UnexpectedMoni- ara::diag::Monitor::ReportMonitorAction is called with torActionHan- a parameter action value that is not supported by the used dlingViolation debouncing method.
Parameter (in)
Parameter
Beschreibung
action
Contains either the last (un-)qualified test result of the diagnostic monitor or commands to control the debouncing or to force a prestorage.
Rückgabewert
Typ
Beschreibung
None
Request a governed re-review of this record. The record is not changed immediately.
오류 처리와 관련하여 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)한 것으로 간주됩니다. 특정 오류 코드나 오류 메시지는 존재하지 않습니다([SWS_DM_01089]). 주요 제약 사항으로 StopOffer은(는) 스레드 안전하지 않음(not thread-safe)으로 분류됩니다([SWS_DM_01089]). 해석: 동일한 모니터 객체에 대한 동시 접근 시, 호출자 자신이 적절한 동기화를 담당해야 할 것으로 보입니다. 질문 Q-3ead3049b4378083 (열림)
전체 시스템에서 StopOffer은(는) 진단 모듈의 통일된 패턴에 통합됩니다. DM 메시지 전달을 비활성화하기 위한 유사한 인터페이스는 특히 GenericRoutine([SWS_DM_00558]), CommunicationControl([SWS_DM_00810]), EcuResetRequest([SWS_DM_01017]) 및 Authentication([SWS_DM_01131])에서 찾아볼 수 있습니다.
이 사용 지침은 자동으로 생성되었으며 AUTOSAR Adaptive R25-11 사양을 기반으로 합니다.
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문