org.eml.sir.rel.disc
Class GUIRelatednessResult

java.lang.Object
  extended byorg.eml.sir.rel.disc.GUIRelatednessResult

public class GUIRelatednessResult
extends java.lang.Object

The result that a GUIRelatednessRanker instance creates.

Author:
Kostadin Cholakov

Constructor Summary
GUIRelatednessResult()
          Create a new GUIRelatednessResult instance.
 
Method Summary
 void createExplanationFile(java.lang.String fileName)
          Creates an explanation file for a given search.
 java.lang.String createInfo()
          Create information about ranks, proffesion names and scores which is then displayed in the user interface.
 void dropExplanations()
          Drop the explanations of this RelatednessResult instance.
 void setExplanations(java.util.HashMap explanations)
          Set explanations.
 void setInfo(java.lang.String info)
          Set the info regarding this result.
 void setProfessionNames(java.util.HashMap profNames)
          Set the profession names.
 void setRanking(java.util.ArrayList ranking)
          Set ranking of the found professions
 void setScores(java.util.HashMap scores)
          Set the scores for each profession
 void setWords(java.util.ArrayList words)
          Set query words.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIRelatednessResult

public GUIRelatednessResult()
Create a new GUIRelatednessResult instance.

Method Detail

setWords

public void setWords(java.util.ArrayList words)
Set query words.

Parameters:
words - The words to set.

setExplanations

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

Parameters:
explanations - The explanations to set.

dropExplanations

public void dropExplanations()
Drop the explanations of this RelatednessResult instance. This may help saving memory because explanations may get quite large.


setProfessionNames

public void setProfessionNames(java.util.HashMap profNames)
Set the profession names.

Parameters:
profNames - the profNames to set.

setRanking

public void setRanking(java.util.ArrayList ranking)
Set ranking of the found professions

Parameters:
ranking - the ranking to set.

setScores

public void setScores(java.util.HashMap scores)
Set the scores for each profession

Parameters:
scores - the scores to set.

setInfo

public void setInfo(java.lang.String info)
Set the info regarding this result.

Parameters:
info - the information

createExplanationFile

public void createExplanationFile(java.lang.String fileName)
                           throws java.io.IOException
Creates an explanation file for a given search.

Parameters:
fileName - the name of the explanation file
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