|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ants.jxtagnutant.Keywords
Provides a holder for keywords, read from an ASCII file with a set of keywords on each line.
| Constructor Summary | |
Keywords(String kwFile)
Loads the specified keyword file, entirely. |
|
Keywords(String kwFile,
int lines,
double mean)
Loads the specified keyword file, limited by the number of keyword lines to load into the keyword list. |
|
| Method Summary | |
String |
getKeyword(int index)
Returns the keyword stored in the given position. |
String |
getLogRndKeyword()
Returns a random (exponentional distribution) keyword from the keywordList. |
String |
getRndKeyword()
Returns a random (uniformly distributed) keyword from the keywordList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Keywords(String kwFile)
throws FileNotFoundException
kwFile - the filename of the keyword file.
public Keywords(String kwFile,
int lines,
double mean)
throws FileNotFoundException
kwFile - the filename of the keyword file.lines - the number of lines to load; used to limit the
number of keyword lines to load into the keywordList.| Method Detail |
public String getKeyword(int index)
index - position into the keywordList.
String containing a set of keywords
associated with the given index position in the keywordList.public String getRndKeyword()
String containing a set of keywords.public String getLogRndKeyword()
String containing a set of keywords.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||