Show / Hide Table of Contents

Class ManyToMany<T>

An algorithm to calculate many-to-many weights/paths.

Inheritance
System.Object
AlgorithmBase
ManyToMany<T>
ManyToMany
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 class ManyToMany<T> : AlgorithmBase, IAlgorithm where T : struct
Type Parameters
T

Constructors

ManyToMany(RouterDb, WeightHandler<T>, RouterPoint[], RouterPoint[], T)

Creates a new algorithm.

Declaration
public ManyToMany(RouterDb routerDb, WeightHandler<T> weightHandler, RouterPoint[] sources, RouterPoint[] targets, T maxSearch)
Parameters
RouterDb routerDb

WeightHandler<T> weightHandler

RouterPoint[] sources

RouterPoint[] targets

T maxSearch

Properties

Weights

Gets all weights.

Declaration
public T[][] Weights { get; }
Property Value
T[][]

Methods

DoRun(CancellationToken)

Executes the actual run of the algorithm.

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

Overrides
AlgorithmBase.DoRun(CancellationToken)

GetBestWeight(Int32, Int32)

Gets the best weight for the source/target at the given index.

Declaration
public T GetBestWeight(int source, int target)
Parameters
System.Int32 source

System.Int32 target

Returns
T

GetPath(Int32, Int32)

Gets the path from source to target.

Declaration
public EdgePath<T> GetPath(int source, int target)
Parameters
System.Int32 source

System.Int32 target

Returns
EdgePath<T>

TryGetPath(Int32, Int32, out EdgePath<T>)

Tries to get the path from source to target.

Declaration
public bool TryGetPath(int source, int target, out EdgePath<T> path)
Parameters
System.Int32 source

System.Int32 target

EdgePath<T> path

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.