it.unibz.gui
Class TaskManager

java.lang.Object
  extended by it.unibz.gui.TaskManager
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class TaskManager
extends java.lang.Object
implements java.beans.PropertyChangeListener


Field Summary
private  boolean isKmeans
          Boolean to indicate when we are dealing with Kmean algorithm
private  int k
           
private  ProgressGui progressGui
           
private  javax.swing.SwingWorker<java.lang.Void,java.lang.Void> task
          An abstract class to perform lengthy GUI-interacting tasks in a dedicated thread.
 
Constructor Summary
TaskManager(boolean isKmeans, ProgressGui progressGui)
           
 
Method Summary
 void killProcess()
          Attempts to kill the task (the thread)
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Invoked when task's progress property changes.
 void startupDBScan(java.util.List<Instance> Instances, int e, int minp)
          Method responsible for starting the DBSCAN algorithm inside a task (a new thread)
 void startupKMeans(java.util.Vector<Instance> Instances, int parseInt, int parseInt2, boolean clearnoise)
          Method responsible for invoking the KMeans algorithm inside a task (a thread)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

private javax.swing.SwingWorker<java.lang.Void,java.lang.Void> task
An abstract class to perform lengthy GUI-interacting tasks in a dedicated thread.


isKmeans

private boolean isKmeans
Boolean to indicate when we are dealing with Kmean algorithm


k

private int k

progressGui

private ProgressGui progressGui
Constructor Detail

TaskManager

public TaskManager(boolean isKmeans,
                   ProgressGui progressGui)
Method Detail

startupKMeans

public void startupKMeans(java.util.Vector<Instance> Instances,
                          int parseInt,
                          int parseInt2,
                          boolean clearnoise)
Method responsible for invoking the KMeans algorithm inside a task (a thread)

Parameters:
Instances -
parseInt -
parseInt2 -
clearnoise -

startupDBScan

public void startupDBScan(java.util.List<Instance> Instances,
                          int e,
                          int minp)
Method responsible for starting the DBSCAN algorithm inside a task (a new thread)

Parameters:
Instances -
e -
minp -

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Invoked when task's progress property changes.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

killProcess

public void killProcess()
Attempts to kill the task (the thread)