init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportSettings/PSDReportSettingsModule.cs
|
||||
generated_at: "2026-04-17T16:12:47.804729+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "77abce46004490fb"
|
||||
---
|
||||
|
||||
# DTS.Viewer.PSDReportSettings
|
||||
|
||||
### Purpose
|
||||
This module is a Prism-based plugin module that provides PSD (Power Spectral Density) Report Settings functionality for the DTS Viewer application. It follows the modular architecture pattern, registering its View, ViewModel, and Model components with the Unity dependency injection container at runtime. The module self-describes its metadata (name, image, group, region) through assembly-level attributes, enabling the main application to discover and display it as an available component.
|
||||
|
||||
### Public Interface
|
||||
- **PSDReportSettingsModule** (class) - Implements `Prism.Modularity.IModule`. The main module entry point.
|
||||
- `PSDReportSettingsModule(IUnityContainer unityContainer)` - Constructor accepting an injected `IUnityContainer`.
|
||||
- `Initialize()` - Registers types with Unity container: `IPSDReportSettingsViewModel` → `PSDReportSettingsViewModel`, `IPSDReportSettingsModel` → `PSDReportSettingsModel`, `IPSDReportSettingsView` → `PSDReportSettingsView`.
|
||||
- `OnInitialized(IContainerProvider containerProvider)` - Empty implementation (no post-initialization logic).
|
||||
- `RegisterTypes(IContainerRegistry containerRegistry)` - Calls `Initialize()` to perform type registration.
|
||||
|
||||
- **PSDReportSettingsModuleNameAttribute** (class) - Extends `TextAttribute`. Assembly-level attribute for module name metadata.
|
||||
- `AssemblyName` (property) - Returns `AssemblyNames.PSDReportSettings.ToString()`.
|
||||
- `GetAttributeType()` - Returns `typeof(TextAttribute)`.
|
||||
- `GetAssemblyName()` - Returns the `AssemblyName` property value.
|
||||
|
||||
- **PSDReportSettingsModuleImageAttribute** (class) - Extends `ImageAttribute`. Assembly-level attribute for module image and categorization.
|
||||
- `AssemblyImage` (property) - Retrieves image via `AssemblyInfo.GetImage(AssemblyNames.PSDReportSettings.ToString())`.
|
||||
- `AssemblyName` (property) - Returns `AssemblyNames.PSDReportSettings.ToString()`.
|
||||
- `AssemblyGroup` (property) - Returns `eAssemblyGroups.Viewer.ToString()`.
|
||||
- `AssemblyRegion` (property) - Returns `eAssemblyRegion.PSDReportSettingsRegion`.
|
||||
- `GetAssemblyImage()`, `GetAssemblyName()`, `GetAssemblyGroup()`, `GetAssemblyRegion()` - Accessor methods for respective properties.
|
||||
|
||||
### Invariants
|
||||
- The module is registered with Prism using `ModuleName = "PSDReportSettings"`.
|
||||
- Assembly-level attributes `[assembly: PSDReportSettingsModuleName()]` and `[assembly:
|
||||
Reference in New Issue
Block a user