orc.runtime.sites
Class ThreadedPartialSite

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.ThreadedPartialSite
All Implemented Interfaces:
Callable
Direct Known Subclasses:
Prompt

public abstract class ThreadedPartialSite
extends Site

Abstract class for partial sites whose calls may block (the Java thread). A separate thread is created for every call.

Author:
quark

Field Summary
 
Fields inherited from class orc.runtime.values.Value
futureNotReady
 
Constructor Summary
ThreadedPartialSite()
           
 
Method Summary
 void callSite(Args args, Token caller)
          Must be implemented by subclasses to implement the site behavior
abstract  java.lang.Object evaluate(Args args)
           
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall, type
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, signal, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedPartialSite

public ThreadedPartialSite()
Method Detail

callSite

public void callSite(Args args,
                     Token caller)
Description copied from class: Site
Must be implemented by subclasses to implement the site behavior

Specified by:
callSite in class Site
Parameters:
args - list of argument values
caller - where the result should be sent

evaluate

public abstract java.lang.Object evaluate(Args args)
                                   throws TokenException
Throws:
TokenException