Class PDFChart
java.lang.Object
real_time_traffic_simulation_with_java.tools.PDFmethod.PDFChart
Provides methods to add charts to a PDF document using data from a CSV log file.
Charts supported:
- Vehicle Count Over Time (with optional color filtering)
- Congested Edge Count Over Time
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCongestedEdgeCountChart(tech.tablesaw.api.Table csv_table, com.lowagie.text.Document document, com.lowagie.text.pdf.PdfWriter writer, String exported_simulation_step) Add Congested Edge Count Over Time chart to PDF documentstatic voidaddVehicleCountChart(tech.tablesaw.api.Table csv_table, com.lowagie.text.Document document, com.lowagie.text.pdf.PdfWriter writer, String filter_veh_color) Add Vehicle Count Over Time chart to PDF document
-
Method Details
-
addVehicleCountChart
public static void addVehicleCountChart(tech.tablesaw.api.Table csv_table, com.lowagie.text.Document document, com.lowagie.text.pdf.PdfWriter writer, String filter_veh_color) Add Vehicle Count Over Time chart to PDF document- Parameters:
csv_table-document-writer-filter_veh_color- If empty string, include all colors + total;
-
addCongestedEdgeCountChart
public static void addCongestedEdgeCountChart(tech.tablesaw.api.Table csv_table, com.lowagie.text.Document document, com.lowagie.text.pdf.PdfWriter writer, String exported_simulation_step) Add Congested Edge Count Over Time chart to PDF document- Parameters:
csv_table-document-writer-exported_simulation_step- Used to fill data if no data available (no edges has been congested)
-