Package org.opentripplanner.routing.algorithm.strategies

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


        targets.add(_graph.getVertex("shilshole_22nd"));
        targets.add(_graph.getVertex("market_russell"));
        targets.add(_graph.getVertex("56th_20th"));
        targets.add(_graph.getVertex("leary_20th"));

        SearchTerminationStrategy strategy = new MultiTargetTerminationStrategy(targets);
        ShortestPathTree tree = new GenericAStar().getShortestPathTree(options, -1, strategy);

        for (Vertex v : targets) {
            GraphPath path = tree.getPath(v, false);
            assertNotNull("No path found for target " + v.getLabel(), path);
View Full Code Here

TOP

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

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.