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(Router, WeightHandler<T>, Func<UInt32, IEnumerable<UInt32[]>>, RouterPoint[], RouterPoint[], T)

Creates a new algorithm.

Declaration
public ManyToMany(Router router, WeightHandler<T> weightHandler, Func<uint, IEnumerable<uint[]>> getRestrictions, RouterPoint[] sources, RouterPoint[] targets, T maxSearch)
Parameters
Router router

WeightHandler<T> weightHandler

Func<System.UInt32, IEnumerable<System.UInt32[]>> getRestrictions

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>

Back to top Built by Itinero, MIT licensed.