Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- add(String, String, String) - Method in class real_time_traffic_simulation_with_java.wrapper.RouteManager
-
Add a new route to the simulation (disconnected edges are allowed)
- add(String, String, String, String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Inject a vehicle of default type into the simulation immediately if possible when called Generate a new route with a unique ID = vehicleID from start_edges to end_edges Set the color of the vehicle as user's choice, default to WHITE if invalid color string is given
- addCongestedEdgeCountChart(Table, Document, PdfWriter, String) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.PDFChart
-
Add Congested Edge Count Over Time chart to PDF document
- addEdgeTable(Document, List, boolean, String[]) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.EdgeTable
-
Add an edge table to a PDF document
3 columns: Edge ID, No. of Lanes, Length (m) with option to filter only congested edges - addHeading(Document, String, boolean, String, String) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.Heading
-
Add headings to a PDF document (aligned to the right, italic font): simulation start time stamp, export time stamp, simulation step when exported, applied filters (if any).
- addObjectCount(Document, String, boolean, String, String, List) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.ObjectCount
- addTooltip(Control, String) - Static method in class real_time_traffic_simulation_with_java.gui.controlPanelElement.CustomElement
-
Add tooltip to a control, because we use it multiple times
- addVehicleCountChart(Table, Document, PdfWriter, String) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.PDFChart
-
Add Vehicle Count Over Time chart to PDF document
- App - Class in real_time_traffic_simulation_with_java
-
The main application class for the Real-Time Traffic Simulation with Java.
- App() - Constructor for class real_time_traffic_simulation_with_java.App
-
App constructor
B
- BLACK - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Sumo Color(0,0,0,0)
- BLUE - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Sumo Color(0,0,255,0)
C
- ChartSection - Class in real_time_traffic_simulation_with_java.gui.dashboardSection
-
ChartSection class represents a bar chart displaying live statistics of edges in the traffic simulation.
- ChartSection(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.dashboardSection.ChartSection
-
Constructor for ChartSection.
- checkAvailableColor(String) - Static method in class real_time_traffic_simulation_with_java.alias.Color
-
Check if a given color name is valid and return color name (return WHITE if invalid)
- closeConnection() - Method in class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Method to close the connection.
- closeCSV() - Method in class real_time_traffic_simulation_with_java.tools.CSVManager
-
Closes the CSV writer to release file resources.
- Color - Class in real_time_traffic_simulation_with_java.alias
-
Utility classs: Stores all the sumo color code definitions to prevent user from generting so many color types, thus make the code easier to look and fix.
- colorToString(SumoColor) - Static method in class real_time_traffic_simulation_with_java.alias.Color
-
Convert SumoColor to its String representation, WHITE is default for unknown colors
- CONGESTED_ROAD - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Color to draw congested road
- CONNECT_SPEED_MS - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Connection speed (in milliseconds): How often does the simulation update
- CONTROL_PANEL_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Control panel width (in pixels)
- ControlPanel - Class in real_time_traffic_simulation_with_java.gui
-
Control panel pane that wires together all control components.
- ControlPanel(SimulationEngine, ExportingFiles) - Constructor for class real_time_traffic_simulation_with_java.gui.ControlPanel
-
ControlPanel constructor
- createButton(String, int, String, String) - Static method in class real_time_traffic_simulation_with_java.gui.controlPanelElement.CustomElement
-
Create a button with specified properties
- createTextField(String, int, String) - Static method in class real_time_traffic_simulation_with_java.gui.controlPanelElement.CustomElement
-
Create a text field with specified properties.
- CsvLogFolder - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to CSV log folder directory
- CSVManager - Class in real_time_traffic_simulation_with_java.tools
-
Manages CSV log files for the traffic simulation.
- CSVManager() - Constructor for class real_time_traffic_simulation_with_java.tools.CSVManager
-
Manages CSV log files for the traffic simulation.
- CustomElement - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Utility class for creating commonly used UI controls with tooltips
- CustomElement() - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.CustomElement
D
- Dashboard - Class in real_time_traffic_simulation_with_java.gui
-
The statistic panel on the right side of the main window Use to display statistics about the simulation
- Dashboard(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.Dashboard
-
The statistic panel on the right side of the main window Use to display statistics about the simulation Includes a text section and a chart section
- DASHBOARD_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Dashboard panel width (in pixels)
- dataForCSV() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Prepare data for CSV logging: "Simulation step", "vehicle id","vehicle color", "vehicle speed", "vehicle is on edge", "edge congestion status", "edge average speed", "edge density"
- dataForPDF() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Prepare data for PDF summary: 1st element is {edgeCount, tlsCount}, 2nd element is {exportedSimulationStep}, following elements are {edgeID, laneCount, length}
- DEFAULT_LANE_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Default lane width of SUMO (in meters)
- DEFAULT_VEHICLE_ARC - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Arc size for rendering vehicle corners
- DEFAULT_VEHICLE_LENGTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Length of DEFAULT_VEHTYPE of SUMO (in meters)
- DEFAULT_VEHICLE_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Width of DEFAULT_VEHTYPE of SUMO (in meters)
E
- EDGE_DIVIDER_WEIGHT - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Weight of edge borderline
- EdgeData - Class in real_time_traffic_simulation_with_java.cores
-
Represents the visual data of an edge in the simulation, grouping a rectangle representing the edge and dashed lines representing lane dividers.
- EdgeData(String, int, List) - Constructor for class real_time_traffic_simulation_with_java.cores.EdgeData
-
Represents the visual data of an edge in the simulation, grouping a rectangle representing the edge and dashed lines representing lane dividers.
- EdgeManager - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for TraaS to manage edges in the simulation
- EdgeManager(SumoTraciConnection) - Constructor for class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Wrapper class for TraaS to manage edges in the simulation
- EdgeTable - Class in real_time_traffic_simulation_with_java.tools.PDFmethod
-
Class to create and add an edge table to a PDF document
3 columns: Edge ID, No. of Lanes, Length (m) with option to filter only congested edges - ENLARGE_FACTOR - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Factor to zoom out the map
- ExportingFiles - Class in real_time_traffic_simulation_with_java.tools
-
Handles CSV export on a background thread.
- ExportingFiles() - Constructor for class real_time_traffic_simulation_with_java.tools.ExportingFiles
-
Create ExportingFiles with background worker thread.
- ExportPane - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Export component with CSV export button
- ExportPane(SimulationEngine, ExportingFiles) - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.ExportPane
- exportSummary(String, String, String, boolean, List) - Static method in class real_time_traffic_simulation_with_java.tools.PDFExporter
-
Export summary PDF file from data from SUMO and CSV log file, allow filtering options: vehicle color and congested edges only
G
- getAllEdgeIDs() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get all IDs: edges
- getAllTrafficLightIDs() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get all IDs: traffic lights
- getAllVehicleIDs() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get all IDs: vehicles
- getAngle(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get angle of a vehicle (degree), starting from the North (0 degree) and measured clockwise
- getAverageSpeed(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get average speed of vehicles on the edge in the last step (km/h)
- getBasicInfo() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get statistics: number of entities in the simulation
- getColor(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get color of a vehicle
- getCongestedEdgeIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get list of congested edges IDs
- getCongestedStatus(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get congested status of the edge
- getCongestionHotspots() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get statistics: congestion hotspots
- getConnection() - Method in class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Getter for connection
- getCount() - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get number of edges, excluding junction edges
- getCount() - Method in class real_time_traffic_simulation_with_java.wrapper.JunctionManager
-
Get number of junctions
- getCount() - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get number of traffic light in the simulation
- getCount() - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get number of running vehicles, vehicles finished route or not yet be injected are not included
- getCSVFilePath() - Method in class real_time_traffic_simulation_with_java.tools.ExportingFiles
-
Get the file path of the current CSV file.
- getCSVTimerstamp() - Method in class real_time_traffic_simulation_with_java.tools.ExportingFiles
-
Get the timestamp of the current CSV file for PDF export.
- getCurrentStep() - Method in class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Get current simulation time in seconds
- getCurrentTimeStep() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get statistics: current time step
- getDensity(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get density of vehicles on the edge in the last step (vehicle/km)
- getDuration(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get the duration of the current phase of the traffic light (second)
- getEdgeDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Create and get a List of EdgeData for all edges
- getEdgeID(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get edge ID that the vehicle is currently on, including junction edges
- getEdgeStats(String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get statistics: chart values (average speed (km/h), density (veh/km), halting number (veh)) of a specific edge
- getEdgeTooltip(String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get tooltip: edges
- getFilePath() - Method in class real_time_traffic_simulation_with_java.tools.CSVManager
-
Getter to retrieve the file path of the CSV log
- getFilteredIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get list of filtered running vehicle IDs, vehicles finished route or not yet be injected are not included
- getHaltingNumber(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get number of halting vehicles on the edge in the last step
- getIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get list of edge IDs, excluding junction edges
- getIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.JunctionManager
-
Get list of junctions IDs
- getIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get list of traffic light IDs
- getIDList() - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get list of running vehicle IDs, vehicles finished route or not yet be injected are not included
- getJunctionDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.JunctionManager
-
Create and get a List of JunctionData for all junctions
- getLaneCount(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get number of lanes on the edge
- getLaneID(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get lane ID that the vehicle is currently on, including junction lanes
- getLaneIDList(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get lane IDs on the edge
- getLanesCoordinate(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get coordinations of lanes the edge
- getLength(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get length of the edge (m)
- getLinksTraffic(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Method to get links controlled by the traffic light
- getMapEdges() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get mapping data: edges
- getMapJunctions() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get mapping data: junctions
- getMapTls() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get mapping data: traffic lights
- getMapVehicles() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get mapping data: vehicles
- getMaxSpeed(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get max speed allowed on the edge (km/h)
- getNextSwitch(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get remaining time of the current phase of the traffic light (second)
- getPhaseCount(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get number of phases of the traffic light
- getPhaseID(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get the current phase index of the traffic light
- getPhasesDuration() - Method in class real_time_traffic_simulation_with_java.cores.TrafficLightData
-
Getter for the list of durations for each phase of the traffic light
- getPhasesDuration(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get initial list of durations for each phase of the traffic light set in net file
- getPosition(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get position of a vehicle in Cartesian coordinates
- getShape(String) - Method in class real_time_traffic_simulation_with_java.wrapper.JunctionManager
-
Get shape of the junction
- getSpeed(String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Get speed of a vehicle (km/h)
- getState(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Get the current state of the traffic light ('r', 'y', 'g' sequence)
- getTimeStamp() - Method in class real_time_traffic_simulation_with_java.tools.CSVManager
-
Getter to retrieve the timestamp used in the CSV file name
- getTlTooltip(String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Get tooltip: traffic lights
- getTrafficLightDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Initiate a List of TrafficLightData for all traffic lights
- getTravelTime(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get estimate travel time on the edge in the last step (s)
- getVehicleCount(String) - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Get number of vehicles on the edge in the last step
- getVehicleData() - Method in class real_time_traffic_simulation_with_java.tools.ReportData
-
Getter for vehicle data
- getVehicleDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Create and get a List of VehicleData for all vehicles
- GREEN - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Sumo Color(0,255,0,0)
H
- HEADERS - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Header for CSV file to write
- Heading - Class in real_time_traffic_simulation_with_java.tools.PDFmethod
-
This class provides a method to add headings to a PDF document.
- HIDE_DELAY - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Hide delay for tooltips (in milliseconds)
- HIGH_HALTING_DURATION_THRESHOLD - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Threshold for high halting duration (in simulation seconds) to determine congestion
- HIGH_HALTING_RATE_THRESHOLD - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Threshold for high halting rate (average halting vehicles/lane)
I
- IconImage - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to icon image
- injectVehicle(int, String, String, String, String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Inject vehicle: single and batch injection, create route first then create vehicles on that route.
- isCongested() - Method in class real_time_traffic_simulation_with_java.cores.EdgeData
-
Getter for congestion status
- isCongestedOnlySelected() - Method in class real_time_traffic_simulation_with_java.gui.controlPanelElement.ExportPane
-
Returns whether the "Only include congested edge" checkbox is selected
J
- JunctionData - Class in real_time_traffic_simulation_with_java.cores
-
Represents the visual data of a junction in the simulation.
- JunctionData(String, SumoGeometry) - Constructor for class real_time_traffic_simulation_with_java.cores.JunctionData
-
Represents the visual data of a junction in the simulation.
- JunctionManager - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for TraaS to manage junctions in the simulation
- JunctionManager(SumoTraciConnection) - Constructor for class real_time_traffic_simulation_with_java.wrapper.JunctionManager
-
Wrapper class for TraaS to manage junctions in the simulation
L
- LANE_DASHED_GAP - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Gap between dashes in lane divider
- LANE_DASHED_LENGTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Length of dash in lane divider
- LANE_DIVIDER - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Color to draw lane divider
- LANE_DIVIDER_WEIGHT - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Weight of lane divider line
- ListofAllColor - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
List of all color names that user can choose for the vehicle
- LogFile - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to log file
M
- main(String[]) - Static method in class real_time_traffic_simulation_with_java.App
-
The main application entry point to launch and run the traffic simulation GUI
- MainWindow - Class in real_time_traffic_simulation_with_java.gui
-
Main window class that sets up the primary GUI components and manages the animation timer
- MainWindow(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.MainWindow
-
MainWindow contructor.
- MapPanel - Class in real_time_traffic_simulation_with_java.gui
-
Create map panel including 3 layers: road layer (bottom-most), vehicle layer, traffic light layer (top-most).
- MapPanel(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.MapPanel
-
Create map panel including 3 layers: road layer (bottom-most), vehicle layer, traffic light layer (top-most).
- MAX_ZOOM_LEVEL - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Maximum zoom level
- Metrics - Class in real_time_traffic_simulation_with_java.alias
-
Utility class: Stores all the metrics used in the simulation, thus make the code easier to look and fix.
- MIN_ZOOM_LEVEL - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Minimum zoom level
N
- NetFilePath - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to SUMO configuration file net
- nextPhase(String) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Toggle traffic light to next phase: get the current phase index and then add 1 to convert to next phase
- nextStep() - Method in class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Make a Sumo-move-to-the-next-step method
O
- ObjectCount - Class in real_time_traffic_simulation_with_java.tools.PDFmethod
-
Class to add object count information to PDF document
Information includes: total edge count (if not filtering congested edges) + total congested edge count + congested edge IDs (if any), traffic light count, total vehicle count (if not filtering by color) + vehicle count by color (only 1 specific color if filtering) - OverallFromCSV - Class in real_time_traffic_simulation_with_java.tools.PDFmethod
-
Retrieve overall data from CSV file for summary
P
- Path - Class in real_time_traffic_simulation_with_java.alias
-
Utility class: Stores all the paths used in the simulation, thus make the code easier to look and fix.
- PDF_FONT - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
PDF text font
- PDF_HEADING_FONT_SIZE - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
PDF heading font size
- PDF_NORMAL_FONT_SIZE - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
PDF normal text font size
- PDF_TITLE_FONT_SIZE - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
PDF title font size
- PDFChart - Class in real_time_traffic_simulation_with_java.tools.PDFmethod
-
Provides methods to add charts to a PDF document using data from a CSV log file.
- PDFExporter - Class in real_time_traffic_simulation_with_java.tools
- PdfLogFolder - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to PDF log folder directory
Q
- queueCSV(List) - Method in class real_time_traffic_simulation_with_java.tools.ExportingFiles
-
Queue vehicle data for CSV export (non-blocking).
R
- real_time_traffic_simulation_with_java - package real_time_traffic_simulation_with_java
- real_time_traffic_simulation_with_java.alias - package real_time_traffic_simulation_with_java.alias
- real_time_traffic_simulation_with_java.cores - package real_time_traffic_simulation_with_java.cores
- real_time_traffic_simulation_with_java.gui - package real_time_traffic_simulation_with_java.gui
- real_time_traffic_simulation_with_java.gui.controlPanelElement - package real_time_traffic_simulation_with_java.gui.controlPanelElement
- real_time_traffic_simulation_with_java.gui.dashboardSection - package real_time_traffic_simulation_with_java.gui.dashboardSection
- real_time_traffic_simulation_with_java.gui.mapLayer - package real_time_traffic_simulation_with_java.gui.mapLayer
- real_time_traffic_simulation_with_java.tools - package real_time_traffic_simulation_with_java.tools
- real_time_traffic_simulation_with_java.tools.PDFmethod - package real_time_traffic_simulation_with_java.tools.PDFmethod
- real_time_traffic_simulation_with_java.wrapper - package real_time_traffic_simulation_with_java.wrapper
- RED - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Sumo Color(255,0,0,0)
- refresh() - Method in class real_time_traffic_simulation_with_java.gui.MapPanel
-
Public method: Refresh map panel by redraw vehicle layer and set color of traffic light layer
- ReportData - Class in real_time_traffic_simulation_with_java.tools
-
This class represents the data structure for report data used in exporting vehicle information.
- ReportData(List) - Constructor for class real_time_traffic_simulation_with_java.tools.ReportData
-
ReportData constructor, use to initialize vehicle data.
- retrieveOverallDataFromCSV(Table) - Static method in class real_time_traffic_simulation_with_java.tools.PDFmethod.OverallFromCSV
-
Retrieve overall data from CSV file for summary
- ROAD - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Color to draw road
- ROAD_BORDER - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Color to draw road border
- roadLayer - Class in real_time_traffic_simulation_with_java.gui.mapLayer
-
Create road layer including junctions and edges, with tooltips and mouse events on edges.
- roadLayer(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.mapLayer.roadLayer
-
Create road layer including junctions and edges, with tooltips and mouse events on edges.
- RouFilePath - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to SUMO configuration file rou
- RouteManager - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for TraaS to manage routes in the simulation
- RouteManager(SumoTraciConnection) - Constructor for class real_time_traffic_simulation_with_java.wrapper.RouteManager
-
Wrapper class for TraaS to manage routes in the simulation
S
- setColor() - Method in class real_time_traffic_simulation_with_java.cores.EdgeData
- setColor(String) - Method in class real_time_traffic_simulation_with_java.cores.TrafficLightData
-
Refresh the color of the traffic light's sub-lights
- setColor(String, SumoColor) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Set color of a vehicle
- setFilter(String, String) - Method in class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Set filter for vehicles (color, edge)
- setPhaseDuration(String, List) - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Set new duration for each phase of the traffic light and update TrafficLightData phasesDuration
- setPhasesDuration(List) - Method in class real_time_traffic_simulation_with_java.cores.TrafficLightData
-
Setter for the list of durations for each phase of the traffic light
Only updates if the new list has the same size as the existing one - setTlPhaseDurations(String, List) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Control traffic light: set phase durations for a traffic light
- setupUpdateChart() - Method in class real_time_traffic_simulation_with_java.gui.dashboardSection.ChartSection
-
Private helper method: setup updating chart periodically.
- setVehicleFilter(String, String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Set mapping data: filter vehicles by color and edge
- SHRINK_FACTOR - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Factor to zoom in the map
- shutdown() - Method in class real_time_traffic_simulation_with_java.tools.ExportingFiles
-
Shutdown the export service.
- SimulationEngine - Class in real_time_traffic_simulation_with_java.cores
-
Core to control the simulation, center of backend operations.
- SimulationEngine() - Constructor for class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Core to control the simulation, center of backend operations.
- SIZE_PER_Y_UNIT - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
PDF chart image height: preffered height per unit on Y-axis
- startAnimationTimer() - Method in class real_time_traffic_simulation_with_java.gui.MainWindow
-
Start animation timer method to update simulation and refresh map panel at fixed interval definned in Metrics.CONNECT_SPEED_MS.
- startConnection() - Method in class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Method to start the connection
- stepSimulation() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Control simulation: advance simulation by one step invalid input: '&' update edge congestion status and traffic light states
- stopAnimationTimer() - Method in class real_time_traffic_simulation_with_java.gui.MainWindow
-
Stop animation timer method to stop the animation timer and exporting files service when main window is closed
- stopSimulation() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Control simulation: stop
- stressTest(int, String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Inject vehicle: stress test tool, inject 100 vehicles on up to 10 different random routes.
- StressTestPane - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Stress test component with input field and edge selection
- StressTestPane(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.StressTestPane
-
StressTestPane constructor
- stringToColor(String) - Static method in class real_time_traffic_simulation_with_java.alias.Color
-
Convert String representation of color to SumoColor, WHITE is default for invalid input or unknown colors
- SumoPath - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to SUMO executable file
- SumoTraasConnection - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for SumoTraciConnection to manage connection with SUMO simulator using TraaS library
- SumoTraasConnection() - Constructor for class real_time_traffic_simulation_with_java.wrapper.SumoTraasConnection
-
Constructor for SumoTraasConnection
T
- TextSection - Class in real_time_traffic_simulation_with_java.gui.dashboardSection
-
The text section of the dashboard Display basic info and congestion hotspot info
- TextSection(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.dashboardSection.TextSection
-
Constructor: Create a TextSection VBox with labels that update with simulation data
- TLS_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Width of traffic light box
- toggleAllTls() - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Control traffic lights: toggle all traffic lights
- toggleSingleTl(String) - Method in class real_time_traffic_simulation_with_java.cores.SimulationEngine
-
Control traffic light: toggle single traffic light
- TraasPath - Static variable in class real_time_traffic_simulation_with_java.alias.Path
-
Relative path to TraaS library
- TrafficLightData - Class in real_time_traffic_simulation_with_java.cores
-
Represents the visual data of a traffic light in the simulation, grouping multiple Polygons representing the sub-lights of the traffic light.
- TrafficLightData(String, List, String, List) - Constructor for class real_time_traffic_simulation_with_java.cores.TrafficLightData
-
Represents the visual data and keep track of phases durations of a traffic light in the simulation, grouping multiple Polygons representing the sub-lights of the traffic light.
- trafficlightLayer - Class in real_time_traffic_simulation_with_java.gui.mapLayer
-
Create traffic lights layer including traffic lights, with tooltip for better interactivity.
- trafficlightLayer(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.mapLayer.trafficlightLayer
-
Create traffic lights layer including traffic lights, with tooltip for better interactivity.
- TrafficLightManager - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for TraaS to manage traffic lights in the simulation
- TrafficLightManager(SumoTraciConnection) - Constructor for class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Wrapper class for TraaS to manage traffic lights in the simulation
- TrafficLightPane - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Traffic light toggle component with a single button
- TrafficLightPane(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.TrafficLightPane
-
TrafficLightPane constructor
- trafficlightPopupWindow - Class in real_time_traffic_simulation_with_java.gui.mapLayer
-
A popup window designed to adjust traffic light phases' durations
Returns a List of Integer representing the new durations for each phase upon confirmation
If no changes were made or invalid input was provided, returns null
Will display appropriate notification alerts upon closing - trafficlightPopupWindow(String, List) - Constructor for class real_time_traffic_simulation_with_java.gui.mapLayer.trafficlightPopupWindow
-
A popup window designed to adjust traffic light phases' durations
Returns a List of Integer representing the new durations for each phase upon confirmation
If no changes were made or invalid input was provided, returns null
Will display appropriate notification alerts upon closing
U
- updateCongestedStatus(double) - Method in class real_time_traffic_simulation_with_java.cores.EdgeData
-
Update congested status based on average number of halting vehicles/edge's lane An edge is considered congested if number of halting vehicles/lane maintain above a certain threshold for a certain duration.
- updateCSV(List) - Method in class real_time_traffic_simulation_with_java.tools.CSVManager
-
Appends new rows of data to the CSV file.
- updateEdgeDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.EdgeManager
-
Update congestion status for all edges based on TTI and set edge colors
- updateTrafficLightDataList() - Method in class real_time_traffic_simulation_with_java.wrapper.TrafficLightManager
-
Update mapping data of the TrafficLightData List with current states from simulation
V
- VehicleData - Class in real_time_traffic_simulation_with_java.cores
-
Represents the visual data of a vehicle in the simulation.
- VehicleData(String, double, double, double, SumoColor) - Constructor for class real_time_traffic_simulation_with_java.cores.VehicleData
-
Represents the visual data of a vehicle in the simulation.
- VehicleFilterPane - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Vehicle filter component with color and edge filters
- VehicleFilterPane(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.VehicleFilterPane
-
VehicleFilterPane constructor
- VehicleInjectionPane - Class in real_time_traffic_simulation_with_java.gui.controlPanelElement
-
Vehicle injection component with input fields and controls
- VehicleInjectionPane(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.controlPanelElement.VehicleInjectionPane
-
VehicleInjectionPane constructor
- vehicleLayer - Class in real_time_traffic_simulation_with_java.gui.mapLayer
-
Create vehicle layer including vehicles.
- vehicleLayer(SimulationEngine) - Constructor for class real_time_traffic_simulation_with_java.gui.mapLayer.vehicleLayer
-
Create vehicle layer including vehicles.
- VehicleManager - Class in real_time_traffic_simulation_with_java.wrapper
-
Wrapper class for TraaS to manage vehicles in the simulation
- VehicleManager(SumoTraciConnection) - Constructor for class real_time_traffic_simulation_with_java.wrapper.VehicleManager
-
Wrapper class for TraaS to manage vehicles in the simulation
W
- WHITE - Static variable in class real_time_traffic_simulation_with_java.alias.Color
-
Sumo Color(255,255,255,0)
- WINDOW_HEIGHT - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Window pane height (in pixels)
- WINDOW_WIDTH - Static variable in class real_time_traffic_simulation_with_java.alias.Metrics
-
Window pane width (in pixels)
All Classes and Interfaces|All Packages|Constant Field Values