Class PassagePlan
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
A passage to check: its legs in order and, when known, the departure time.
public sealed class PassagePlan
- Inheritance
-
PassagePlan
- Inherited Members
Constructors
PassagePlan(IReadOnlyList<PassageLeg>, DateTimeOffset?)
Creates the plan.
public PassagePlan(IReadOnlyList<PassageLeg> legs, DateTimeOffset? departure = null)
Parameters
legsIReadOnlyList<PassageLeg>The legs in route order. Each leg starts where the previous one ends.
departureDateTimeOffset?The departure time from the first point, or
nullwhen the route has none; the checks then use At.
Properties
Departure
The departure time from the first point, or null when the route has none.
public DateTimeOffset? Departure { get; }
Property Value
Legs
The legs in route order.
public IReadOnlyList<PassageLeg> Legs { get; }
Property Value
Methods
EffectiveDeparture(RouteCheckSettings)
public DateTimeOffset EffectiveDeparture(RouteCheckSettings settings)
Parameters
settingsRouteCheckSettingsThe check settings.
Returns
- DateTimeOffset
The effective departure.
WithDeparture(DateTimeOffset?)
A copy of the plan with a different departure.
public PassagePlan WithDeparture(DateTimeOffset? departure)
Parameters
departureDateTimeOffset?The departure, or
null.
Returns
- PassagePlan
The plan.