Examples of runServer()


Examples of dtool.genie.GenieServer.runServer()

    }
   
    try {
      DToolServer dtoolServer = new DToolServer();
      GenieServer genieServer = new GenieServer(dtoolServer, requestedPortNumber);
      genieServer.runServer();
    } catch (StatusException se) {
      throw errorBail("Error starting server. ", se);
    }
   
  }
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

        "test/sumo_maps/box1l/test.sumo.cfg"// config file
        12345,                                 // random seed
        false                                  // look for geolocalization info in the map
        );
    try {
      conn.runServer();
     
      System.out.println("Map bounds are: " + conn.queryBounds());
     
      for (int i = 0; i < 10; i++) {
        int time = conn.getCurrentSimStep();
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

        "test/sumo_maps/box1l/test.sumo.cfg"// config file
        12345,                                 // random seed
        false                                  // look for geolocalization info in the map
        );
    try {
      conn.runServer();
     
      // the first two steps of this simulation have no vehicles.
      conn.nextSimStep();
      conn.nextSimStep();
     
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

  }

  public static SumoTraciConnection startSumoConn(String simConfigLocation) throws Exception {
    try {
      SumoTraciConnection newConn = new SumoTraciConnection(simConfigLocation, 0, false);
      newConn.runServer();
      return newConn;
    }
    catch(Exception e) {
      e.printStackTrace();
      throw e;
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

  @Test
  public void testHttpDownload() throws IOException, InterruptedException {
    new NanoHTTPD(5432);

    SumoTraciConnection conn = new SumoTraciConnection("http://127.0.0.1:5432/test/sumo_maps/variable_speed_signs/test.sumo.cfg", 1, false);
    conn.runServer();
    conn.nextSimStep();
    conn.nextSimStep();
  }

}
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

  @Test
  public void testHttpDownload() throws IOException, InterruptedException {
    new NanoHTTPD(5432);

    SumoTraciConnection conn = new SumoTraciConnection("http://127.0.0.1:5432/test/sumo_maps/variable_speed_signs/test.sumo.cfg", 1);
    conn.runServer();
    conn.nextSimStep();
    conn.nextSimStep();
  }

}
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

      SumoTraciConnection conn = new SumoTraciConnection(sumo_bin, config_file);
      conn.addOption("step-length", step_length+"");
      conn.addOption("start", ""); //start sumo immediately
   
      //start Traci Server
      conn.runServer();
     
      for(int i=0; i<3600; i++){
     
        conn.do_timestep();
        conn.do_job_set(Vehicle.add("v"+i, "car", "r1", 0, 0, 13.8, (byte) 1));
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

    SumoTraciConnection conn = new SumoTraciConnection(
        "test/sumo_maps/box1l/test.sumo.cfg"// config file
        12345                                  // random seed
        );
    try {
      conn.runServer();
     
      System.out.println("Map bounds are: " + conn.queryBounds());
     
      for (int i = 0; i < 10; i++) {
        int time = conn.getCurrentSimStep();
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

    SumoTraciConnection conn = new SumoTraciConnection(
        "test/sumo_maps/box1l/test.sumo.cfg"// config file
        12345                                  // random seed
        );
    try {
      conn.runServer();
     
      // the first two steps of this simulation have no vehicles.
      conn.nextSimStep();
      conn.nextSimStep();
     
View Full Code Here

Examples of it.polito.appeal.traci.SumoTraciConnection.runServer()

       /*
        * If we did not want to depend on the OS, we can simply override the
        * TCP_NODELAY setting by doing conn.setTcpNoDelay(false) here. 
        */
       // conn.setTcpNoDelay(false);
      conn.runServer();
     
      System.out.println();
      System.out.println("Map bounds are: " + conn.queryBounds());
      System.out.println();
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.