|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibz.gui.TaskManager
public class TaskManager
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 |
---|
private javax.swing.SwingWorker<java.lang.Void,java.lang.Void> task
private boolean isKmeans
private int k
private ProgressGui progressGui
Constructor Detail |
---|
public TaskManager(boolean isKmeans, ProgressGui progressGui)
Method Detail |
---|
public void startupKMeans(java.util.Vector<Instance> Instances, int parseInt, int parseInt2, boolean clearnoise)
Instances
- parseInt
- parseInt2
- clearnoise
- public void startupDBScan(java.util.List<Instance> Instances, int e, int minp)
Instances
- e
- minp
- public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void killProcess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |