|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
client.GUI_Client
public class GUI_Client
Class that interacts with the GUI and the Space to provide the power of the Space to the GUI
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GUI_Client(java.lang.String host)
The Client that will connect to a host running a space. |
Method Summary | |
---|---|
void |
finish(Result r)
A method that will add the result into the resultQ. |
Result |
getResult()
Returns the first result in the result Q |
Shared |
getShared()
Goes to the Space and requests its shared value. |
boolean |
hasResult()
Tells if the client is holding a Result |
boolean |
isReady()
Tells if the client is ready to start issuing tasks. |
void |
run()
Causes the client to lookup the Space and then start the statistics frame. |
void |
startTask(Task task)
The way that a GUI issues a task into the system. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public GUI_Client(java.lang.String host)
host
- Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void startTask(Task task)
task
- public void finish(Result r)
r
- the result to be storedpublic boolean hasResult()
public Result getResult()
public boolean isReady()
public Shared getShared()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |