Class S421RoutePlan
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
ProductIdentifier
The S-421 product identifier (typically "S-421").
public string? ProductIdentifier { get; init; }
Property Value
Route
The route described by this dataset.
public required S421Route Route { get; init; }
Property Value
Source
The originating feature-bag dataset.
public required S421Dataset Source { get; init; }
Property Value
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
datasetS421DatasetdiagnosticsIReadOnlyList<ProjectionDiagnostic>
Returns
Exceptions
- InvalidOperationException
Thrown if the dataset contains no
Routefeature.