Class RouteManager

java.lang.Object
real_time_traffic_simulation_with_java.wrapper.RouteManager

public class RouteManager extends Object
Wrapper class for TraaS to manage routes in the simulation
  • Constructor Details

    • RouteManager

      public RouteManager(it.polito.appeal.traci.SumoTraciConnection connection)
      Wrapper class for TraaS to manage routes in the simulation
      Parameters:
      connection - connection to Sumo
  • Method Details

    • add

      public void add(String routeID, String start_edge, String end_edge) throws Exception
      Add a new route to the simulation (disconnected edges are allowed)
      Parameters:
      routeID - ID of the route
      start_edge - where the route starts
      end_edge - where the route ends
      Throws:
      Exception