Table of Contents

Class S421Route

Namespace
EncDotNet.S100.Datasets.S421.DataModel
Assembly
EncDotNet.S100.Datasets.S421.dll

Strongly-typed projection of an S-421 Route feature plus the related RouteInfo information type. Spec reference: S-421 Annex A "Route" feature (FC).

public sealed class S421Route
Inheritance
S421Route
Inherited Members
Extension Methods

Properties

ActionPoints

Action points referenced by the route, in document order.

public required IReadOnlyList<S421ActionPoint> ActionPoints { get; init; }

Property Value

IReadOnlyList<S421ActionPoint>

EditionNumber

The route edition number (FC code routeEditionNo).

public int? EditionNumber { get; init; }

Property Value

int?

ExtraAttributes

Attributes on the source Route feature that are not recognised by this typed projection. Unknown / extension / future-edition attributes round-trip here verbatim.

public required IReadOnlyDictionary<string, string> ExtraAttributes { get; init; }

Property Value

IReadOnlyDictionary<string, string>

FormatVersion

The S-421 route format version (FC code routeFormatVersion).

public string? FormatVersion { get; init; }

Property Value

string

Id

The gml:id of the source Route feature.

public required string Id { get; init; }

Property Value

string

Info

The resolved S421RouteInfo information type, when present.

public S421RouteInfo? Info { get; init; }

Property Value

S421RouteInfo

Legs

Route legs in geometric order. Each leg corresponds to a RouteWaypointLeg feature; legs are typically resolved via routeWaypointLeg references on waypoints.

public required IReadOnlyList<S421Leg> Legs { get; init; }

Property Value

IReadOnlyList<S421Leg>

RouteId

The author-supplied unique identifier for this route (FC code routeID).

public string? RouteId { get; init; }

Property Value

string

Schedules

Schedules referenced by the route, in document order.

public required IReadOnlyList<S421Schedule> Schedules { get; init; }

Property Value

IReadOnlyList<S421Schedule>

Waypoints

Waypoints in route order, resolved via RouteWaypoints/routeWaypoint xlink:href references.

public required IReadOnlyList<S421Waypoint> Waypoints { get; init; }

Property Value

IReadOnlyList<S421Waypoint>

Methods

GetPlanningSchedule()

The schedule variant a passage reads its speeds and departure from: the first calculated schedule, else the first manual one, else the first schedule's first variant; with its schedule's index in Schedules.

public (int ScheduleIndex, S421ScheduleVariant Variant)? GetPlanningSchedule()

Returns

(int ScheduleIndex, S421ScheduleVariant Variant)?

The variant and its schedule's index, or null when the route has no schedule variants.