Class DataDiagnostic
- Namespace
- Geotab.Checkmate.ObjectModel.Engine
- Assembly
- Geotab.Checkmate.ObjectModel.dll
A Diagnostic that represents measurement data from the vehicle (as opposed to fault codes).
public class DataDiagnostic : Diagnostic, IEntity, IComparable, IIdentifiable, IVersion
- Inheritance
-
DataDiagnostic
- Implements
- Derived
- Inherited Members
Constructors
DataDiagnostic()
Initializes a new instance of the DataDiagnostic class.
public DataDiagnostic()
DataDiagnostic(DataDiagnostic)
Initializes a new instance of the DataDiagnostic class.
protected DataDiagnostic(DataDiagnostic dataDiagnostic)
Parameters
dataDiagnosticDataDiagnosticThe data diagnostic.
DataDiagnostic(Id?)
Initializes a new instance of the DataDiagnostic class.Constructor.
public DataDiagnostic(Id? id)
Parameters
idIdThe Id.
DataDiagnostic(Id?, long?, string?, int?, EngineType?, Source?, UnitOfMeasure?, byte?, double?, double?, Controller?, FaultResetMode?, ValidLoggingPeriod?, bool?)
Initializes a new instance of the DataDiagnostic class.
public DataDiagnostic(Id? id, long? version, string? name, int? code, EngineType? engineType, Source? source, UnitOfMeasure? unitOfMeasure, byte? dataLength, double? conversion, double? offset, Controller? controller, FaultResetMode? faultResetMode, ValidLoggingPeriod? validLoggingPeriod = ValidLoggingPeriod.None, bool? isEstimateError = null)
Parameters
idIdThe Id.
versionlong?The version.
namestringThe name.
codeint?The code.
engineTypeEngineTypeThe EngineType.
sourceSourceThe Source.
unitOfMeasureUnitOfMeasureThe UnitOfMeasure.
dataLengthbyte?Length of the data.
conversiondouble?The conversion.
offsetdouble?The offset.
controllerControllerThe controller.
faultResetModeFaultResetMode?The FaultResetMode.
validLoggingPeriodValidLoggingPeriod?The ValidLoggingPeriod of this diagnostic.
isEstimateErrorbool?If [true], this diagnostic guarantees it will be logged on estimate error, otherwise [false].
Properties
Conversion
Gets or sets the conversion factor for the diagnostic parameter; this is related to the UnitOfMeasure.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DataDiagnosticConversion })]
public double? Conversion { get; set; }
Property Value
DataLength
Gets or sets the length of the diagnostic data parameter in bytes.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DataDiagnosticDataLength })]
public byte? DataLength { get; set; }
Property Value
DiagnosticSignals
Gets or sets the DiagnosticSignal reference list. This property is obsolete and doesn't store or return any value except null.
public List<DiagnosticSignal>? DiagnosticSignals { get; set; }
Property Value
EnumNames
Gets or sets the enum name values for the diagnostic.
public EnumName[]? EnumNames { get; set; }
Property Value
Offset
Gets or sets the offset value of the diagnostic parameter.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DataDiagnosticOffset })]
public double? Offset { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.