org.eml.sir.retr
Class GUISearchResult

java.lang.Object
  extended byorg.eml.sir.retr.GUISearchResult

public class GUISearchResult
extends java.lang.Object

The result that a GUISearchRanker instance creates.

Author:
Kostadin Cholakov

Constructor Summary
GUISearchResult()
          Create a new GUISearchResult instance.
 
Method Summary
 void createExplanationFile(java.lang.String fileName)
          Create explanation file.
 java.lang.String createInfo()
          Create information about ranks, proffesion names and scores which is then displayed in the user interface.
 java.lang.String getQueryString()
          Obtain the query string
 void setExplanations(java.util.HashMap explanations)
          Set the explanations.
 void setIndexProperties(IndexProperties ip)
          Set the index properies
 void setProfNames(java.util.HashMap profNames)
          Sets the profession names
 void setQueryString(java.lang.String queryString)
          Sets the query string- this is the string which was created after stemming the user input
 void setRanking(java.util.ArrayList ranking)
          Rank the found results.
 void setScores(java.util.HashMap scores)
          Set scores for each found result
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUISearchResult

public GUISearchResult()
Create a new GUISearchResult instance.

Method Detail

setIndexProperties

public void setIndexProperties(IndexProperties ip)
Set the index properies

Parameters:
ip - the index props to set.

setExplanations

public void setExplanations(java.util.HashMap explanations)
Set the explanations.

Parameters:
explanations - the explanations to set.

setProfNames

public void setProfNames(java.util.HashMap profNames)
Sets the profession names

Parameters:
profNames - the profNames to set.

setQueryString

public void setQueryString(java.lang.String queryString)
Sets the query string- this is the string which was created after stemming the user input

Parameters:
queryString - the queryString to set.

getQueryString

public java.lang.String getQueryString()
Obtain the query string

Returns:
the query string

setRanking

public void setRanking(java.util.ArrayList ranking)
Rank the found results.

Parameters:
ranking - the ranking to set.

setScores

public void setScores(java.util.HashMap scores)
Set scores for each found result

Parameters:
scores - the scores to set.

createExplanationFile

public void createExplanationFile(java.lang.String fileName)
                           throws java.io.IOException
Create explanation file.

Parameters:
fileName - the destination file to save the explanations
Throws:
java.io.IOException

createInfo

public java.lang.String createInfo()
Create information about ranks, proffesion names and scores which is then displayed in the user interface.

Returns:
the information for the user interface