Class LineAttributes
- Namespace
- SpatialNET.Network.Building
- Assembly
- SpatialNET.Network.Building.dll
The attributes of a line that the builder copies to its edges (ADR 0050).
public sealed record LineAttributes : IEquatable<LineAttributes>Inheritance
Implements
Inherited Members
Constructors
LineAttributes(EdgeDirection, bool, double?, IReadOnlyList<EdgeWeight>?)
The attributes of a line that the builder copies to its edges (ADR 0050).
public LineAttributes(EdgeDirection Direction = EdgeDirection.Both, bool Disabled = false, double? Length = null, IReadOnlyList<EdgeWeight>? Weights = null)Parameters
DirectionEdgeDirection-
The direction relative to the digitizing direction of the line.
Disabledbool-
The normal switching state of the line.
Lengthdouble?-
A surveyed length; split among the parts in proportion to their geometric length.
nullfor the geometric length. WeightsIReadOnlyList<EdgeWeight>?-
The values of weights; copied to every part, values of kind SpatialNET.Network.WeightKind.Absolute split in proportion to length.
Properties
Direction
The direction relative to the digitizing direction of the line.
public EdgeDirection Direction { get; init; }Property Value
Disabled
The normal switching state of the line.
public bool Disabled { get; init; }Property Value
Length
A surveyed length; split among the parts in proportion to their geometric length. null for the geometric length.
public double? Length { get; init; }Property Value
Weights
The values of weights; copied to every part, values of kind SpatialNET.Network.WeightKind.Absolute split in proportion to length.
public IReadOnlyList<EdgeWeight>? Weights { get; init; }