Class OneToMany<T>
An algorithm to calculate one-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 OneToMany<T> : AlgorithmBase, IAlgorithm where T : struct
Type Parameters
T
|
Constructors
OneToMany(RouterDb, WeightHandler<T>, RouterPoint, IList<RouterPoint>, T)
Creates a new algorithm.
Declaration
public OneToMany(RouterDb routerDb, WeightHandler<T> weightHandler, RouterPoint source, IList<RouterPoint> targets, T maxSearch)
Parameters
RouterDb
routerDb
|
WeightHandler<T>
weightHandler
|
RouterPoint
source
|
IList<RouterPoint>
targets
|
T
maxSearch
|
Properties
Weights
Gets the 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
GetPath(Int32)
Gets the path to the given target.
Declaration
public EdgePath<T> GetPath(int target)
Parameters
System.Int32
target
|
Returns
EdgePath<T>
|
TryGetPath(Int32, out EdgePath<T>)
Tries to get the path to the given target.
Declaration
public bool TryGetPath(int target, out EdgePath<T> path)
Parameters
System.Int32
target
|
EdgePath<T>
path
|
Returns
System.Boolean
|