comirva.mlearn
Class SOMTrainingThread
java.lang.Object
java.lang.Thread
comirva.mlearn.SOMTrainingThread
- All Implemented Interfaces:
- Runnable
public class SOMTrainingThread
- extends Thread
This class implements a thread for
training the SOM. Since this may take
a while, it would freeze the program if
not executed as thread.
Method Summary |
void |
run()
This method is called when the thread is started. |
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 |
som
SOM som
somCfg
SOMConfig somCfg
SOMTrainingThread
public SOMTrainingThread(SOM som)
- Creates a SOMTrainingThread for training the SOM
som
which has already
been initialized.
- Parameters:
som
- the SOM that should be trained
SOMTrainingThread
public SOMTrainingThread(SOM som,
SOMConfig somCfg,
JLabel sb)
- Creates a SOMTrainingThread for training the SOM
som
which has already
been initialized.
- Parameters:
som
- the SOM that should be trainedsomCfg
- the configuration of the SOMsb
- a JLabel representing the status bar (for updating the UI while training)
SOMTrainingThread
public SOMTrainingThread(SOM som,
SOMConfig somCfg,
JLabel sb,
JProgressBar pb)
- Creates a SOMTrainingThread for training the SOM
som
which has already
been initialized.
- Parameters:
som
- the SOM that should be trainedsomCfg
- the configuration of the SOMsb
- a JLabel representing the status barpb
- a JProgressBar representing the progress bar- See Also:
SOMTrainingThread(SOM, SOMConfig, JLabel)
run
public void run()
- This method is called when the thread is started.
The SOM is initialized and trained and the user
is informed when training is finished (if the status bar was specified).
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
- See Also:
Runnable.run()