Class ResolveAlgorithm
An algorithm to search for a good location on a routing network to start routing for a given location.
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 class ResolveAlgorithm : AlgorithmBase, IResolver, IAlgorithm
Constructors
ResolveAlgorithm(GeometricGraph, Single, Single, Single, Single, Func<GeometricEdge, Boolean>)
Creates a new resolve algorithm.
Declaration
public ResolveAlgorithm(GeometricGraph graph, float latitude, float longitude, float maxOffset, float maxDistance, Func<GeometricEdge, bool> isAcceptable)
Parameters
GeometricGraph
graph
|
System.Single
latitude
|
System.Single
longitude
|
System.Single
maxOffset
|
System.Single
maxDistance
|
Func<GeometricEdge, System.Boolean>
isAcceptable
|
ResolveAlgorithm(GeometricGraph, Single, Single, Single, Single, Func<GeometricEdge, Boolean>, Func<GeometricEdge, Boolean>)
Creates a new resolve algorithm.
Declaration
public ResolveAlgorithm(GeometricGraph graph, float latitude, float longitude, float maxOffsetInMeter, float maxDistance, Func<GeometricEdge, bool> isAcceptable, Func<GeometricEdge, bool> isBetter)
Parameters
GeometricGraph
graph
|
System.Single
latitude
|
System.Single
longitude
|
System.Single
maxOffsetInMeter
|
System.Single
maxDistance
|
Func<GeometricEdge, System.Boolean>
isAcceptable
|
Func<GeometricEdge, System.Boolean>
isBetter
|
Fields
BetterEdgeFactor
Factor to compare better edge distance to acceptable edge distance and decide which edge to take.
Declaration
public static float BetterEdgeFactor
Field Value
System.Single
|
BetterEdgeThreshold
Threshold below which to always accept the better edges.
Declaration
public static int BetterEdgeThreshold
Field Value
System.Int32
|
Properties
Result
Gets the resulting router point.
Declaration
public RouterPoint Result { get; }
Property Value
RouterPoint
|
Implements
Methods
DoRun(CancellationToken)
Executes the actual algorithm.
Declaration
protected override void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken
cancellationToken
|