Table of Contents

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

LegIndex int

Zero-based index of the leg.

StartDistanceMeters double

Distance from the start of the passage to the start of this leg, in metres.

DistanceMeters double

Length of the leg in metres.

Duration TimeSpan?

Time to run the leg, or null when the leg (or an earlier one) has no speed.

Start DateTimeOffset?

ETA at the start of the leg, or null when unknown.

End DateTimeOffset?

ETA at the end of the leg, or null when unknown.

Properties

DistanceMeters

Length of the leg in metres.

public double DistanceMeters { get; init; }

Property Value

double

DistanceNauticalMiles

Length of the leg in nautical miles.

public double DistanceNauticalMiles { get; }

Property Value

double

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

TimeSpan?

End

ETA at the end of the leg, or null when unknown.

public DateTimeOffset? End { get; init; }

Property Value

DateTimeOffset?

LegIndex

Zero-based index of the leg.

public int LegIndex { get; init; }

Property Value

int

Start

ETA at the start of the leg, or null when unknown.

public DateTimeOffset? Start { get; init; }

Property Value

DateTimeOffset?

StartDistanceMeters

Distance from the start of the passage to the start of this leg, in metres.

public double StartDistanceMeters { get; init; }

Property Value

double