scheduler.modulesinterfaces
Interface MeansOfTransportationProvider

All Known Implementing Classes:
MeansOfTransportationChooserStub, MeansOfTransportationJessChooser

public interface MeansOfTransportationProvider

An interface that must be implemented by a class that will provide a list of means of transportation appropriate for the main part of travek between the two given locations.

Author:
Piotrek

Field Summary
static double MAX_TAXI_DISTANCE
          The maximal distance to be taken by the taxi.
static double MAX_WALK_DISTANCE
          The maximal distance to be taken by walk.
static double MIN_BUS_DISTANCE
          The minimal distance to be taken by the bus.
static double MIN_CRUISE_DISTANCE
          The minimal distance to be taken by the ship.
static double MIN_FLIGHT_DISTANCE
          The minimal distance to be taken by the airplane.
static double MIN_TAXI_DISTANCE
          The minimal distance to be taken by the taxi.
static double MIN_TRAIN_DISTANCE
          The minimal distance to be taken by the train.
 
Method Summary
 java.util.ArrayList GetMeansOfTransportation(Location origin, Location destination)
          Gets a list of means of transportation appropriate for the main part of travek between the two given locations.
 

Field Detail

MIN_FLIGHT_DISTANCE

public static final double MIN_FLIGHT_DISTANCE
The minimal distance to be taken by the airplane.

See Also:
Constant Field Values

MIN_CRUISE_DISTANCE

public static final double MIN_CRUISE_DISTANCE
The minimal distance to be taken by the ship.

See Also:
Constant Field Values

MIN_BUS_DISTANCE

public static final double MIN_BUS_DISTANCE
The minimal distance to be taken by the bus.

See Also:
Constant Field Values

MIN_TRAIN_DISTANCE

public static final double MIN_TRAIN_DISTANCE
The minimal distance to be taken by the train.

See Also:
Constant Field Values

MAX_WALK_DISTANCE

public static final double MAX_WALK_DISTANCE
The maximal distance to be taken by walk.

See Also:
Constant Field Values

MIN_TAXI_DISTANCE

public static final double MIN_TAXI_DISTANCE
The minimal distance to be taken by the taxi.

See Also:
Constant Field Values

MAX_TAXI_DISTANCE

public static final double MAX_TAXI_DISTANCE
The maximal distance to be taken by the taxi.

See Also:
Constant Field Values
Method Detail

GetMeansOfTransportation

public java.util.ArrayList GetMeansOfTransportation(Location origin,
                                                    Location destination)
Gets a list of means of transportation appropriate for the main part of travek between the two given locations.

Parameters:
origin - An origin of the travel.
destination - A destination of the travel.
Returns:
A list of means of tranportation. A list must contain instances of Integers set to the one of the values assigned to the means of tranportation.
See Also:
MeanOfTransportation.AIRPLANE, MeanOfTransportation.BUS, MeanOfTransportation.SHIP, MeanOfTransportation.TAXI, MeanOfTransportation.TRAIN, MeanOfTransportation.WALK