Table of Contents

Class S421RoutePlan

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

Strongly-typed projection of an S421Dataset route plan.

public sealed class S421RoutePlan
Inheritance
S421RoutePlan
Inherited Members

Remarks

This type wraps the feature-centric S421Dataset in an object graph organised around the spec's domain concepts: a single S421Route with resolved waypoints, legs, action points, and schedules.

The projection is lossy by design — anything the typed model does not understand is preserved on the source S421Dataset and on the typed objects' ExtraAttributes dictionaries. Projection failures surface as ProjectionDiagnostic entries rather than exceptions, with the sole exception of a missing Route feature.

Properties

DatasetIdentifier

The dataset identifier carried by the source GML Dataset element.

public string? DatasetIdentifier { get; init; }

Property Value

string

ProductIdentifier

The S-421 product identifier (typically "S-421").

public string? ProductIdentifier { get; init; }

Property Value

string

Route

The route described by this dataset.

public required S421Route Route { get; init; }

Property Value

S421Route

Source

The originating feature-bag dataset.

public required S421Dataset Source { get; init; }

Property Value

S421Dataset

Methods

From(S421Dataset, out IReadOnlyList<ProjectionDiagnostic>)

Projects a feature-bag S421Dataset into the typed data model. Issues encountered during projection are reported via diagnostics; the projection itself never throws for malformed input other than a missing Route feature.

public static S421RoutePlan From(S421Dataset dataset, out IReadOnlyList<ProjectionDiagnostic> diagnostics)

Parameters

dataset S421Dataset
diagnostics IReadOnlyList<ProjectionDiagnostic>

Returns

S421RoutePlan

Exceptions

InvalidOperationException

Thrown if the dataset contains no Route feature.