Class PDFChart

java.lang.Object
real_time_traffic_simulation_with_java.tools.PDFmethod.PDFChart

public final class PDFChart extends Object
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 Type
    Method
    Description
    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
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)