Class PassageCheckResult
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
The result of a passage check.
public sealed record PassageCheckResult : IEquatable<PassageCheckResult>
- Inheritance
-
PassageCheckResult
- Implements
- Inherited Members
Constructors
PassageCheckResult(DateTimeOffset, DateTimeOffset?, PassageVerdict, bool, UkcMinimum?, double, int, IReadOnlyList<UkcSample>, IReadOnlyList<LegUkcResult>, IReadOnlyList<PassageStretch>, IReadOnlyList<PassageStretch>, PassageSources, ConfidenceReasons)
The result of a passage check.
public PassageCheckResult(DateTimeOffset Departure, DateTimeOffset? Arrival, PassageVerdict Verdict, bool NoMarginSet, UkcMinimum? Minimum, double MinutesBelow, int PlacesBelow, IReadOnlyList<UkcSample> Samples, IReadOnlyList<LegUkcResult> Legs, IReadOnlyList<PassageStretch> Gaps, IReadOnlyList<PassageStretch> LowConfidence, PassageSources Sources, ConfidenceReasons Confidence = ConfidenceReasons.None)
Parameters
DepartureDateTimeOffsetThe departure time.
ArrivalDateTimeOffset?The arrival time, or
nullwhen any leg has no speed.VerdictPassageVerdictThe headline answer.
NoMarginSetbooltruewhen any leg has no required UKC, so it was checked against 0 m.MinimumUkcMinimumThe smallest margin over the required UKC, or
nullwhen no sample has a clearance.MinutesBelowdoubleTime spent below the setting, in minutes (0 without ETAs).
PlacesBelowintNumber of separate stretches below the setting.
SamplesIReadOnlyList<UkcSample>Every sample in passage order.
LegsIReadOnlyList<LegUkcResult>Per-leg results in route order.
GapsIReadOnlyList<PassageStretch>Stretches with no data, or where the datums don't match.
LowConfidenceIReadOnlyList<PassageStretch>Stretches charted from S-101, or where the datums can't be confirmed.
SourcesPassageSourcesThe datasets and datums behind the result.
ConfidenceConfidenceReasonsThe low-confidence reasons of every sample, combined.
Properties
Arrival
The arrival time, or null when any leg has no speed.
public DateTimeOffset? Arrival { get; init; }
Property Value
Confidence
The low-confidence reasons of every sample, combined.
public ConfidenceReasons Confidence { get; init; }
Property Value
Departure
The departure time.
public DateTimeOffset Departure { get; init; }
Property Value
Gaps
Stretches with no data, or where the datums don't match.
public IReadOnlyList<PassageStretch> Gaps { get; init; }
Property Value
Legs
Per-leg results in route order.
public IReadOnlyList<LegUkcResult> Legs { get; init; }
Property Value
LowConfidence
Stretches charted from S-101, or where the datums can't be confirmed.
public IReadOnlyList<PassageStretch> LowConfidence { get; init; }
Property Value
Minimum
The smallest margin over the required UKC, or null when no sample has a clearance.
public UkcMinimum? Minimum { get; init; }
Property Value
MinutesBelow
Time spent below the setting, in minutes (0 without ETAs).
public double MinutesBelow { get; init; }
Property Value
NoMarginSet
true when any leg has no required UKC, so it was checked against 0 m.
public bool NoMarginSet { get; init; }
Property Value
PlacesBelow
Number of separate stretches below the setting.
public int PlacesBelow { get; init; }
Property Value
Samples
Every sample in passage order.
public IReadOnlyList<UkcSample> Samples { get; init; }
Property Value
Sources
The datasets and datums behind the result.
public PassageSources Sources { get; init; }
Property Value
Verdict
The headline answer.
public PassageVerdict Verdict { get; init; }