scheduler.modulesinterfaces
Interface ChangesJudger

All Known Implementing Classes:
ChangesJessJudger, ChangesJudgerStub

public interface ChangesJudger

An interface that must be implemented by a class that will judge if to drop a specified changes or not.

Author:
Piotrek

Method Summary
 void SetTravelConstraints(TravelConstraints constraints)
          Sets the travel constraints providing the minimal duration of change.
 boolean ShouldDropChange(ConnectionsFinderTask task, ConnectionsFinderTask changeTask, TravelPart travelPart, boolean fRevert)
          Checks whether it is wise to do not take the given change.
 

Method Detail

ShouldDropChange

public boolean ShouldDropChange(ConnectionsFinderTask task,
                                ConnectionsFinderTask changeTask,
                                TravelPart travelPart,
                                boolean fRevert)
Checks whether it is wise to do not take the given change.

Parameters:
task - A task describing the current connection.
changeTask - A task describing the change.
travelPart - A travel part that is being solved. It provides the destination.
fRevert - Specifies whether the planning is perfomred with the arrival date limit.
Returns:
A boolean value indicating whether to drop the given change.

SetTravelConstraints

public void SetTravelConstraints(TravelConstraints constraints)
Sets the travel constraints providing the minimal duration of change.

Parameters:
constraints - Travel constraints specifying the minimal duration of change.