scheduler.modules
Class ChangesJessJudger

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

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

A JESS based changes judger deciding whether to drop the changes or not.

Author:
Piotrek

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

rete

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


travelConstraints

private TravelConstraints travelConstraints
The current travel travelConstraints.

Constructor Detail

ChangesJessJudger

public ChangesJessJudger()
Constructor.

Method Detail

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)

ShouldDropChange

public boolean ShouldDropChange(ConnectionsFinderTask task,
                                ConnectionsFinderTask changeTask,
                                TravelPart travelPart,
                                boolean fRevert)
Description copied from interface: ChangesJudger
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.
See Also:
ChangesJudger.ShouldDropChange(scheduler.ConnectionsFinderTask, scheduler.ConnectionsFinderTask, scheduler.TravelPart, boolean)