Class FastRouteBuilder
An algorithm to build a route from a path.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class FastRouteBuilder : AlgorithmBase, IAlgorithm
Constructors
FastRouteBuilder(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, List<UInt32>)
Creates a router builder.
Declaration
public FastRouteBuilder(RouterDb routerDb, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, List<uint> path)
Parameters
RouterDb
routerDb
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
List<System.UInt32>
path
|
Properties
Route
Methods
Build(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, EdgePath<Single>)
Builds a route.
Declaration
public static Route Build(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath<float> path)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
EdgePath<System.Single>
path
|
Returns
Route
|
Build(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, EdgePath<Single>, CancellationToken)
Builds a route.
Declaration
public static Route Build(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath<float> path, CancellationToken cancellationToken)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
EdgePath<System.Single>
path
|
CancellationToken
cancellationToken
|
Returns
Route
|
Build(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, List<UInt32>)
Builds a route.
Declaration
public static Route Build(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, List<uint> path)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
List<System.UInt32>
path
|
Returns
Route
|
Build(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, List<UInt32>, CancellationToken)
Builds a route.
Declaration
public static Route Build(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, List<uint> path, CancellationToken cancellationToken)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
List<System.UInt32>
path
|
CancellationToken
cancellationToken
|
Returns
Route
|
DoRun(CancellationToken)
Executes the actual run of the algorithm.
Declaration
protected override void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken
cancellationToken
|
Overrides
TryBuild(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, EdgePath<Single>)
Builds a route.
Declaration
public static Result<Route> TryBuild(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath<float> path)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
EdgePath<System.Single>
path
|
Returns
Result<Route>
|
TryBuild(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, EdgePath<Single>, CancellationToken)
Builds a route.
Declaration
public static Result<Route> TryBuild(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath<float> path, CancellationToken cancellationToken)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
EdgePath<System.Single>
path
|
CancellationToken
cancellationToken
|
Returns
Result<Route>
|
TryBuild(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, List<UInt32>)
Builds a route.
Declaration
public static Result<Route> TryBuild(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, List<uint> path)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
List<System.UInt32>
path
|
Returns
Result<Route>
|
TryBuild(RouterDb, Profile, Func<UInt16, Factor>, RouterPoint, RouterPoint, List<UInt32>, CancellationToken)
Builds a route.
Declaration
public static Result<Route> TryBuild(RouterDb db, Profile profile, Func<ushort, Factor> getFactor, RouterPoint source, RouterPoint target, List<uint> path, CancellationToken cancellationToken)
Parameters
RouterDb
db
|
Profile
profile
|
Func<System.UInt16, Factor>
getFactor
|
RouterPoint
source
|
RouterPoint
target
|
List<System.UInt32>
path
|
CancellationToken
cancellationToken
|
Returns
Result<Route>
|