org.objectweb.proactive.calcium
Class Interpreter

java.lang.Object
  extended by org.objectweb.proactive.calcium.Interpreter
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MultiThreadedManager.CallableInterpreter

public class Interpreter
extends java.lang.Object
implements java.io.Serializable

This class corresponds to a skeleton interpreter, which can be seen as a worker of the skeleton framework. The interpreter will loop taking the top skeletal instruction from the task's instruction stack and execute it. When the instruction is executed, the task's stack can be modified. For example the "if" skeleton will choose which branch must be computed and place this branch in the task's stack. The loop will continue to execute until a task is found to have children tasks, or the task has no more instructions. In either case, the task (and it's children) will be returned.

Author:
The ProActive Team (mleyton)
See Also:
Serialized Form

Constructor Summary
Interpreter()
           
 
Method Summary
<T> Task<T>
interpret(Task<T> task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter

public Interpreter()
Method Detail

interpret

public <T> Task<T> interpret(Task<T> task)


Copyright 2001-2007 INRIA All Rights Reserved.