Class ManyToMany<T>
An algorithm to calculate many-to-many weights/paths.
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 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
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>
|