Table of Contents

Class UnitOfMeasure

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

Describes the unit of measure (UOM) for engine data logs. In the case where no unit of measure is available; this is represented by "UnitOfMeasureNoneId".

[ReportClass]
public class UnitOfMeasure : NameEntity, IEntity, IComparable, IIdentifiable
Inheritance
UnitOfMeasure
Implements
Derived
Inherited Members

Constructors

UnitOfMeasure()

Initializes a new instance of the UnitOfMeasure class. Initializes a new instance of the UnitOfMeasure class.

public UnitOfMeasure()

UnitOfMeasure(UnitOfMeasure)

Initializes a new instance of the UnitOfMeasure class. Copy constructor - Initializes a new instance of the UnitOfMeasure class.

protected UnitOfMeasure(UnitOfMeasure unitOfMeasure)

Parameters

unitOfMeasure UnitOfMeasure

The unit of measure.

UnitOfMeasure(Id?, string?)

Initializes a new instance of the UnitOfMeasure class. Initializes a new instance of the UnitOfMeasure class.

public UnitOfMeasure(Id? id, string? name)

Parameters

id Id

The. Id

name string

The description of the UOM.

Properties

Id

Gets or sets the unique identifier for this entity. See Id.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UnitOfMeasureId })]
public override Id? Id { get; set; }

Property Value

Id

Id.

Name

Gets or sets the name of this entity which identifies it and is used when displaying this entity.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.UnitOfMeasureName })]
public override string? Name { get; set; }

Property Value

string

string The Name.

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.

KmToMeters(double?)

Convert km to meters.

public static double? KmToMeters(double? value)

Parameters

value double?

The value in meters.

Returns

double?

Nullable<T> where T is double A double representing meters.

KmToMeters(float?)

Convert km to meters.

public static float? KmToMeters(float? value)

Parameters

value float?

The value in meters.

Returns

float?

A float representing the number of kilometers.

KmToMeters(float)

Convert km to meters.

public static float KmToMeters(float value)

Parameters

value float

The value in meters.

Returns

float

A float representing the number of kilometers.

MetersToKm(double?)

Convert meters to km.

public static double? MetersToKm(double? value)

Parameters

value double?

The value in meters.

Returns

double?

Nullable<T> where T is double A double representing kilometers.

MetersToKm(float?)

Convert meters to km.

public static float? MetersToKm(float? value)

Parameters

value float?

The value in meters.

Returns

float?

A float representing kilometers.

MetersToKm(float)

Convert meters to km.

public static float MetersToKm(float value)

Parameters

value float

The value in meters.

Returns

float

A float representing kilometers.

SystemFromId(Id?)

Returns a system unit of measure from the provided system Id else null if its a not a system unit of measure.

public static UnitOfMeasure? SystemFromId(Id? id)

Parameters

id Id

The id.

Returns

UnitOfMeasure

UnitOfMeasure