org.dawb.passerelle.jython
Class ActorInterpreterUtils

java.lang.Object
  extended by org.dawb.passerelle.jython.ActorInterpreterUtils

public class ActorInterpreterUtils
extends java.lang.Object


Constructor Summary
ActorInterpreterUtils()
           
 
Method Summary
static org.python.util.PythonInterpreter getInterpreterForRun(ptolemy.actor.AtomicActor actor)
          Returns the global interpreter for this run.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorInterpreterUtils

public ActorInterpreterUtils()
Method Detail

getInterpreterForRun

public static org.python.util.PythonInterpreter getInterpreterForRun(ptolemy.actor.AtomicActor actor)
                                                              throws java.lang.Exception
Returns the global interpreter for this run. This means that future nodes can use the same interpreter. This is faster as a new one is not started and previous values are available in memory.

Parameters:
actor -
Returns:
Throws:
java.lang.Exception