Table of Contents

Interface INetworkIdFactory<TNodeId, TEdgeId, TSource>

Namespace
SpatialNET.Network.Building
Assembly
SpatialNET.Network.Building.dll

Gives ids to everything the builder creates, implemented by the host (ADR 0050). Ids that follow from their arguments stay the same between builds, which acknowledged errors and comparisons between nights depend on.

public interface INetworkIdFactory<TNodeId, TEdgeId, TSource> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>

Type Parameters

TNodeId
TEdgeId
TSource

Methods

NewEdge(TSource, int, int)

The id of part part (0 .. partCount - 1) of the line from source.

TEdgeId NewEdge(TSource source, int part, int partCount)

Parameters

source TSource
part int
partCount int

Returns

TEdgeId

NewHelperNode(Coordinate)

The id of a helper node at the location, the mean of the line ends joined there.

TNodeId NewHelperNode(Coordinate location)

Parameters

location Coordinate

Returns

TNodeId