Table of Contents

Class TripSummary

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

The trip summary data for TripSummary report.

public class TripSummary
Inheritance
TripSummary
Inherited Members

Constructors

TripSummary(Device?, Driver?, bool, in DateTime, in DateTime, TimeZoneInfo, in TimeSpan)

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

public TripSummary(Device? device, Driver? driver, bool calculateDaysDriven, in DateTime fromUtc, in DateTime toUtc, TimeZoneInfo timeZoneInfo, in TimeSpan minimumStopDuration)

Parameters

device Device

The device.

driver Driver

The driver.

calculateDaysDriven bool

Whether to calculate days driven.

fromUtc DateTime

The utc from date filter provided by the user for the report generation.

toUtc DateTime

The utc to date filter provided by the user for the report generation.

timeZoneInfo TimeZoneInfo

The Timezone info of the report generator (user).

minimumStopDuration TimeSpan

THe minimum stop duration in order to filter the trips

Properties

CustomerDuration

Gets or sets the duration of the customer.

public TimeSpan CustomerDuration { get; set; }

Property Value

TimeSpan

The duration of the customer.

CustomerStopCount

Gets or sets the customer stop count.

public int CustomerStopCount { get; set; }

Property Value

int

The customer stop count.

DaysDriven

Gets number of distinct days driven.

public HashSet<DateTime> DaysDriven { get; }

Property Value

HashSet<DateTime>

The number of distinct days driven.

Device

Gets the device.

public Device? Device { get; }

Property Value

Device

The device.

Distance

Gets the distance.

public float Distance { get; }

Property Value

float

The distance.

Driver

Gets the driver.

public Driver? Driver { get; }

Property Value

Driver

The driver.

DrivingDuration

Gets the duration of the driving.

public TimeSpan DrivingDuration { get; }

Property Value

TimeSpan

The duration of the driving.

HomeDuration

Gets or sets the duration of the home.

public TimeSpan HomeDuration { get; set; }

Property Value

TimeSpan

The duration of the home.

IdlingDuration

Gets the duration of the idling.

public TimeSpan IdlingDuration { get; }

Property Value

TimeSpan

The duration of the idling.

MaximumSpeed

Gets the maximum speed.

public float MaximumSpeed { get; }

Property Value

float

The maximum speed.

NonCustomerDuration

Gets or sets the duration of the non customer zone stop.

public TimeSpan NonCustomerDuration { get; set; }

Property Value

TimeSpan

The duration of the non customer zone stops.

OfficeDuration

Gets or sets the duration of the office.

public TimeSpan OfficeDuration { get; set; }

Property Value

TimeSpan

The duration of the office.

StopCount

Gets the stop count of all trips.

public int StopCount { get; }

Property Value

int

The stop count of all trips.

StopDuration

Gets the duration of the stop.

public TimeSpan StopDuration { get; }

Property Value

TimeSpan

The duration of the stop.

Methods

AddTrip(Trip, ZoneType?)

Adds the trip to trip summary.

public void AddTrip(Trip trip, ZoneType? stopZoneType)

Parameters

trip Trip

The trip to add.

stopZoneType ZoneType

The type of the zone where the trip stopped, null if the trip did not stop inside the target zones.

HasAnyValidTrips()

Indicates whether there is any valid trip in this summary.

public bool HasAnyValidTrips()

Returns

bool

True, if there is any valid trip in this trip summary, otherwise, False