Class Preselection
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
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
MetersToTarget
Gets or sets the estimated distance in meters for the resource to reach the target.
public double? MetersToTarget { get; init; }
Property Value
OperationId
public required Guid OperationId { get; init; }
Property Value
Resource
public required IUnitResource Resource { get; init; }
Property Value
RouteTimeToTarget
Gets or sets the estimated time required for the resource to reach the target.
public TimeSpan? RouteTimeToTarget { get; init; }
Property Value
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
Methods
CompareTo(Preselection?)
public int CompareTo(Preselection? other)
Parameters
otherPreselection
Returns
GetDistanceText()
public string GetDistanceText()
Returns
ToString()
public override string ToString()