Table of Contents

Class StatusDataEstimate

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

Represents an estimate StatusData based on previous/next StatusData and the Date.

public class StatusDataEstimate : StatusData, IEntity, IComparable, IIdentifiable, IVersion, IDiagnosticProvider, IDeviceProvider, IDateTimeProvider, ILastActive, IDeviceStatusInfoDiagnostic
Inheritance
StatusDataEstimate
Implements
Inherited Members

Constructors

StatusDataEstimate(DateTime?, StatusData?, StatusData?, bool, bool)

Initializes a new instance of the StatusDataEstimate class. The constructor for creating estimated StatusData based on previous/next StatusData and the given date.

public StatusDataEstimate(DateTime? dateTime, StatusData? prevStatusData, StatusData? nextStatusData, bool diagnosticIsState, bool allowConflictingData = false)

Parameters

dateTime DateTime?

The given DateTime for the estimated StatusData.

prevStatusData StatusData

The previous StatusData.

nextStatusData StatusData

The next StatusData.

diagnosticIsState bool

if set to true [diagnostic is state].

allowConflictingData bool

if set to true, status data diagnostics and controllers can be different (EngineHours/Odometer).

Exceptions

NotSupportedException

Cannot merge two Status data with different controller or Cannot merge two statusData with different diagnostics or Cannot merge two StatusData with different Device.

Methods

Clone()

Create a shallow clone to StatusDataEstimate.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.