Show / Hide Table of Contents

Class FastRouteBuilder

An algorithm to build a route from a path.

Inheritance
System.Object
AlgorithmBase
FastRouteBuilder
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 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

Gets the route.

Declaration
public Route Route { get; }
Property Value
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
AlgorithmBase.DoRun(CancellationToken)

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>

Back to top Built by Itinero, MIT licensed.