Class ReportData

java.lang.Object
real_time_traffic_simulation_with_java.tools.ReportData

public class ReportData extends Object
This class represents the data structure for report data used in exporting vehicle information. It encapsulates a list of string arrays, where each array contains details about a vehicle. Techically speaking, this is a wrapper class for passing vehicle data to the ExportingFiles class.
  • Constructor Details

    • ReportData

      public ReportData(List<String[]> vehicleData)
      ReportData constructor, use to initialize vehicle data. We are assigning the parameter vehicleData to the class variable vehicleData. We are using this constructor to create an instance of ReportData with the provided vehicle data.
      Parameters:
      vehicleData - the list of string arrays containing vehicle information
  • Method Details

    • getVehicleData

      public List<String[]> getVehicleData()
      Getter for vehicle data
      Returns:
      the list of string arrays containing vehicle information