gov.nih.nlm.mms.browser
Class WordSearchFinder.Options

java.lang.Object
  extended by gov.nih.nlm.mms.browser.WordSearchFinder.Options
Enclosing class:
WordSearchFinder

public static class WordSearchFinder.Options
extends Object

Options is the model of the WordSearchFinder.OptionsGUI dialog.


Field Summary
protected static int SCORE_THRESHOLD_DIVIDER
           
 
Constructor Summary
WordSearchFinder.Options(WordSearchFinder wordSearchFinder)
          Constructs an WordSearchFinder.Options model with an observer being passed to it.
 
Method Summary
 double getEstimatedCostStopThreshold()
          Returns the threshold at which the estimated cost is too high for search execution.
 double getEstimatedCostWarnThreshold()
          Returns the threshold at which the user is warned that the estimated cost is is high for search execution.
 Language getLanguage()
          Returns the Language of the index that will be searched.
 WordSearchFinder.RadioButtonChoice getRadioButtonChoice()
          Gets the radio button choice.
 double getScoreThreshold()
          Returns the score threshold.
 void setEstimatedCostStopThreshold(double estimatedCostStopThreshold)
          Sets the threshold at which the estimated cost is too high for search execution.
 void setEstimatedCostWarnThreshold(double estimatedCostWarnThreshold)
          Sets the threshold at which the user is warned that the estimated cost is is high for search execution.
 void setLanguage(Language language)
          Sets the Language of the index that will be searched.
 void setRadioButtonChoice(WordSearchFinder.RadioButtonChoice radioButtonChoice)
          Sets the radio button choice.
 void setScoreThreshold(double scoreThreshold)
          Sets the score threshold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCORE_THRESHOLD_DIVIDER

protected static final int SCORE_THRESHOLD_DIVIDER
See Also:
Constant Field Values
Constructor Detail

WordSearchFinder.Options

public WordSearchFinder.Options(WordSearchFinder wordSearchFinder)
Constructs an WordSearchFinder.Options model with an observer being passed to it.

Parameters:
wordSearchFinder - WordSearchFinder panel, which is an observer of the model
Method Detail

getRadioButtonChoice

public WordSearchFinder.RadioButtonChoice getRadioButtonChoice()
Gets the radio button choice.

Returns:
WordSearchFinder.RadioButtonChoice.

setRadioButtonChoice

public void setRadioButtonChoice(WordSearchFinder.RadioButtonChoice radioButtonChoice)
Sets the radio button choice.

Parameters:
radioButtonChoice - WordSearchFinder.RadioButtonChoice.

getScoreThreshold

public double getScoreThreshold()
Returns the score threshold.

Returns:
the score threshold.

setScoreThreshold

public void setScoreThreshold(double scoreThreshold)
Sets the score threshold.

Parameters:
scoreThreshold -

getEstimatedCostStopThreshold

public double getEstimatedCostStopThreshold()
Returns the threshold at which the estimated cost is too high for search execution.

Returns:
estimated cost stop threshold

setEstimatedCostStopThreshold

public void setEstimatedCostStopThreshold(double estimatedCostStopThreshold)
Sets the threshold at which the estimated cost is too high for search execution.

Parameters:
estimatedCostStopThreshold - estimated cost stop threshold

getEstimatedCostWarnThreshold

public double getEstimatedCostWarnThreshold()
Returns the threshold at which the user is warned that the estimated cost is is high for search execution.

Returns:
estimated cost warn threshold

setEstimatedCostWarnThreshold

public void setEstimatedCostWarnThreshold(double estimatedCostWarnThreshold)
Sets the threshold at which the user is warned that the estimated cost is is high for search execution.

Parameters:
estimatedCostWarnThreshold - estimated cost warn threshold

getLanguage

public Language getLanguage()
Returns the Language of the index that will be searched. The default is "ENG".

Returns:
Language

setLanguage

public void setLanguage(Language language)
Sets the Language of the index that will be searched.

Parameters:
language - Language


Copyright ©2005