Package org.opentripplanner.routing.algorithm.strategies

Examples of org.opentripplanner.routing.algorithm.strategies.DefaultRemainingWeightHeuristic


      LoggerFactory.getLogger(DefaultRemainingWeightHeuristicFactoryImpl.class);

    @Override
    public RemainingWeightHeuristic getInstanceForSearch(RoutingRequest opt) {
        //LOG.debug("Using Euclidean heuristic independent of search type.");
        return new DefaultRemainingWeightHeuristic();
    }
View Full Code Here


            heuristic = new TrivialRemainingWeightHeuristic();
        } else if (options.modes.isTransit()) {
            // Only use the BiDi heuristic for transit.
            heuristic = new InterleavedBidirectionalHeuristic(options.rctx.graph);
        } else {
            heuristic = new DefaultRemainingWeightHeuristic();
        }
        options.rctx.remainingWeightHeuristic = heuristic;
        /* In RoutingRequest, maxTransfers defaults to 2. Over long distances, we may see
         * itineraries with far more transfers. We do not expect transfer limiting to improve
         * search times on the LongDistancePathService, so we set it to the maximum we ever expect
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.algorithm.strategies.DefaultRemainingWeightHeuristic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.