Package org.opentripplanner.api.parameter

Examples of org.opentripplanner.api.parameter.QualifiedModeSetSequence


            this.time = Arrays.asList("11:11:11");
            this.maxWalkDistance = Arrays.asList(1600.0);
            this.walkReluctance = Arrays.asList(8.0);
            this.walkSpeed = Arrays.asList(1.33);
            this.optimize = Arrays.asList(OptimizeType.QUICK);
            this.modes = Arrays.asList(new QualifiedModeSetSequence("WALK,TRANSIT"));
            this.numItineraries = Arrays.asList(1);
            this.transferPenalty = Arrays.asList(0);
            this.nonpreferredTransferPenalty = Arrays.asList(180);
            this.maxTransfers = Arrays.asList(2);
            this.bikeSwitchTime = Arrays.asList(0);
View Full Code Here


            this.otpServer = Context.getInstance().otpServer;
        }

        public TestPlanner(String routerId, String v1, String v2, List<String> intermediates) {
            this(routerId, v1, v2);
            this.modes = Arrays.asList(new QualifiedModeSetSequence("WALK"));
            this.intermediatePlaces = intermediates;
            tsp = new TravelingSalesmanPathService(otpServer.graphService, otpServer.pathService);
        }
View Full Code Here

        new RentABikeOnEdge(stationVertex2, stationVertex2, networks);
        new RentABikeOffEdge(stationVertex2, stationVertex2, networks);

        // now we succeed!
        options = new RoutingRequest();
        new QualifiedModeSetSequence("BICYCLE_RENT,TRANSIT").applyToRequest(options);
        options.setRoutingContext(graph, v1, v3);
        tree = aStar.getShortestPathTree(options);

        path = tree.getPath(v3, false);
        assertNotNull(path);
View Full Code Here

        qmodes.applyToRequest(this);
    }

    public RoutingRequest(String qmodes) {
        this();
        new QualifiedModeSetSequence(qmodes).applyToRequest(this);
    }
View Full Code Here

TOP

Related Classes of org.opentripplanner.api.parameter.QualifiedModeSetSequence

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.