Class MassResolvingAlgorithm
A mass-resolving algorithm.
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 sealed class MassResolvingAlgorithm : AlgorithmBase, IMassResolvingAlgorithm, IAlgorithm
Constructors
MassResolvingAlgorithm(RouterBase, IProfileInstance[], Coordinate[], Func<RoutingEdge, Int32, Boolean>, Single)
Creates a new mass-resolving algorithm.
Declaration
public MassResolvingAlgorithm(RouterBase router, IProfileInstance[] profiles, Coordinate[] locations, Func<RoutingEdge, int, bool> matchEdge = null, float maxSearchDistance = 50F)
Parameters
RouterBase
router
|
IProfileInstance[]
profiles
|
Coordinate[]
locations
|
Func<RoutingEdge, System.Int32, System.Boolean>
matchEdge
|
System.Single
maxSearchDistance
|
MassResolvingAlgorithm(RouterBase, IProfileInstance[], IEnumerable<RouterPoint>)
Creates a new mass-resolving algorithm with pre-resolved locations.
Declaration
public MassResolvingAlgorithm(RouterBase router, IProfileInstance[] profiles, IEnumerable<RouterPoint> routerPoints)
Parameters
RouterBase
router
|
IProfileInstance[]
profiles
|
IEnumerable<RouterPoint>
routerPoints
|
Properties
Errors
Returns the errors indexed per location idx.
Declaration
public Dictionary<int, LocationError> Errors { get; }
Property Value
Dictionary<System.Int32, LocationError>
|
Implements
Locations
Gets the original locations.
Declaration
public Coordinate[] Locations { get; }
Property Value
Coordinate[]
|
Implements
Profiles
Gets the profiles.
Declaration
public IProfileInstance[] Profiles { get; }
Property Value
IProfileInstance[]
|
Implements
Router
RouterPoints
Gets the valid router points.
Declaration
public List<RouterPoint> RouterPoints { get; }
Property Value
List<RouterPoint>
|
Implements
Methods
DoRun(CancellationToken)
Executes the actual algorithm.
Declaration
protected override void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken
cancellationToken
|
Overrides
LocationIndexOf(Int32)
Returns the index of the location in the original locations array, given the resolved point index..
Declaration
public int LocationIndexOf(int routerPointIdx)
Parameters
System.Int32
routerPointIdx
|
Returns
System.Int32
|
Implements
ResolvedIndexOf(Int32)
Returns the index of the resolved point, given the original index of in the locations array.
Declaration
public int ResolvedIndexOf(int locationIdx)
Parameters
System.Int32
locationIdx
|
Returns
System.Int32
|