Table of Contents

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

Kind RouteCheckVerdictKind

The worst thing the checks found.

Headline RouteFinding

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.

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

RouteFinding

Kind

The worst thing the checks found.

public RouteCheckVerdictKind Kind { get; init; }

Property Value

RouteCheckVerdictKind

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

findings IReadOnlyList<RouteFinding>

Every finding, sorted (Sort(IEnumerable<RouteFinding>)).

clearance PassageCheckResult

The clearance result, or null when the clearance check didn't run.

Returns

RouteCheckVerdict

The verdict.