Table of Contents

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

WeightId int

The id of the SpatialNET.Network.WeightDefinition the value belongs to.

Value double

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

double

WeightId

The id of the SpatialNET.Network.WeightDefinition the value belongs to.

public int WeightId { get; init; }

Property Value

int