|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.compiler.tools.jperf.JPerf
public class JPerf
This class represents the perfect hashing function generator
Constructor Summary | |
---|---|
JPerf(String[] keywords,
String[] header,
String[] footer)
Constructs a JPerf object with default load factor of 5 |
|
JPerf(String[] keywords,
String[] header,
String[] footer,
double loadFactor)
Constructs a JPerf object |
Method Summary | |
---|---|
void |
build()
Builds tables and graph. |
void |
genCode(String fileName)
Dumps result to class source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPerf(String[] keywords, String[] header, String[] footer, double loadFactor)
keywords
- the keywords to hashheader
- the verbatim part to output at the beginning of the filefooter
- the verbatim part to output at the end of the fileloadFactor
- factor the load factorpublic JPerf(String[] keywords, String[] header, String[] footer)
keywords
- the keywords to hashheader
- the verbatim part to output at the beginning of the filefooter
- the verbatim part to output at the end of the fileMethod Detail |
---|
public void build()
public void genCode(String fileName) throws IOException
fileName
- the name of the output file.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |