scheduler.modules
Class FeedbackTravelPartsProviderStub

java.lang.Object
  extended byscheduler.modules.FeedbackTravelPartsProviderStub
All Implemented Interfaces:
FeedbackTravelPartsProvider

public final class FeedbackTravelPartsProviderStub
extends java.lang.Object
implements FeedbackTravelPartsProvider

A stub providing the feedback travel parts (expert knowledge).

Author:
Piotrek

Field Summary
private  TravelConstraints travelConstraints
          The current travel travelConstraints.
 
Constructor Summary
FeedbackTravelPartsProviderStub()
           
 
Method Summary
 java.util.ArrayList GetFeedbackTravelParts(Location origin, Location destination, int meanOfTransportation)
          Gets a list of stations pairs to be taken into account when searching for the main parts of the travel division.
 void SetTravelConstraints(TravelConstraints constraints)
          Sets the travel constraints providing the forbidden means of transportation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

travelConstraints

private TravelConstraints travelConstraints
The current travel travelConstraints.

Constructor Detail

FeedbackTravelPartsProviderStub

public FeedbackTravelPartsProviderStub()
Method Detail

GetFeedbackTravelParts

public java.util.ArrayList GetFeedbackTravelParts(Location origin,
                                                  Location destination,
                                                  int meanOfTransportation)
Description copied from interface: FeedbackTravelPartsProvider
Gets a list of stations pairs to be taken into account when searching for the main parts of the travel division.

Specified by:
GetFeedbackTravelParts in interface FeedbackTravelPartsProvider
Parameters:
origin - An origin of the travel.
destination - A destination of the travel.
meanOfTransportation - A mean of transportation that is of interest.
Returns:
A list of pairs of stations for connections of the given mean of transportation. Each element of the result list is of the FeedbackStationsPair type. If there are is no feedback, an empty list s returned.
See Also:
FeedbackTravelPartsProvider.GetFeedbackTravelParts(world.Location, world.Location, int)

SetTravelConstraints

public void SetTravelConstraints(TravelConstraints constraints)
Description copied from interface: FeedbackTravelPartsProvider
Sets the travel constraints providing the forbidden means of transportation.

Specified by:
SetTravelConstraints in interface FeedbackTravelPartsProvider
Parameters:
constraints - Travel constraints specifying the forbidden means of transportation.
See Also:
FeedbackTravelPartsProvider.SetTravelConstraints(scheduler.TravelConstraints)