Struct EdgeWeight
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
The value of one weight on an edge, for example ohm per kilometre or a maximum speed (ADR 0049).
public readonly record struct EdgeWeight : IEquatable<EdgeWeight>Implements
Inherited Members
Constructors
EdgeWeight(int, double)
The value of one weight on an edge, for example ohm per kilometre or a maximum speed (ADR 0049).
public EdgeWeight(int WeightId, double Value)Parameters
WeightIdint-
The id of the SpatialNET.Network.WeightDefinition the value belongs to.
Valuedouble-
The value; how it turns into a cost depends on the SpatialNET.Network.WeightKind of the definition.
Properties
Value
The value; how it turns into a cost depends on the SpatialNET.Network.WeightKind of the definition.
public double Value { get; init; }Property Value
WeightId
The id of the SpatialNET.Network.WeightDefinition the value belongs to.
public int WeightId { get; init; }