fr.umlv.gramofone.ui
Class GMTask

java.lang.Object
  extended by fr.umlv.gramofone.ui.GMTask

public class GMTask
extends java.lang.Object

Cytoscape task for the plugin

Author:
fsikora

Constructor Summary
GMTask(CyNetwork network, MyPattern pattern)
           
 
Method Summary
 java.util.ArrayList<SubGraphResult> getResults()
          get the list of results found by the solver
 long getStartTime()
           
 java.lang.String getTitle()
           
 void halt()
           
 void run()
           
 void setStartTime()
           
 void setTaskMonitor(TaskMonitor taskMonitor)
           
 void updatePercent(float percent)
           
 void updateStatus(int nbResults)
          update the taskStatus with the number of current results found
 void updateStatusText(java.lang.String action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMTask

public GMTask(CyNetwork network,
              MyPattern pattern)
Method Detail

getTitle

public java.lang.String getTitle()

halt

public void halt()

run

public void run()

setTaskMonitor

public void setTaskMonitor(TaskMonitor taskMonitor)
                    throws java.lang.IllegalThreadStateException
Throws:
java.lang.IllegalThreadStateException

updateStatus

public void updateStatus(int nbResults)
update the taskStatus with the number of current results found

Parameters:
nbResults -

updateStatusText

public void updateStatusText(java.lang.String action)

updatePercent

public void updatePercent(float percent)

getResults

public java.util.ArrayList<SubGraphResult> getResults()
get the list of results found by the solver

Returns:
a sorted list of subgraph results

setStartTime

public void setStartTime()

getStartTime

public long getStartTime()