Table of Contents

Class Preselection

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public class Preselection : IComparable<Preselection>, IPreselection
Inheritance
Preselection
Implements
Inherited Members
Extension Methods

Constructors

Preselection()

public Preselection()

Properties

DepartureTime

Gets the estimated departure time (Rüstzeit/Ausrückezeit) before the unit can begin driving to the target. Zero for units already en route (status 1); derived from dispatch center response time settings for units on duty at their station (status 2).

public TimeSpan? DepartureTime { get; init; }

Property Value

TimeSpan?

DutyEndsOn

Gets when the unit's duty ends (session time), only when it ends soon (Core DispatchDefaults.DutyEndWarningMinutes); otherwise null.

public DateTimeOffset? DutyEndsOn { get; init; }

Property Value

DateTimeOffset?

MetersToTarget

Gets or sets the estimated distance in meters for the resource to reach the target.

public double? MetersToTarget { get; init; }

Property Value

double?

OperationId

public required Guid OperationId { get; init; }

Property Value

Guid

Resource

public required IUnitResource Resource { get; init; }

Property Value

IUnitResource

RouteTimeToTarget

Gets or sets the estimated time required for the resource to reach the target.

public TimeSpan? RouteTimeToTarget { get; init; }

Property Value

TimeSpan?

TotalTimeToTarget

Gets the total estimated time to reach the target, combining DepartureTime and RouteTimeToTarget. Returns null when RouteTimeToTarget is unknown.

public TimeSpan? TotalTimeToTarget { get; }

Property Value

TimeSpan?

Methods

CompareTo(Preselection?)

public int CompareTo(Preselection? other)

Parameters

other Preselection

Returns

int

GetDistanceText()

public string GetDistanceText()

Returns

string

ToString()

public override string ToString()

Returns

string