scheduler.modules
Class ChangesJudgerStub

java.lang.Object
  extended byscheduler.modules.ChangesJudgerStub
All Implemented Interfaces:
ChangesJudger

public final class ChangesJudgerStub
extends java.lang.Object
implements ChangesJudger

A class judging if it is wise no to take a given change.

Author:
Piotrek

Field Summary
private  TravelConstraints travelConstraints
          The current travel travelConstraints.
 
Constructor Summary
ChangesJudgerStub()
           
 
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.
 
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

ChangesJudgerStub

public ChangesJudgerStub()
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.

Specified by:
ShouldDropChange in interface ChangesJudger
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)
Description copied from interface: ChangesJudger
Sets the travel constraints providing the minimal duration of change.

Specified by:
SetTravelConstraints in interface ChangesJudger
Parameters:
constraints - Travel constraints specifying the minimal duration of change.
See Also:
ChangesJudger.SetTravelConstraints(scheduler.TravelConstraints)