Пример #1
0
 /**
  * Retrieves list of Direction stops from Model and passes over to the View updateStops method
  *
  * @throws ServiceUnavailableException
  */
 private void updateDirectionStopsTable(Direction direction) throws ServiceUnavailableException {
   String[][] stopList =
       mainModel.getRouteStopsArray(
           FindStopsHelper.identifyStopsForDirection(direction, mainModel.getAllStopsList()));
   mainView.enableRefresh(stopsExist(stopList.length));
   mainView.updateStopsTable(stopList);
 }
Пример #2
0
 /**
  * Accepts {@link Direction} object to draw stops on map for specific Direction.
  *
  * @param direction - Direction Object
  */
 private void drawMapStops(Direction direction) {
   // Uses the FindStops Helper to retrieve a list of stops specific to a Direction
   drawMapStops(FindStopsHelper.identifyStopsForDirection(direction, mainModel.getAllStopsList()));
 }