ptolemy.caltrop
Class PtolemyPlatform

java.lang.Object
  extended by ptolemy.caltrop.PtolemyPlatform
All Implemented Interfaces:
caltrop.interpreter.util.Platform

public class PtolemyPlatform
extends java.lang.Object
implements caltrop.interpreter.util.Platform

The PtolemyPlatform class contains code that configures the CAL interpreter infrastructure for use inside the Ptolemy II software. In particular, it contains a context and a method that creates the global environment to be used with Ptolemy.

Since:
Ptolemy II 4.0
Version:
$Id: PtolemyPlatform.java 47482 2007-12-06 18:33:55Z cxh $
Author:
Jörn W. Janneck, Christopher Chang, Steve Neuendorffer
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (neuendor)

Field Summary
private static caltrop.interpreter.Context _theContext
          This Context represents the Ptolemy II system of data objects in a way that can be used by the DataflowActorInterpreter.
static caltrop.interpreter.util.Platform thePlatform
          The singleton platform.
 
Constructor Summary
PtolemyPlatform()
           
 
Method Summary
 caltrop.interpreter.Context context()
           
 caltrop.interpreter.environment.Environment createGlobalEnvironment()
           
 caltrop.interpreter.environment.Environment createGlobalEnvironment(caltrop.interpreter.environment.Environment parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thePlatform

public static final caltrop.interpreter.util.Platform thePlatform
The singleton platform.


_theContext

private static final caltrop.interpreter.Context _theContext
This Context represents the Ptolemy II system of data objects in a way that can be used by the DataflowActorInterpreter. The interpreter infrastructure relies on a client-provided context for any manipulation of data values.

See Also:
DataflowActorInterpreter, ExprEvaluator, StmtEvaluator
Constructor Detail

PtolemyPlatform

public PtolemyPlatform()
Method Detail

context

public caltrop.interpreter.Context context()
Specified by:
context in interface caltrop.interpreter.util.Platform

createGlobalEnvironment

public caltrop.interpreter.environment.Environment createGlobalEnvironment()
Specified by:
createGlobalEnvironment in interface caltrop.interpreter.util.Platform

createGlobalEnvironment

public caltrop.interpreter.environment.Environment createGlobalEnvironment(caltrop.interpreter.environment.Environment parent)
Specified by:
createGlobalEnvironment in interface caltrop.interpreter.util.Platform