Files
DP44/docs/ai/Common/DTS.Common/Classes/Sensors/AnalogDiagnostics.md
2026-04-17 14:55:32 -04:00

2.1 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
Common/DTS.Common/Classes/Sensors/AnalogDiagnostics/DiagnosticRun.cs
Common/DTS.Common/Classes/Sensors/AnalogDiagnostics/DiagnosticEntry.cs
2026-04-17T15:41:04.266390+00:00 zai-org/GLM-5-FP8 1 8eaedb5d34696af2

Documentation: DTS.Common.Classes.Sensors.AnalogDiagnostics

1. Purpose

This module provides entity classes for analog sensor diagnostics within the DTS system. It models diagnostic test runs and individual diagnostic measurements, serving as data transfer objects that map directly to database records. The classes support both programmatic instantiation and hydration from SQL query results via SqlDataReader, facilitating the persistence and retrieval of sensor diagnostic data such as excitation, offset, noise, and shunt measurements.


2. Public Interface

DiagnosticRun Class

Namespace: DTS.Common.Classes.Sensors.AnalogDiagnostics
Implements: IDiagnosticRun

Represents a diagnostic test run session.

Constructors

Signature Description
DiagnosticRun() Default parameterless constructor.
DiagnosticRun(SqlDataReader reader) Constructs an instance by reading column values from the provided SqlDataReader. Checks for DBNull.Value before casting each field.

Properties

Property Type Default Description
Id long? null Unique identifier for the diagnostic run.
DataPROUser string string.Empty User identifier associated with the run.
TestId int? null Identifier for the test being executed.
TestName string string.Empty Human-readable name of the test.
PreTest bool true Indicates whether this is a pre-test diagnostic run.

DiagnosticEntry Class

Namespace: DTS.Common.Classes.Sensors.AnalogDiagnostics
Implements: IDiagnosticEntry

Represents a single diagnostic measurement entry within a DiagnosticRun, containing sensor channel information and multiple diagnostic measurements with their statuses.

Constructors