|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
bass.suggestion.SuggestionTool
public class SuggestionTool
The Worldfamous Suggestion Tool
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
deepScan
|
private java.lang.String |
fontTag
|
private DTO_Band[] |
inputData
|
private java.lang.StringBuffer |
output
|
private java.net.URL |
outputFile
|
(package private) java.lang.Object[][] |
sortedList
|
private java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> |
suggList
|
private java.lang.String[] |
tdBgs
|
private Gui |
theGui
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SuggestionTool(DTO_Band[] inputBands,
Gui gui,
boolean deepScan)
generates a new SuggestionTool |
|
| Method Summary | |
|---|---|
private DTO_Band[] |
generateBandArray(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
extracts the DTO's from the input and writes them to an DTO array |
private int[] |
generateIntArray(DTO_Band[] input)
Deprecated. not in use anymore, just leaving it, in case it makes sense some day |
void |
generateSuggestions()
generates suggestions |
void |
generateTop(int topWhat)
generates a html formated top XX (param) |
void |
removeBandsFromInputList()
removes the bands from the input data from the suggestion list |
void |
run()
|
private void |
shortenHashtable(int lastAverage)
removes unused elements from the hashtable until the hashtable is smaller than 500 elements (otherwise the sorting the hashtable will take forever) |
private java.lang.String |
writePointHistory(DTO_BandWithPoints band)
writes a html (in . |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private DTO_Band[] inputData
private Gui theGui
private java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> suggList
java.lang.Object[][] sortedList
private java.lang.StringBuffer output
private java.net.URL outputFile
private java.lang.String[] tdBgs
private java.lang.String fontTag
private boolean deepScan
| Constructor Detail |
|---|
public SuggestionTool(DTO_Band[] inputBands,
Gui gui,
boolean deepScan)
inputBands - the InputDatagui - the GUI-Reference for progressbar-access| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void generateSuggestions()
public void removeBandsFromInputList()
public void generateTop(int topWhat)
topWhat - e.g. top 10, 100, ...private int[] generateIntArray(DTO_Band[] input)
input - the input bands
private DTO_Band[] generateBandArray(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
input - the input bands
private java.lang.String writePointHistory(DTO_BandWithPoints band)
band - the band whose point history should be written
private void shortenHashtable(int lastAverage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||