Class RouteCheckContext
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
What every check of one Check(PassagePlan, RouteCheckSettings, CancellationToken) run reads: the plan, settings, sources and options, and the track and schedule built once for all of them.
public sealed class RouteCheckContext
- Inheritance
-
RouteCheckContext
- Inherited Members
Constructors
RouteCheckContext(PassagePlan, RouteCheckSettings, RouteCheckSources, RouteCheckOptions?)
Builds the context for one run, with its track and schedule.
public RouteCheckContext(PassagePlan plan, RouteCheckSettings settings, RouteCheckSources sources, RouteCheckOptions? options = null)
Parameters
planPassagePlanThe plan to check.
settingsRouteCheckSettingsThe settings for this run.
sourcesRouteCheckSourcesThe loaded data.
optionsRouteCheckOptionsTuning, or
nullfor Default.
Exceptions
- ArgumentException
A leg has fewer than two points, or a negative or non-finite speed.
Properties
Options
The tuning.
public RouteCheckOptions Options { get; }
Property Value
Plan
The plan to check.
public PassagePlan Plan { get; }
Property Value
Schedule
The plan's ETAs. Where a leg has none, the time is the plan's departure, or At without one.
public PassageSchedule Schedule { get; }
Property Value
Settings
The settings for this run.
public RouteCheckSettings Settings { get; }
Property Value
Sources
The loaded data.
public RouteCheckSources Sources { get; }
Property Value
Track
The plan's track, shared by every check.
public RouteTrack Track { get; }