Class RouteCheckVerdict
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
The one answer of a route check, and the finding that names it.
public sealed record RouteCheckVerdict : IEquatable<RouteCheckVerdict>
- Inheritance
-
RouteCheckVerdict
- Implements
- Inherited Members
Constructors
RouteCheckVerdict(RouteCheckVerdictKind, RouteFinding?)
The one answer of a route check, and the finding that names it.
public RouteCheckVerdict(RouteCheckVerdictKind Kind, RouteFinding? Headline)
Parameters
KindRouteCheckVerdictKindThe worst thing the checks found.
HeadlineRouteFindingThe finding that names the verdict, or
nullwhen none does: for MustReview, the MUST REVIEW finding with the lowest HeadlineRank (the first in list order among equals); for WaterLevelEndsBeforeArrival, the WaterLevelEnds finding; for Check, the first CHECK finding.
Properties
Headline
The finding that names the verdict, or null when none does: for
MustReview, the MUST REVIEW finding
with the lowest HeadlineRank (the first in
list order among equals); for WaterLevelEndsBeforeArrival,
the WaterLevelEnds finding; for
Check, the first CHECK finding.
public RouteFinding? Headline { get; init; }
Property Value
Kind
The worst thing the checks found.
public RouteCheckVerdictKind Kind { get; init; }
Property Value
Methods
From(IReadOnlyList<RouteFinding>, PassageCheckResult?)
Derives the verdict from sorted findings and the clearance result.
public static RouteCheckVerdict From(IReadOnlyList<RouteFinding> findings, PassageCheckResult? clearance)
Parameters
findingsIReadOnlyList<RouteFinding>Every finding, sorted (Sort(IEnumerable<RouteFinding>)).
clearancePassageCheckResultThe clearance result, or
nullwhen the clearance check didn't run.
Returns
- RouteCheckVerdict
The verdict.