Files
DP44/docs/ai/DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportResults/ViewModel.md
2026-04-17 14:55:32 -04:00

2.0 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportResults/ViewModel/PSDReportResultsViewModel.cs
2026-04-17T16:45:23.897639+00:00 zai-org/GLM-5-FP8 1 c04e7218899f6152

PSDReportResultsViewModel Documentation

1. Purpose

PSDReportResultsViewModel is a Prism-based ViewModel responsible for displaying PSD (Power Spectral Density) report results, specifically GRMS (G-RMS) summary data for test channels. It serves as a subscriber to data update events from parent view models and provides user interaction capabilities for exporting reports to PDF and CSV formats. This component bridges the gap between data calculation logic and the results presentation layer within the DTS Viewer reporting subsystem.


2. Public Interface

Properties

Name Type Description
View IBaseView Gets or sets the associated view instance. Assigned in constructor and has its DataContext set to this.
Parent IBaseViewModel Gets or sets the parent ViewModel. Passed via Initialize(object parameter) and used to filter event responses.
Results ObservableCollection<IChannelGRMSSummary> Observable collection of GRMS summary results displayed in the view. Cleared and repopulated on PSDReportGRMSValuesUpdatedEvent.
NotificationRequest InteractionRequest<Notification> Interaction request for displaying notifications to the user.
ConfirmationRequest InteractionRequest<Confirmation> Interaction request for displaying confirmation dialogs to the user. Declared with new keyword.
ExportToPDFCommand DelegateCommand Lazily-initialized command that publishes SaveReportToPDFRequestedEvent when executed.
ExportToCSVCommand DelegateCommand Lazily-initialized command that publishes SaveReportToCSVRequestedEvent when executed.

Methods

Name Signature Description
Initialize `void Initialize(object parameter