Class RouterDbExtensions
Contains extension methods for the routerdb.
Inheritance
System.Object
RouterDbExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class RouterDbExtensions
Methods
ConvertToSimple(RouterDb, Action<UInt32>)
Runs the algorithm to make sure the loaded graph is a 'simple' graph.
Declaration
public static void ConvertToSimple(this RouterDb db, Action<uint> newVertex = null)
Parameters
|
RouterDb
db
|
|
Action<System.UInt32>
newVertex
|
ConvertToSimple(RouterDb, Action<UInt32>, CancellationToken)
Runs the algorithm to make sure the loaded graph is a 'simple' graph.
Declaration
public static void ConvertToSimple(this RouterDb db, Action<uint> newVertex, CancellationToken cancellationToken)
Parameters
|
RouterDb
db
|
|
Action<System.UInt32>
newVertex
|
|
CancellationToken
cancellationToken
|
OptimizeNetwork(RouterDb, Single)
Optimizes the network by removing irrelevant vertex.
Declaration
public static void OptimizeNetwork(this RouterDb routerDb, float simplifyEpsilonInMeter = 0.1F)
Parameters
|
RouterDb
routerDb
|
|
System.Single
simplifyEpsilonInMeter
|
OptimizeNetwork(RouterDb, Single, CancellationToken)
Optimizes the network by removing irrelevant vertex.
Declaration
public static void OptimizeNetwork(this RouterDb routerDb, float simplifyEpsilonInMeter, CancellationToken cancellationToken)
Parameters
|
RouterDb
routerDb
|
|
System.Single
simplifyEpsilonInMeter
|
|
CancellationToken
cancellationToken
|
RemoveDuplicateEdges(RouterDb, CancellationToken)
Removes duplicate edges.
Declaration
public static void RemoveDuplicateEdges(this RouterDb db, CancellationToken cancellationToken = null)
Parameters
|
RouterDb
db
The routerdb. |
|
CancellationToken
cancellationToken
|
SplitLongEdges(RouterDb, Action<UInt32>)
Runs the max distance splitter algorithm to make edge comply with the max distance setting in the routerdb.
Declaration
public static void SplitLongEdges(this RouterDb db, Action<uint> newVertex = null)
Parameters
|
RouterDb
db
|
|
Action<System.UInt32>
newVertex
|
SplitLongEdges(RouterDb, Action<UInt32>, CancellationToken)
Runs the max distance splitter algorithm to make edge comply with the max distance setting in the routerdb.
Declaration
public static void SplitLongEdges(this RouterDb db, Action<uint> newVertex, CancellationToken cancellationToken)
Parameters
|
RouterDb
db
|
|
Action<System.UInt32>
newVertex
|
|
CancellationToken
cancellationToken
|