Class NavigationalWarningReference
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
SeriesstringThe series name (e.g.
"NAVAREA X"), ornullwhen not given.NumberintThe warning number within the series and year.
Yearint?The year (four digits, or two when the source gives two), or
nullwhen 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
Number
The warning number within the series and year.
public int Number { get; init; }
Property Value
Series
The series name (e.g. "NAVAREA X"), or null when not given.
public string? Series { get; init; }
Property Value
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
otherNavigationalWarningReferenceThe identifier to compare with.
Returns
- bool
truewhen 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
Returns
- bool
truewhen both are given and equal.