scheduler.modulesinterfaces
Interface TravelSolutionsJudger

All Known Implementing Classes:
SchedulerCRNManager

public interface TravelSolutionsJudger

An interface that must be implemented by a class that will judge the travel solutions.

Author:
Piotrek

Method Summary
 void AddTravelSolution(ConnectionsFinderTask travelSolution, boolean fAccepted)
          Add the given travel solution to the history.
 double JudgeTravelSolution(ConnectionsFinderTask travelSolution)
          Judges the given travel solution.
 

Method Detail

JudgeTravelSolution

public double JudgeTravelSolution(ConnectionsFinderTask travelSolution)
Judges the given travel solution.

Parameters:
travelSolution - A travel solution to be judged.
Returns:
A similarity to the historical case. It is a value in range of [-1; 1], where -1 is 100% similarity to the rejected case and 1 is 100% similarity to the accepted case. Zero is returned if there is no historical data.

AddTravelSolution

public void AddTravelSolution(ConnectionsFinderTask travelSolution,
                              boolean fAccepted)
Add the given travel solution to the history.

Parameters:
travelSolution - A travel solution to be added.
fAccepted - Indicates whether this case has been accepted ot rejected by the user.