|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public static final double MIN_FLIGHT_DISTANCE
public static final double MIN_CRUISE_DISTANCE
public static final double MIN_BUS_DISTANCE
public static final double MIN_TRAIN_DISTANCE
public static final double MAX_WALK_DISTANCE
public static final double MIN_TAXI_DISTANCE
public static final double MAX_TAXI_DISTANCE
Method Detail |
public java.util.ArrayList GetMeansOfTransportation(Location origin, Location destination)
origin
- An origin of the travel.destination
- A destination of the travel.
MeanOfTransportation.AIRPLANE
,
MeanOfTransportation.BUS
,
MeanOfTransportation.SHIP
,
MeanOfTransportation.TAXI
,
MeanOfTransportation.TRAIN
,
MeanOfTransportation.WALK
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |