Show / Hide Table of Contents

Class RouterExtensions

Optimization convenience extension methods for the router class.

Inheritance
System.Object
RouterExtensions
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 static class RouterExtensions

Methods

CalculateDirected(RouterBase, Profile, Coordinate[], Single, Tour)

Calculates a directed sequence of the given sequence of locations.

Declaration
public static Route CalculateDirected(this RouterBase router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, Tour sequence)
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

Tour sequence

Returns
Route

CalculateSTSP(RouterBase, Profile, Coordinate[], Single, Int32, Nullable<Int32>)

Calculates STSP.

Declaration
public static Route CalculateSTSP(this RouterBase router, Profile profile, Coordinate[] locations, float max, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Single max

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

CalculateSTSPDirected(Router, Profile, Coordinate[], Single, Single, Int32, Nullable<Int32>)

Calculates STSP.

Declaration
public static Route CalculateSTSPDirected(this Router router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, float max, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

System.Single max

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

CalculateTSP(RouterBase, Profile, Coordinate[], Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Route CalculateTSP(this RouterBase router, Profile profile, Coordinate[] locations, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

CalculateTSPDirected(Router, Profile, Coordinate[], Single, Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Route CalculateTSPDirected(this Router router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

CalculateTSPTW(RouterBase, Profile, Coordinate[], TimeWindow[], Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Route CalculateTSPTW(this RouterBase router, Profile profile, Coordinate[] locations, TimeWindow[] windows, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

TimeWindow[] windows

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

CalculateTSPTWDirected(Router, Profile, Coordinate[], TimeWindow[], Single, Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Route CalculateTSPTWDirected(this Router router, Profile profile, Coordinate[] locations, TimeWindow[] windows, float turnPenaltyInSeconds, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

TimeWindow[] windows

System.Single turnPenaltyInSeconds

System.Int32 first

System.Nullable<System.Int32> last

Returns
Route

TryCalculateDirected(RouterBase, Profile, Coordinate[], Single, Tour)

Calculates a directed sequence of the given sequence of locations.

Declaration
public static Result<Route> TryCalculateDirected(this RouterBase router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, Tour sequence)
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

Tour sequence

Returns
Result<Route>

TryCalculateSTSP(RouterBase, Profile, Coordinate[], Single, Int32, Nullable<Int32>)

Calculates STSP.

Declaration
public static Result<Route> TryCalculateSTSP(this RouterBase router, Profile profile, Coordinate[] locations, float max, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Single max

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

TryCalculateSTSPDirected(Router, Profile, Coordinate[], Single, Single, Int32, Nullable<Int32>)

Calculates STSP.

Declaration
public static Result<Route> TryCalculateSTSPDirected(this Router router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, float max, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

System.Single max

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

TryCalculateTSP(RouterBase, Profile, Coordinate[], Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Result<Route> TryCalculateTSP(this RouterBase router, Profile profile, Coordinate[] locations, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

TryCalculateTSPDirected(Router, Profile, Coordinate[], Single, Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Result<Route> TryCalculateTSPDirected(this Router router, Profile profile, Coordinate[] locations, float turnPenaltyInSeconds, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

System.Single turnPenaltyInSeconds

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

TryCalculateTSPTW(RouterBase, Profile, Coordinate[], TimeWindow[], Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Result<Route> TryCalculateTSPTW(this RouterBase router, Profile profile, Coordinate[] locations, TimeWindow[] windows, int first = 0, int ? last = default (int ? ))
Parameters
RouterBase router

Profile profile

Coordinate[] locations

TimeWindow[] windows

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

TryCalculateTSPTWDirected(Router, Profile, Coordinate[], TimeWindow[], Single, Int32, Nullable<Int32>)

Calculates TSP.

Declaration
public static Result<Route> TryCalculateTSPTWDirected(this Router router, Profile profile, Coordinate[] locations, TimeWindow[] windows, float turnPenaltyInSeconds, int first = 0, int ? last = default (int ? ))
Parameters
Router router

Profile profile

Coordinate[] locations

TimeWindow[] windows

System.Single turnPenaltyInSeconds

System.Int32 first

System.Nullable<System.Int32> last

Returns
Result<Route>

Back to top Built by Itinero, MIT licensed.