Class JunctionManager

java.lang.Object
real_time_traffic_simulation_with_java.wrapper.JunctionManager

public class JunctionManager extends Object
Wrapper class for TraaS to manage junctions in the simulation
  • Constructor Details

    • JunctionManager

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

    • getIDList

      public List<String> getIDList() throws Exception
      Get list of junctions IDs
      Returns:
      a List type String of junction IDs
      Throws:
      Exception
    • getCount

      public int getCount() throws Exception
      Get number of junctions
      Returns:
      an int number of junctions
      Throws:
      Exception
    • getShape

      public de.tudresden.sumo.objects.SumoGeometry getShape(String junctionID) throws Exception
      Get shape of the junction
      Parameters:
      junctionID - the ID of the junction
      Returns:
      SumoGeometry shape of the junction
      Throws:
      Exception
    • getJunctionDataList

      public List<JunctionData> getJunctionDataList() throws Exception
      Create and get a List of JunctionData for all junctions
      Returns:
      a List of JunctionData for all junctions
      Throws:
      Exception