Exemple #1
0
        /// <summary>
        /// Builds a route.
        /// </summary>
        public static Result <Route> TryBuild(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath <float> path)
        {
            var pathList = new List <uint>();

            path.AddToListAsVertices(pathList);
            return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, pathList));
        }
Exemple #2
0
 /// <summary>
 /// Builds a route.
 /// </summary>
 public static Route Build(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, List <uint> path)
 {
     return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path).Value);
 }
Exemple #3
0
 /// <summary>
 /// Builds a route.
 /// </summary>
 public static Result <Route> TryBuild(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor,
                                       RouterPoint source, RouterPoint target, List <uint> path)
 {
     return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path, CancellationToken.None));
 }
Exemple #4
0
 /// <summary>
 /// Builds a route.
 /// </summary>
 public static Route Build(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath <float> path,
                           CancellationToken cancellationToken)
 {
     return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path, cancellationToken).Value);
 }