ranking
Class RankingManager

java.lang.Object
  extended by ranking.RankingManager

public class RankingManager
extends java.lang.Object

This class manages the set of ranking engines to be used to rank the results of analysis.


Constructor Summary
RankingManager(RankingEngine engine)
          Creates a new RankingManager and initializes the RankingEngine to use
 
Method Summary
 java.util.ArrayList<RankingResult> rerank(java.util.ArrayList<java.util.ArrayList<AnalysisResult>> analyses)
          Ranks the analysis results by summing each pages scores.
 void setRankingEngine(RankingEngine engine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankingManager

public RankingManager(RankingEngine engine)
Creates a new RankingManager and initializes the RankingEngine to use

Parameters:
engine - RankingEngine to use
Method Detail

setRankingEngine

public void setRankingEngine(RankingEngine engine)
Parameters:
engine -

rerank

public java.util.ArrayList<RankingResult> rerank(java.util.ArrayList<java.util.ArrayList<AnalysisResult>> analyses)
Ranks the analysis results by summing each pages scores.

Parameters:
analyses - The list page analyses. The outer list is each page, the inner list is the analysis results for a single page
Returns:
The list of ranked pages in order