Class LegSchedule
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
The timing of one leg within a PassageSchedule.
public sealed record LegSchedule : IEquatable<LegSchedule>
- Inheritance
-
LegSchedule
- Implements
- Inherited Members
Constructors
LegSchedule(int, double, double, TimeSpan?, DateTimeOffset?, DateTimeOffset?)
The timing of one leg within a PassageSchedule.
public LegSchedule(int LegIndex, double StartDistanceMeters, double DistanceMeters, TimeSpan? Duration, DateTimeOffset? Start, DateTimeOffset? End)
Parameters
LegIndexintZero-based index of the leg.
StartDistanceMetersdoubleDistance from the start of the passage to the start of this leg, in metres.
DistanceMetersdoubleLength of the leg in metres.
DurationTimeSpan?Time to run the leg, or
nullwhen the leg (or an earlier one) has no speed.StartDateTimeOffset?ETA at the start of the leg, or
nullwhen unknown.EndDateTimeOffset?ETA at the end of the leg, or
nullwhen unknown.
Properties
DistanceMeters
Length of the leg in metres.
public double DistanceMeters { get; init; }
Property Value
DistanceNauticalMiles
Length of the leg in nautical miles.
public double DistanceNauticalMiles { get; }
Property Value
Duration
Time to run the leg, or null when the leg (or an earlier one) has no speed.
public TimeSpan? Duration { get; init; }
Property Value
End
ETA at the end of the leg, or null when unknown.
public DateTimeOffset? End { get; init; }
Property Value
LegIndex
Zero-based index of the leg.
public int LegIndex { get; init; }
Property Value
Start
ETA at the start of the leg, or null when unknown.
public DateTimeOffset? Start { get; init; }
Property Value
StartDistanceMeters
Distance from the start of the passage to the start of this leg, in metres.
public double StartDistanceMeters { get; init; }