Table of Contents

Class NavigationalWarningReference

Namespace
EncDotNet.S100.Datasets.Pipelines
Assembly
EncDotNet.S100.Core.dll

A navigational warning's identifier in its series: the series name, the warning number and the year, as a cancellation refers to it.

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

Constructors

NavigationalWarningReference(string?, int, int?)

A navigational warning's identifier in its series: the series name, the warning number and the year, as a cancellation refers to it.

public NavigationalWarningReference(string? Series, int Number, int? Year)

Parameters

Series string

The series name (e.g. "NAVAREA X"), or null when not given.

Number int

The warning number within the series and year.

Year int?

The year (four digits, or two when the source gives two), or null when not given.

Properties

InteroperabilityIdentifier

The warning's interoperability identifier (S-124 Edition 2.0.0 interoperabilityIdentifier, e.g. "urn:mrn:…"), when given.

public string? InteroperabilityIdentifier { get; init; }

Property Value

string

Number

The warning number within the series and year.

public int Number { get; init; }

Property Value

int

Series

The series name (e.g. "NAVAREA X"), or null when not given.

public string? Series { get; init; }

Property Value

string

Year

The year (four digits, or two when the source gives two), or null when not given.

public int? Year { get; init; }

Property Value

int?

Methods

Matches(NavigationalWarningReference)

Whether this reference names other: the same interoperability identifier when both give one, else the same number, the same year (compared by its last two digits) when both give one, and the same series, ignoring case and spacing, when both give one.

public bool Matches(NavigationalWarningReference other)

Parameters

other NavigationalWarningReference

The identifier to compare with.

Returns

bool

true when they name the same warning.

SameSeries(string?, string?)

Whether two series names are the same, ignoring case and spacing.

public static bool SameSeries(string? a, string? b)

Parameters

a string

One series name.

b string

The other.

Returns

bool

true when both are given and equal.