world
Class WorldTravelInfoProvider

java.lang.Object
  extended byworld.WorldTravelInfoProvider
All Implemented Interfaces:
ConnectionsTravelInfoProvider, LocationsTravelInfoProvider

public class WorldTravelInfoProvider
extends java.lang.Object
implements LocationsTravelInfoProvider, ConnectionsTravelInfoProvider

A provider of travel information on world.

Author:
Piotrek

Constructor Summary
WorldTravelInfoProvider()
          Constructor.
 
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 GetConnectionsForStation(Station station, int meanOfTransportation)
          Gets a list of all connections leaving from the given station.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldTravelInfoProvider

public WorldTravelInfoProvider()
Constructor.

Method Detail

GetAirportsInRange

public java.util.ArrayList GetAirportsInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Description copied from interface: LocationsTravelInfoProvider
Gets all the airports located in the specified rectangle.

Specified by:
GetAirportsInRange in interface LocationsTravelInfoProvider
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.
See Also:
LocationsTravelInfoProvider.GetAirportsInRange(int, int, int, int)

GetBusStopsInRange

public java.util.ArrayList GetBusStopsInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Description copied from interface: LocationsTravelInfoProvider
Gets all the bus stops located in the specified rectangle.

Specified by:
GetBusStopsInRange in interface LocationsTravelInfoProvider
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.
See Also:
LocationsTravelInfoProvider.GetBusStopsInRange(int, int, int, int)

GetHarboursInRange

public java.util.ArrayList GetHarboursInRange(int minX,
                                              int minY,
                                              int maxX,
                                              int maxY)
Description copied from interface: LocationsTravelInfoProvider
Gets all the harbours located in the specified rectangle.

Specified by:
GetHarboursInRange in interface LocationsTravelInfoProvider
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.
See Also:
LocationsTravelInfoProvider.GetHarboursInRange(int, int, int, int)

GetTrainStationsInRange

public java.util.ArrayList GetTrainStationsInRange(int minX,
                                                   int minY,
                                                   int maxX,
                                                   int maxY)
Description copied from interface: LocationsTravelInfoProvider
Gets all the train stations located in the specified rectangle.

Specified by:
GetTrainStationsInRange in interface LocationsTravelInfoProvider
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.
See Also:
LocationsTravelInfoProvider.GetTrainStationsInRange(int, int, int, int)

GetConnectionsForStation

public java.util.ArrayList GetConnectionsForStation(Station station,
                                                    int meanOfTransportation)
Description copied from interface: ConnectionsTravelInfoProvider
Gets a list of all connections leaving from the given station.

Specified by:
GetConnectionsForStation in interface ConnectionsTravelInfoProvider
Parameters:
station - A station for which to search for the conenctions.
meanOfTransportation - A mean of transportation the connections should be searched for.
Returns:
A list of all found connection or an empty list if there are none.
See Also:
ConnectionsTravelInfoProvider.GetConnectionsForStation(Station, int)