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
TNodeIdTEdgeIdTSource
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
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
locationCoordinate
Returns
- TNodeId