Ejemplo n.º 1
0
  /**
   * Instantiates a new Path finding
   *
   * @param departure
   * @param destination
   * @throws IOException Signals that an I/O exception has occurred.
   */
  public void addRouteRow(String depart, String dest, int distance) {
    Route r = new Route();
    r.setDeparture(depart);
    r.setDestination(dest);
    r.setDistance(distance);
    /* Data for testing, should use the real data in CSV file.
    List<Flight> fList = fetchAllFlights();

    FlightListFilter flf = new FlightListFilter(fList);
    r.setFlights(flf.filterByDepartNDest(depart, dest));
    Data for testing, should use the real data in CSV file. */

    routeList.add(r);
  }