42 lines
2.6 KiB
Markdown
42 lines
2.6 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- DataPRO/Modules/TestSetups/Imports/TTS/TTSImportModule.cs
|
||
|
|
generated_at: "2026-04-17T16:16:03.437787+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "53eb3457fc360d37"
|
||
|
|
---
|
||
|
|
|
||
|
|
# TTS
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
This module serves as the Prism module initializer for the TTS (Test Setup) Import feature, responsible for registering multiple views and view models related to hardware scanning, file editing, summary display, channel configuration (analog, digital input, digital output), and level triggers. It provides assembly metadata for the "Prepare" assembly group.
|
||
|
|
|
||
|
|
### Public Interface
|
||
|
|
|
||
|
|
**TTSImportModule**
|
||
|
|
- `TTSImportModule(IUnityContainer unityContainer)` - Constructor accepting the injected Unity container.
|
||
|
|
- `void Initialize()` - Registers the following view/view model pairs with Unity:
|
||
|
|
- `IHardwareScanView` → `HardwareScanView`, `IHardwareScanViewModel` → `HardwareScanViewModel`
|
||
|
|
- `IEditFileView` → `EditFileView`, `IEditFileViewModel` → `EditFileViewModel`
|
||
|
|
- `ISummaryView` → `SummaryView`, `ISummaryViewModel` → `SummaryViewModel`
|
||
|
|
- `IReadFileView` → `ReadFileView`, `IReadFileViewModel` → `ReadFileViewModel`
|
||
|
|
- `ILevelTriggerView` → `LevelTriggerView`, `ILevelTriggerViewModel` → `LevelTriggerViewModel`
|
||
|
|
- `IAnalogChannelsView` → `AnalogChannelsView`, `IAnalogChannelsViewModel` → `AnalogChannelsViewModel`
|
||
|
|
- `ITOMChannelsView` → `TOMChannelsView`, `ITOMChannelsViewModel` → `TOMChannelsViewModel`
|
||
|
|
- `IDigitalInputChannelsView` → `DigitalInputChannelsView`, `IDigitalInputChannelsViewModel` → `DigitalInputChannelsViewModel`
|
||
|
|
- `IDigitalOutputChannelsView` → `DigitalOutputChannelsView`, `IDigitalOutputChannelsViewModel` → `DigitalOutputChannelsViewModel`
|
||
|
|
- `void OnInitialized(IContainerProvider containerProvider)` - **Throws `NotImplementedException`**.
|
||
|
|
- `void RegisterTypes(IContainerRegistry containerRegistry)` - **Throws `NotImplementedException`**.
|
||
|
|
|
||
|
|
**TTSImportModuleNameAttribute** (extends `TextAttribute`)
|
||
|
|
- `string AssemblyName { get; }` - Returns `AssemblyNames.TTSImport.ToString()`.
|
||
|
|
- `Type GetAttributeType()` - Returns `typeof(TextAttribute)`.
|
||
|
|
- `string GetAssemblyName()` - Returns the assembly name.
|
||
|
|
|
||
|
|
**TTSImportModuleImageAttribute** (extends `ImageAttribute`)
|
||
|
|
- `BitmapImage AssemblyImage { get; }` - Loads image via `AssemblyInfo.GetImage(AssemblyNames.TTSImport.ToString())`.
|
||
|
|
- `string AssemblyName { get; }` - Returns `AssemblyNames.TTSImport.ToString()`.
|
||
|
|
- `string AssemblyGroup { get; }` - Returns `eAssemblyGroups.Prepare.ToString()`.
|
||
|
|
- `eAssemblyRegion AssemblyRegion { get; }` - Returns `eAssemblyRegion.TTSImportRegion`.
|
||
|
|
- Accessor methods: `GetAssemblyImage()
|