comirva.mlearn
Class GHSOMTrainingThread

java.lang.Object
  extended by java.lang.Thread
      extended by comirva.mlearn.GHSOMTrainingThread
All Implemented Interfaces:
Runnable

public class GHSOMTrainingThread
extends Thread

Thread for training a GHSOM


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  GHSOM ghsom
           
(package private)  GHSOMConfig ghsomCfg
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GHSOMTrainingThread(GHSOM som)
          Creates a SOMTrainingThread for training the SOM som which has already been initialized.
GHSOMTrainingThread(GHSOM som, GHSOMConfig ghsomCfg, JLabel sb)
          Creates a SOMTrainingThread for training the SOM som which has already been initialized.
GHSOMTrainingThread(GHSOM som, GHSOMConfig ghsomCfg, JLabel sb, JProgressBar pb)
          Creates a SOMTrainingThread for training the SOM som which has already been initialized.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ghsom

GHSOM ghsom

ghsomCfg

GHSOMConfig ghsomCfg
Constructor Detail

GHSOMTrainingThread

public GHSOMTrainingThread(GHSOM som)
Creates a SOMTrainingThread for training the SOM som which has already been initialized.

Parameters:
som - the SOM that should be trained

GHSOMTrainingThread

public GHSOMTrainingThread(GHSOM som,
                           GHSOMConfig ghsomCfg,
                           JLabel sb)
Creates a SOMTrainingThread for training the SOM som which has already been initialized.

Parameters:
som - the SOM that should be trained
somCfg - the configuration of the SOM
sb - a JLabel representing the status bar (for updating the UI while training)

GHSOMTrainingThread

public GHSOMTrainingThread(GHSOM som,
                           GHSOMConfig ghsomCfg,
                           JLabel sb,
                           JProgressBar pb)
Creates a SOMTrainingThread for training the SOM som which has already been initialized. During calculation the progress bar will be set to indeterminate

Parameters:
som - the SOM that should be trained
ghsomCfg - the configuration fo the SOM
sb - a JLabel representing the status bar
pb - a JProgressBar representing the progress bar (for progress indication)
See Also:
GHSOMTrainingThread(GHSOM, GHSOMConfig, JLabel)
Method Detail

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()