Files
DP44/docs/ai/Common/DTS.CommonCore/Enums/TTS.md

58 lines
2.2 KiB
Markdown
Raw Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- Common/DTS.CommonCore/Enums/TTS/TTSEnums.cs
generated_at: "2026-04-17T16:52:23.961528+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "a183c0066bcc75c1"
---
# Documentation: TTSEnums.cs
## 1. Purpose
This module provides enumerations and a reflection-based attribute system for managing TTS (Toyota Test System) data import field definitions. It exists to track which fields in a Toyota import format are currently supported, deprecated, or removed—addressing issue 18396 where excessive columns caused confusion. The module defines field ordering, bridge types, and zero methods used in Toyota data acquisition configurations.
---
## 2. Public Interface
### `FieldSupportLevel` (enum)
Indicates the current support status for a field.
| Value | Description |
|-------|-------------|
| `RequiredParameter` | Field is actively required |
| `RemainedButNotUsed` | Field exists in schema but is not utilized |
| `RemovedParameter` | Field has been removed |
---
### `FieldSupportAttribute` (class)
Attribute for marking enum fields with their support level.
**Properties:**
- `FieldSupportLevel SupportLevel { get; set; }` — The support level assigned to the decorated field.
**Constructor:**
- `FieldSupportAttribute(FieldSupportLevel value)` — Constructs the attribute with the specified support level.
**Static Method:**
- `FieldSupportLevel GetSupportLevel(Enum genericEnum)` — Retrieves the `FieldSupportAttribute.SupportLevel` from an enum value via reflection. Returns `FieldSupportLevel.RemovedParameter` if no attribute is found or if the member info is unavailable.
---
### `ToyotaFieldOrder` (enum)
Defines the field ordering and support status for Toyota import columns. Values are explicitly numbered 032.
| Value | Integer | Support Level |
|-------|---------|---------------|
| `ChannelNumber` | 0 | RequiredParameter |
| `ChannelCode` | 1 | RequiredParameter |
| `JCodeOrDescription` | 2 | RequiredParameter |
| `ChannelRange` | 3 | RequiredParameter |
| `ChannelFilterHz` | 4 | RequiredParameter |
| `SensorID` | 5 | RemainedButNotUsed |
| `SensorSerialNumber` | 6 | RequiredParameter |
| `SensorSensitivity` | 7 | RemainedButNotUsed |
| `SensorExcitationVol