All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.Distribution

java.lang.Object
   |
   +----scrobble.Distribution

public class Distribution
extends Object

Variable Index

 o averageLength
Contains the average number of words in a dictionnary it is initialised to 100
 o debug
if true, enables the printing of debug informations on the console.
 o distriFile
Contains the name of the file that will be used as a word source
 o letter
 o letters
Contains all the words of the dictionnary created
 o myLetter
 o str

Constructor Index

 o Distribution(String)

Method Index

 o getLetters()
Returns the vector of Letters
 o loadFile()
This method loads the words in the distriFile and adds them to the listOfLetters Vector.
 o main(String[])
 o toString()
Returns a string representation of the Distribution.

Variables

 o debug
 static boolean debug
if true, enables the printing of debug informations on the console.

 o letter
 Letter letter
 o myLetter
 Letter myLetter
 o distriFile
 String distriFile
Contains the name of the file that will be used as a word source

 o letters
 Vector letters
Contains all the words of the dictionnary created

 o str
 StringTokenizer str
 o averageLength
 int averageLength
Contains the average number of words in a dictionnary it is initialised to 100

Constructors

 o Distribution
 public Distribution(String file)

Methods

 o main
 public static void main(String args[])
 o toString
 public String toString()
Returns a string representation of the Distribution.

Overrides:
toString in class Object
 o getLetters
 public Vector getLetters()
Returns the vector of Letters

 o 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