uk.ac.essex.ia.opview.runtime
Class OperatorInterpreterExecutor

java.lang.Object
  extended by uk.ac.essex.ia.opview.runtime.OperatorInterpreterExecutor
All Implemented Interfaces:
Interpreter

public class OperatorInterpreterExecutor
extends java.lang.Object
implements Interpreter

An executor implementation of an intepreter. This class will interprete a DAG of operators using an ExecutorService thread pool. Individual operators are handled by the ISingleNodeInterpreter implementations and an ExecutionContext is used to allow runtime access to the environment (eg the DAG, the current results).

You should have received a copy of GNU public license with this code. If not please visit this site


Constructor Summary
OperatorInterpreterExecutor()
           
 
Method Summary
 void execute(ApplicationFile file)
           
 IExecutionContext getExecutionContext()
           
 ApplicationFile getFile()
           
 void setFile(ApplicationFile file)
           
 void waitForCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorInterpreterExecutor

public OperatorInterpreterExecutor()
Method Detail

getFile

public ApplicationFile getFile()

setFile

public void setFile(ApplicationFile file)

waitForCompletion

public void waitForCompletion()

execute

public void execute(ApplicationFile file)
             throws InterpreterRuntimeException
Specified by:
execute in interface Interpreter
Throws:
InterpreterRuntimeException

getExecutionContext

public IExecutionContext getExecutionContext()
Specified by:
getExecutionContext in interface Interpreter