scheduler.modulesinterfaces
Interface FeedbackTravelPartsProvider

All Known Implementing Classes:
FeedbackTravelPartsProviderStub

public interface FeedbackTravelPartsProvider

An interface that must be implemented by a class providing the feedback travel parts (expert knowledge).

Author:
Piotrek

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.
 

Method Detail

GetFeedbackTravelParts

public 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.

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:
MeanOfTransportation.AIRPLANE, MeanOfTransportation.BUS, MeanOfTransportation.TRAIN, MeanOfTransportation.SHIP, FeedbackStationsPair

SetTravelConstraints

public void SetTravelConstraints(TravelConstraints constraints)
Sets the travel constraints providing the forbidden means of transportation.

Parameters:
constraints - Travel constraints specifying the forbidden means of transportation.