Table of Contents

Class PassageStretch

Namespace
EncDotNet.S100.Navigation
Assembly
EncDotNet.S100.Navigation.dll

A run of consecutive samples that share a gap or a low-confidence reason.

public sealed record PassageStretch : IEquatable<PassageStretch>
Inheritance
PassageStretch
Implements
Inherited Members

Constructors

PassageStretch(PassageStretchKind, int, int, int, int, double, double, DateTimeOffset, DateTimeOffset)

A run of consecutive samples that share a gap or a low-confidence reason.

public PassageStretch(PassageStretchKind Kind, int FirstSample, int LastSample, int FirstLeg, int LastLeg, double StartDistanceMeters, double EndDistanceMeters, DateTimeOffset StartTime, DateTimeOffset EndTime)

Parameters

Kind PassageStretchKind

What the stretch is.

FirstSample int

Index of the first sample in the stretch.

LastSample int

Index of the last sample in the stretch.

FirstLeg int

Index of the leg the stretch starts on.

LastLeg int

Index of the leg the stretch ends on.

StartDistanceMeters double

Distance from the start of the passage to the start of the stretch.

EndDistanceMeters double

Distance from the start of the passage to the end of the stretch.

StartTime DateTimeOffset

The time at the first sample.

EndTime DateTimeOffset

The time at the last sample.

Properties

EndDistanceMeters

Distance from the start of the passage to the end of the stretch.

public double EndDistanceMeters { get; init; }

Property Value

double

EndTime

The time at the last sample.

public DateTimeOffset EndTime { get; init; }

Property Value

DateTimeOffset

FirstLeg

Index of the leg the stretch starts on.

public int FirstLeg { get; init; }

Property Value

int

FirstSample

Index of the first sample in the stretch.

public int FirstSample { get; init; }

Property Value

int

Kind

What the stretch is.

public PassageStretchKind Kind { get; init; }

Property Value

PassageStretchKind

LastLeg

Index of the leg the stretch ends on.

public int LastLeg { get; init; }

Property Value

int

LastSample

Index of the last sample in the stretch.

public int LastSample { get; init; }

Property Value

int

LengthMeters

Length of the stretch in metres.

public double LengthMeters { get; }

Property Value

double

StartDistanceMeters

Distance from the start of the passage to the start of the stretch.

public double StartDistanceMeters { get; init; }

Property Value

double

StartTime

The time at the first sample.

public DateTimeOffset StartTime { get; init; }

Property Value

DateTimeOffset