|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.modules.ChangesJessJudger
A JESS based changes judger deciding whether to drop the changes or not.
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 |
private jess.Rete rete
private TravelConstraints travelConstraints
Constructor Detail |
public ChangesJessJudger()
Method Detail |
public void SetTravelConstraints(TravelConstraints constraints)
ChangesJudger
SetTravelConstraints
in interface ChangesJudger
constraints
- Travel constraints specifying the minimal duration of change.ChangesJudger.SetTravelConstraints(scheduler.TravelConstraints)
public boolean ShouldDropChange(ConnectionsFinderTask task, ConnectionsFinderTask changeTask, TravelPart travelPart, boolean fRevert)
ChangesJudger
ShouldDropChange
in interface ChangesJudger
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.
ChangesJudger.ShouldDropChange(scheduler.ConnectionsFinderTask, scheduler.ConnectionsFinderTask, scheduler.TravelPart, boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |