scheduler.modules
Class MeansOfTransportationJessChooser

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

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

A JESS based provider of potentail means of transportation for the first step of planning algorithm.

Author:
Piotrek

Field Summary
private  jess.Rete rete
          The Java Expert Shell System used to support rules genereting the proper means of transportation.
 
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
MeansOfTransportationJessChooser()
          Constructor.
 
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
 

Field Detail

rete

private jess.Rete rete
The Java Expert Shell System used to support rules genereting the proper means of transportation.

Constructor Detail

MeansOfTransportationJessChooser

public MeansOfTransportationJessChooser()
Constructor.

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)