Table of Contents

Class DiagnosticMapping

Namespace
Geotab.Checkmate.ObjectModel.Engine
Assembly
Geotab.Checkmate.ObjectModel.dll

Represents the relationship of a Device and a MappedDiagnostic with a Diagnostic. Device and MappedDiagnostic pair must be unique for this entity, so a MappedDiagnostic can be resolved as follows: "For this device and mapped diagnostic, tell me which is the actual diagnostic I have to use.".

public class DiagnosticMapping : Entity, IEntity, IComparable, IIdentifiable
Inheritance
DiagnosticMapping
Implements
Inherited Members

Constructors

DiagnosticMapping(Id?, Device?, MappedDiagnostic?, Diagnostic?)

Initializes a new instance of the DiagnosticMapping class.

public DiagnosticMapping(Id? id, Device? device, MappedDiagnostic? mappedDiagnostic, Diagnostic? diagnostic)

Parameters

id Id

Id of this mapping.

device Device

Device of this mapping.

mappedDiagnostic MappedDiagnostic

MappedDiagnostic of this mapping.

diagnostic Diagnostic

Diagnostic of this mapping.

Properties

Device

Gets or sets the device for this mapping.

public Device? Device { get; set; }

Property Value

Device

Device for this mapping.

Diagnostic

Gets or sets the actual diagnostic that must be used for this Device and MappedDiagnostic pair.

public Diagnostic? Diagnostic { get; set; }

Property Value

Diagnostic

Diagnostic for this mapping.

MappedDiagnostic

Gets or sets the mapped diagnostic for this mapping.

public MappedDiagnostic? MappedDiagnostic { get; set; }

Property Value

MappedDiagnostic

MappedDiagnostic for this mapping.

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.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.