medusa.stringconnection
Class GetCogGraph
- java.lang.Object
-
- medusa.stringconnection.GetCogGraph
-
- All Implemented Interfaces:
- java.lang.Runnable
public class GetCogGraph extends java.lang.Object implements java.lang.RunnableGets a graph of COGS from STRING www.string.embl.de is maintained by Christian von Mering (mering@embl.de)
-
-
Constructor Summary
Constructors Constructor and Description GetCogGraph(java.lang.String url, int port, java.lang.String[] queries, float cutoff)Talks to the STRING serverside socket
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidgetCogGraphFromString()GraphgetGraph()Returns the graphintgetProgress()java.lang.StringgetStatus()Tells the other threads whatGetCogGraphis doing at the moment.booleanisDone()Returnstrueif the data transfer is finishedvoidrun()voidstart()voidstop()
-
-
-
Constructor Detail
-
GetCogGraph
public GetCogGraph(java.lang.String url, int port, java.lang.String[] queries, float cutoff)Talks to the STRING serverside socket- Parameters:
url-port-queries-cutoff-
-
-
Method Detail
-
getStatus
public java.lang.String getStatus()
Tells the other threads whatGetCogGraphis doing at the moment.- Returns:
- Status
-
getGraph
public Graph getGraph()
Returns the graph- Returns:
- the data from STRING
-
start
public void start()
-
stop
public void stop()
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
getProgress
public int getProgress()
-
isDone
public boolean isDone()
Returnstrueif the data transfer is finished- Returns:
trueif done
-
getCogGraphFromString
public void getCogGraphFromString() throws java.io.IOException, java.lang.NumberFormatException- Throws:
java.io.IOExceptionjava.lang.NumberFormatException
-
-
DMelt 3.0 © DataMelt by jWork.ORG