Show / Hide Table of Contents

Class MassResolvingAlgorithm

A mass-resolving algorithm.

Inheritance
System.Object
AlgorithmBase
MassResolvingAlgorithm
Inherited Members
AlgorithmBase.HasRun
AlgorithmBase.HasSucceeded
AlgorithmBase.ErrorMessage
AlgorithmBase.CheckHasRun()
AlgorithmBase.CheckHasRunAndHasSucceeded()
AlgorithmBase.Run()
AlgorithmBase.Run(CancellationToken)
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
IMassResolvingAlgorithm.Errors

Locations

Gets the original locations.

Declaration
public Coordinate[] Locations { get; }
Property Value
Coordinate[]

Implements
IMassResolvingAlgorithm.Locations

Profiles

Gets the profiles.

Declaration
public IProfileInstance[] Profiles { get; }
Property Value
IProfileInstance[]

Implements
IMassResolvingAlgorithm.Profiles

Router

Gets the router.

Declaration
public RouterBase Router { get; }
Property Value
RouterBase

Implements
IMassResolvingAlgorithm.Router

RouterPoints

Gets the valid router points.

Declaration
public List<RouterPoint> RouterPoints { get; }
Property Value
List<RouterPoint>

Implements
IMassResolvingAlgorithm.RouterPoints

Methods

DoRun(CancellationToken)

Executes the actual algorithm.

Declaration
protected override void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken cancellationToken

Overrides
AlgorithmBase.DoRun(CancellationToken)

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
IMassResolvingAlgorithm.LocationIndexOf(Int32)

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

Implements
IMassResolvingAlgorithm.ResolvedIndexOf(Int32)
Back to top Built by Itinero, MIT licensed.