All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.Distribution
java.lang.Object
|
+----scrobble.Distribution
- public class Distribution
- extends Object
-
averageLength
- Contains the average number of words in a dictionnary it is initialised to 100
-
debug
- if true, enables the printing of debug informations on the console.
-
distriFile
- Contains the name of the file that will be used as a word source
-
letter
-
-
letters
- Contains all the words of the dictionnary created
-
myLetter
-
-
str
-
-
Distribution(String)
-
-
getLetters()
- Returns the vector of Letters
-
loadFile()
- This method loads the words in the
distriFile
and adds them to the
listOfLetters
Vector.
-
main(String[])
-
-
toString()
- Returns a string representation of the Distribution.
debug
static boolean debug
- if true, enables the printing of debug informations on the console.
letter
Letter letter
myLetter
Letter myLetter
distriFile
String distriFile
- Contains the name of the file that will be used as a word source
letters
Vector letters
- Contains all the words of the dictionnary created
str
StringTokenizer str
averageLength
int averageLength
- Contains the average number of words in a dictionnary it is initialised to 100
Distribution
public Distribution(String file)
main
public static void main(String args[])
toString
public String toString()
- Returns a string representation of the Distribution.
- Overrides:
- toString in class Object
getLetters
public Vector getLetters()
- Returns the vector of Letters
loadFile
void loadFile()
- This method loads the words in the
distriFile
and adds them to the
listOfLetters
Vector. This function has no parameters.
All Packages Class Hierarchy This Package Previous Next Index