Exemplo n.º 1
0
  /**
   * Return the RouteList of bus routes that an Agency services.
   *
   * @param agency the {@link Agency} to which the RouteList applies
   * @return the list of Routes
   */
  public Vector<Item> getRouteListItems() {
    Vector<Item> routeListItems = new Vector<Item>();

    try {
      routeListItems = mainModel.getRouteListItems();
    } catch (ServiceUnavailableException e) {
      mainView.notifyAndExit(MainView.NEXTBUS_SERVICE_UNAVAILABLE);
    }

    return routeListItems;
  }