|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.runtime.values.Value orc.runtime.sites.Site orc.runtime.sites.EvalSite
public abstract class EvalSite
Abstract class for sites with a total and immediate semantics: evaluate the arguments and return a value without blocking and without affecting the Orc engine. Essentially, subclasses of this class represent sites without any special concurrent behavior. Subclasses must implement the method evaluate, which takes an argument list and returns a single value.
Field Summary |
---|
Fields inherited from class orc.runtime.values.Value |
---|
futureNotReady |
Constructor Summary | |
---|---|
EvalSite()
|
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 |
---|
public EvalSite()
Method Detail |
---|
public void callSite(Args args, Token caller) throws TokenException
Site
callSite
in class Site
args
- list of argument valuescaller
- where the result should be sent
TokenException
public abstract java.lang.Object evaluate(Args args) throws TokenException
TokenException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |