Table of Contents

Class DutyStatusAvailability

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

Driver Availability for Hours of Service regulations.

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

Constructors

DutyStatusAvailability()

Initializes a new instance of the DutyStatusAvailability class.

public DutyStatusAvailability()

DutyStatusAvailability(User, IEnumerable<DutyStatusAvailabilityDuration>, List<DutyStatusRecap>)

Initializes a new instance of the DutyStatusAvailability class.

[Obsolete("Legacy constructor. Use separate parameters for rest, driving, etc.")]
public DutyStatusAvailability(User driver, IEnumerable<DutyStatusAvailabilityDuration> availabilities, List<DutyStatusRecap> recap)

Parameters

driver User

The driver.

availabilities IEnumerable<DutyStatusAvailabilityDuration>

The availabilities.

recap List<DutyStatusRecap>

The recap of cycle time spent each day.

DutyStatusAvailability(User, TimeSpan?, TimeSpan?, TimeSpan?, TimeSpan?, TimeSpan?, List<DutyStatusRecap>, List<DutyStatusCycleAvailability>)

Initializes a new instance of the DutyStatusAvailability class.

public DutyStatusAvailability(User driver, TimeSpan? rest, TimeSpan? driving, TimeSpan? cycle, TimeSpan? duty, TimeSpan? workday, List<DutyStatusRecap> recap, List<DutyStatusCycleAvailability> cycleAvailabilities)

Parameters

driver User

The driver.

rest TimeSpan?

The rest availability.

driving TimeSpan?

The driving availability.

cycle TimeSpan?

The cycle availability.

duty TimeSpan?

The duty availability.

workday TimeSpan?

The workday availability.

recap List<DutyStatusRecap>

The recap of cycle time spent each day.

cycleAvailabilities List<DutyStatusCycleAvailability>

The cycle availabilities.

Properties

Availabilities

Gets a list of DutyStatusAvailabilityDuration(s) for a driver.

[Obsolete("Legacy availabilities. Use separate fields for rest, driving, etc.")]
public List<DutyStatusAvailabilityDuration> Availabilities { get; }

Property Value

List<DutyStatusAvailabilityDuration>

DutyStatusAvailabilityDuration

Cycle

Gets or sets the duration of cycle duty hours left.

public TimeSpan? Cycle { get; set; }

Property Value

TimeSpan?

TimeSpan

CycleAvailabilities

Gets or sets cycle available to the driver in the future.

public List<DutyStatusCycleAvailability>? CycleAvailabilities { get; set; }

Property Value

List<DutyStatusCycleAvailability>

List<T>

CycleDriving

Gets or sets the duration of cycle driving hours left.

public TimeSpan? CycleDriving { get; set; }

Property Value

TimeSpan?

TimeSpan

CycleRest

Gets or sets the duration left before cycle rest must be taken.

public TimeSpan? CycleRest { get; set; }

Property Value

TimeSpan?

TimeSpan

Driver

Gets or sets the User associated with the duty status availability.

public User? Driver { get; set; }

Property Value

User

Driver

Driving

Gets or sets the duration left for driving.

public TimeSpan? Driving { get; set; }

Property Value

TimeSpan?

TimeSpan

DrivingBreakDuration

Gets or sets the duration of the driving break (USA only)

public TimeSpan? DrivingBreakDuration { get; set; }

Property Value

TimeSpan?

TimeSpan

Duty

Gets or sets the duration of total on-duty time left in a day.

public TimeSpan? Duty { get; set; }

Property Value

TimeSpan?

TimeSpan

DutySinceCycleRest

Gets or sets the duty hours left since Cycle Rest.

public TimeSpan? DutySinceCycleRest { get; set; }

Property Value

TimeSpan?

TimeSpan

Is16HourExemptionAvailable

Gets or sets if 16 hour exemption is available.

public bool? Is16HourExemptionAvailable { get; set; }

Property Value

bool?

bool

IsAdverseDrivingApplied

Gets or sets if adverse driving exemption is applied.

public bool? IsAdverseDrivingApplied { get; set; }

Property Value

bool?

bool

IsAdverseDrivingExemptionAvailable

Gets or sets if adverse driving exemption is available.

public bool? IsAdverseDrivingExemptionAvailable { get; set; }

Property Value

bool?

bool

IsOffDutyDeferralExemptionAvailable

Gets or sets if off-duty deferral exemption is available.

public bool? IsOffDutyDeferralExemptionAvailable { get; set; }

Property Value

bool?

bool

IsRailroadExemptionAvailable

Gets or sets if railroad exemption is available.

public bool? IsRailroadExemptionAvailable { get; set; }

Property Value

bool?

bool

Recap

Gets or sets chronological array representing each day's On-duty time since beginning of cycle.

public List<DutyStatusRecap>? Recap { get; set; }

Property Value

List<DutyStatusRecap>

List<T>

Rest

Gets or sets the duration left before rest break must be taken.

public TimeSpan? Rest { get; set; }

Property Value

TimeSpan?

TimeSpan

Workday

Gets or sets the duration of workday left in a day. Workday is a consecutive window that begins with first on-duty.

public TimeSpan? Workday { get; set; }

Property Value

TimeSpan?

TimeSpan

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.