Class PortrayalAlertReference
A reference from a drawing instruction to an alert in the portrayal
catalogue's alert catalogue (S-100 Part 9 §9-11.2.5), set by the
AlertReference:alertReference[,plan[,monitor]] command of Part 9a
§9a-11.2.2.9: the S-101 NavHazard, ProhAre or
SafetyContour alert a feature raises when a route crosses it.
public sealed record PortrayalAlertReference : IEquatable<PortrayalAlertReference>
- Inheritance
-
PortrayalAlertReference
- Implements
- Inherited Members
Constructors
PortrayalAlertReference(string, int?, int?)
A reference from a drawing instruction to an alert in the portrayal
catalogue's alert catalogue (S-100 Part 9 §9-11.2.5), set by the
AlertReference:alertReference[,plan[,monitor]] command of Part 9a
§9a-11.2.2.9: the S-101 NavHazard, ProhAre or
SafetyContour alert a feature raises when a route crosses it.
public PortrayalAlertReference(string Reference, int? PlanViewingGroup = null, int? MonitorViewingGroup = null)
Parameters
ReferencestringThe alert's id in the alert catalogue, e.g.
ProhAre.PlanViewingGroupint?The viewing group of the alert's highlight in route planning, or null when none is given and the highlight can't be turned off.
MonitorViewingGroupint?The viewing group of the alert's highlight in route monitoring, or null when none is given.
Properties
MonitorViewingGroup
The viewing group of the alert's highlight in route monitoring, or null when none is given.
public int? MonitorViewingGroup { get; init; }
Property Value
- int?
PlanViewingGroup
The viewing group of the alert's highlight in route planning, or null when none is given and the highlight can't be turned off.
public int? PlanViewingGroup { get; init; }
Property Value
- int?
Reference
The alert's id in the alert catalogue, e.g. ProhAre.
public string Reference { get; init; }
Property Value
Methods
Parse(string?)
Parses the value of an AlertReference command.
public static PortrayalAlertReference? Parse(string? value)
Parameters
valuestringThe command's value, e.g.
ProhAre,53023,53023.
Returns
- PortrayalAlertReference
The reference, or null when the value is empty: a bare
AlertReferenceclears the alert for the instructions that follow.