gnu.mapping
Class Future

java.lang.Object
  extended by java.lang.Thread
      extended by gnu.mapping.Future
All Implemented Interfaces:
java.lang.Runnable

public class Future
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 RunnableClosure closure
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Future(Procedure action)
           
Future(Procedure action, CallContext parentContext)
           
Future(Procedure action, CallContext parentContext, Environment penvironment)
           
Future(Procedure action, Environment penvironment, InPort in, OutPort out, OutPort err)
           
 
Method Summary
 CallContext getCallContext()
          Get the CallContext we use for this Thread.
 Environment getEnvironment()
           
 void run()
           
 java.lang.String toString()
           
 java.lang.Object waitForResult()
           
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

closure

public RunnableClosure closure
Constructor Detail

Future

public Future(Procedure action,
              CallContext parentContext)

Future

public Future(Procedure action,
              CallContext parentContext,
              Environment penvironment)

Future

public Future(Procedure action,
              Environment penvironment,
              InPort in,
              OutPort out,
              OutPort err)

Future

public Future(Procedure action)
Method Detail

getCallContext

public final CallContext getCallContext()
Get the CallContext we use for this Thread.


getEnvironment

public Environment getEnvironment()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

waitForResult

public java.lang.Object waitForResult()
                               throws java.lang.Throwable
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread