Class NavigationalWarningInfo
The message of a navigational warning part, projected for object
information UIs: identification, type, validity, area and the full text in
every language the dataset gives (S-124 NavwarnPart read through its
NavwarnPreamble header).
public sealed record NavigationalWarningInfo : IEquatable<NavigationalWarningInfo>
- Inheritance
-
NavigationalWarningInfo
- Implements
- Inherited Members
Remarks
A UI shows this as one card, not as attribute rows. The text is the point of picking a warning, and a SECURITE message runs to 10–20 lines.
Properties
AffectedAreas
The areas the part affects beyond its own geometry (S-124
NavwarnAreaAffected, through areaAffected), in WGS-84.
Empty when it names none.
public IReadOnlyList<S100FeatureGeometry> AffectedAreas { get; init; }
Property Value
CancellationDate
When the warning cancels itself, or null when it stays in force until cancelled.
public DateTimeOffset? CancellationDate { get; init; }
Property Value
Cancels
The warnings this one cancels (S-124 References with
referenceCategory 1), in document order. Empty when it cancels none.
public IReadOnlyList<NavigationalWarningReference> Cancels { get; init; }
Property Value
GeneralArea
The general area (e.g. "Coral Sea"), when given.
public string? GeneralArea { get; init; }
Property Value
GeneralType
The general warning type (S-124 navwarnTypeGeneral), when given.
public string? GeneralType { get; init; }
Property Value
HasLocation
Whether the part has geometry, so the map draws it.
public bool HasLocation { get; init; }
Property Value
InForceBulletin
What the warning lists as in force when it is an in-force bulletin
(S-124: a References of referenceCategory 3), or
null for any other warning.
NavigationalWarningSet uses it to end warnings the latest
bulletin leaves out (§9.2.1).
public NavigationalWarningBulletin? InForceBulletin { get; init; }
Property Value
Issuer
The authority or agency that issued the warning, when given.
public string? Issuer { get; init; }
Property Value
Label
The series and number (e.g. "NAVAREA X 106/26"), or
null when the preamble gives no number.
public string? Label { get; }
Property Value
Locality
The locality within the general area, when given.
public string? Locality { get; init; }
Property Value
Number
The warning number and two-digit year as mariners write it
(e.g. "106/26"), or null when the preamble gives no number.
public string? Number { get; init; }
Property Value
PublicationTime
When the warning was published, when given.
public DateTimeOffset? PublicationTime { get; init; }
Property Value
Reference
The warning's identifier in its series, or null when the
preamble gives no number; what another warning's cancellation names.
public NavigationalWarningReference? Reference { get; init; }
Property Value
Series
The series name (e.g. "NAVAREA X", "AUSCOAST"), when given.
public string? Series { get; init; }
Property Value
Texts
The message text, one entry per language in document order. Empty when the part has none.
public IReadOnlyList<NavigationalWarningText> Texts { get; init; }
Property Value
Title
The warning's title, when given.
public string? Title { get; init; }
Property Value
Validity
When the part applies, in document order. Empty when the part gives no range.
public IReadOnlyList<NavigationalWarningValidity> Validity { get; init; }
Property Value
WarningType
The detailed warning type (S-124 navwarnTypeDetails, e.g. "Cable Operations"), when given.
public string? WarningType { get; init; }
Property Value
Methods
StatusAt(DateTimeOffset)
Whether the warning applies at time, judged on this
warning alone. A warning is
ended once its cancellation date has passed or every validity range has
ended, and not yet in force while it waits for a range to start. With
no validity range it is in force until cancelled.
public NavigationalWarningStatus StatusAt(DateTimeOffset time)
Parameters
timeDateTimeOffsetThe time to test, usually the view time.
Returns
- NavigationalWarningStatus
The warning's status at that time.
Remarks
Cancellation datasets and in-force bulletins end a warning too; they are other warnings, so StatusAt(NavigationalWarningInfo, DateTimeOffset) applies them. The rule itself is StatusAt(IReadOnlyList<NavigationalWarningValidity>, DateTimeOffset?, DateTimeOffset), which CAP weather warnings share.