uk.ac.ucl.che.esf.base
Class Method.Invocation

java.lang.Object
  extended by java.lang.Thread
      extended by uk.ac.ucl.che.esf.base.Method.Invocation
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Method

public class Method.Invocation
extends java.lang.Thread

Thread inner class to apply methods in the GUI interface. This is used so that the GUI does not lock up when long running methods are invoked. Of course, one should be careful with synchronization issues...


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Method.Invocation(EGO object, java.lang.String method)
          The constructor expects the object whose method will be applied.
 
Method Summary
 void run()
          This will be called by the thread manager
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Method.Invocation

public Method.Invocation(EGO object,
                         java.lang.String method)
The constructor expects the object whose method will be applied. The method is described by name and the invocation only works for 0 arguments methods with no return value at present.

Method Detail

run

public void run()
This will be called by the thread manager

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread