scheduler.modulesinterfaces
Interface LocationsTravelInfoProvider

All Known Implementing Classes:
WorldTravelInfoProvider

public interface LocationsTravelInfoProvider

An interface defining the methods to access a source of the travel information on the world.

Author:
Piotrek

Method Summary
 java.util.ArrayList GetAirportsInRange(int minX, int minY, int maxX, int maxY)
          Gets all the airports located in the specified rectangle.
 java.util.ArrayList GetBusStopsInRange(int minX, int minY, int maxX, int maxY)
          Gets all the bus stops located in the specified rectangle.
 java.util.ArrayList GetHarboursInRange(int minX, int minY, int maxX, int maxY)
          Gets all the harbours located in the specified rectangle.
 java.util.ArrayList GetTrainStationsInRange(int minX, int minY, int maxX, int maxY)
          Gets all the train stations located in the specified rectangle.
 

Method Detail

GetAirportsInRange

public java.util.ArrayList GetAirportsInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Gets all the airports located in the specified rectangle.

Parameters:
minX - The minimal X coordinate of the rectangle.
minY - The minimal Y coordinate of the rectangle.
maxX - The maximal X coordinate of the rectangle.
maxY - The maximal Y coordinate of the rectangle.
Returns:
A list of airports. If there are none, the empty list should be returned.

GetTrainStationsInRange

public java.util.ArrayList GetTrainStationsInRange(int minX,
                                                   int minY,
                                                   int maxX,
                                                   int maxY)
Gets all the train stations located in the specified rectangle.

Parameters:
minX - The minimal X coordinate of the rectangle.
minY - The minimal Y coordinate of the rectangle.
maxX - The maximal X coordinate of the rectangle.
maxY - The maximal Y coordinate of the rectangle.
Returns:
A list of train stations. If there are none, the empty list should be returned.

GetBusStopsInRange

public java.util.ArrayList GetBusStopsInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Gets all the bus stops located in the specified rectangle.

Parameters:
minX - The minimal X coordinate of the rectangle.
minY - The minimal Y coordinate of the rectangle.
maxX - The maximal X coordinate of the rectangle.
maxY - The maximal Y coordinate of the rectangle.
Returns:
A list of bus stops. If there are none, the empty list should be returned.

GetHarboursInRange

public java.util.ArrayList GetHarboursInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Gets all the harbours located in the specified rectangle.

Parameters:
minX - The minimal X coordinate of the rectangle.
minY - The minimal Y coordinate of the rectangle.
maxX - The maximal X coordinate of the rectangle.
maxY - The maximal Y coordinate of the rectangle.
Returns:
A list of harbours. If there are none, the empty list should be returned.