Package org.opentripplanner.standalone

Examples of org.opentripplanner.standalone.CommandLineParameters


        }

          
        // set up the build, using default parameters
        // this is basically simulating calling otp -b on the command line
        CommandLineParameters params = server.params.clone();
        params.build = Lists.newArrayList();
        params.build.add(tempDir);
        params.inMemory = true;
       
        GraphBuilderTask graphBuilder = new OTPConfigurator(params).builderFromParameters();
View Full Code Here


import static org.junit.Assert.assertTrue;

public class RoutersTest {
    @Test
    public void testRouters() {
        OTPServer otpServer = new OTPServer(new CommandLineParameters(), new GraphServiceImpl());
        otpServer.graphService.registerGraph("", new MemoryGraphSource(null, new Graph()));
        otpServer.graphService.registerGraph("A", new MemoryGraphSource("", new Graph()));
        otpServer.graphService.getGraph("A").addVertex(new ExitVertex(null, "A", 0, 0));
        otpServer.graphService.getGraph("A").addVertex(new ExitVertex(null, "B", 0, 1));
        otpServer.graphService.getGraph("A").addVertex(new ExitVertex(null, "C", 1, 1));
View Full Code Here

TOP

Related Classes of org.opentripplanner.standalone.CommandLineParameters

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.