scheduler.modules
Class MeansOfTransportationChooserStub

java.lang.Object
  extended byscheduler.modules.MeansOfTransportationChooserStub
All Implemented Interfaces:
MeansOfTransportationProvider

public final class MeansOfTransportationChooserStub
extends java.lang.Object
implements MeansOfTransportationProvider

A stub providing a set of rules to choose a proper means of transportation for the two given locations.

Author:
Piotrek

Field Summary
 
Fields inherited from interface scheduler.modulesinterfaces.MeansOfTransportationProvider
MAX_TAXI_DISTANCE, MAX_WALK_DISTANCE, MIN_BUS_DISTANCE, MIN_CRUISE_DISTANCE, MIN_FLIGHT_DISTANCE, MIN_TAXI_DISTANCE, MIN_TRAIN_DISTANCE
 
Constructor Summary
MeansOfTransportationChooserStub()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeansOfTransportationChooserStub

public MeansOfTransportationChooserStub()
Method Detail

GetMeansOfTransportation

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

Specified by:
GetMeansOfTransportation in interface MeansOfTransportationProvider
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:
MeansOfTransportationProvider.GetMeansOfTransportation(world.Location, world.Location)