Class UkcSample
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
One sample along the passage.
public sealed record UkcSample : IEquatable<UkcSample>
- Inheritance
-
UkcSample
- Implements
- Inherited Members
Constructors
UkcSample(int, int, GeoPosition, double, double, double, DateTimeOffset, bool, ChartedDepth?, UkcWaterLevel, double, double, double, double?, ClearanceBand?, UkcState, ConfidenceReasons)
One sample along the passage.
public UkcSample(int Index, int LegIndex, GeoPosition Position, double DistanceMeters, double StartDistanceMeters, double EndDistanceMeters, DateTimeOffset Time, bool HasEta, ChartedDepth? Depth, UkcWaterLevel WaterLevel, double DraftMeters, double SquatMeters, double RequiredUkcMeters, double? ClearanceMeters, ClearanceBand? Band, UkcState State, ConfidenceReasons Confidence = ConfidenceReasons.None)
Parameters
IndexintIndex of the sample in Samples.
LegIndexintIndex of the leg the sample is on.
PositionGeoPositionWhere the sample's charted depth was read: the shoalest point in its stretch.
DistanceMetersdoubleDistance from the start of the passage to
Position.StartDistanceMetersdoubleDistance from the start of the passage to the start of the stretch this sample stands for.
EndDistanceMetersdoubleDistance from the start of the passage to the end of the stretch this sample stands for.
TimeDateTimeOffsetThe ETA at the sample, or the departure time when ETAs are unknown.
HasEtabooltruewhenTimeis a real ETA;falsewhen the leg has no speed.DepthChartedDepthThe charted depth, or
nullwhen no source covers the sample.WaterLevelUkcWaterLevelThe water level and whether it was applied.
DraftMetersdoubleThe draft on the sample's leg.
SquatMetersdoubleThe squat allowance on the sample's leg.
RequiredUkcMetersdoubleThe required UKC on the sample's leg (0 when unset).
ClearanceMetersdouble?UKC = charted depth + water level − draft − squat, or
nullwhen either the depth or an applicable water level is missing.BandClearanceBand?How the clearance compares with the required UKC, or
nullwithout a clearance.StateUkcStateThe sample's state.
ConfidenceConfidenceReasonsWhy the sample is lower confidence, or None. Independent of
State: a no-data sample can carry ChartedDepthFromS101 too.
Properties
Band
How the clearance compares with the required UKC, or null without a clearance.
public ClearanceBand? Band { get; init; }
Property Value
ClearanceMeters
UKC = charted depth + water level − draft − squat, or null when
either the depth or an applicable water level is missing.
public double? ClearanceMeters { get; init; }
Property Value
Confidence
Why the sample is lower confidence, or None.
Independent of State: a no-data sample can carry
ChartedDepthFromS101 too.
public ConfidenceReasons Confidence { get; init; }
Property Value
Depth
The charted depth, or null when no source covers the sample.
public ChartedDepth? Depth { get; init; }
Property Value
DistanceMeters
Distance from the start of the passage to Position.
public double DistanceMeters { get; init; }
Property Value
DraftMeters
The draft on the sample's leg.
public double DraftMeters { get; init; }
Property Value
EndDistanceMeters
Distance from the start of the passage to the end of the stretch this sample stands for.
public double EndDistanceMeters { get; init; }
Property Value
HasEta
true when Time is a real ETA; false when the leg has no speed.
public bool HasEta { get; init; }
Property Value
Index
Index of the sample in Samples.
public int Index { get; init; }
Property Value
IsLowConfidence
true when Confidence has any reason.
public bool IsLowConfidence { get; }
Property Value
LegIndex
Index of the leg the sample is on.
public int LegIndex { get; init; }
Property Value
Position
Where the sample's charted depth was read: the shoalest point in its stretch.
public GeoPosition Position { get; init; }
Property Value
RequiredUkcMeters
The required UKC on the sample's leg (0 when unset).
public double RequiredUkcMeters { get; init; }
Property Value
SquatMeters
The squat allowance on the sample's leg.
public double SquatMeters { get; init; }
Property Value
StartDistanceMeters
Distance from the start of the passage to the start of the stretch this sample stands for.
public double StartDistanceMeters { get; init; }
Property Value
State
The sample's state.
public UkcState State { get; init; }
Property Value
Time
The ETA at the sample, or the departure time when ETAs are unknown.
public DateTimeOffset Time { get; init; }
Property Value
WaterLevel
The water level and whether it was applied.
public UkcWaterLevel WaterLevel { get; init; }