org.jactr.scripting
Class JavascriptParser

java.lang.Object
  extended by org.jactr.scripting.JavascriptParser
All Implemented Interfaces:
java.lang.Runnable

public class JavascriptParser
extends java.lang.Object
implements java.lang.Runnable

Description of the Class

Author:
harrison

Constructor Summary
JavascriptParser(java.io.Reader reader, org.mozilla.javascript.Context context, org.mozilla.javascript.Scriptable scope, java.io.Writer output, java.io.Writer error, java.lang.String prompt)
          Constructor for the JavascriptParser object
 
Method Summary
 void defineVariable(java.lang.String variableName, java.lang.Object object)
          Description of the Method
 IModel loadModel(java.lang.String modelName)
          Description of the Method
 void quit()
          Description of the Method
 void run()
          Main processing method for the JavascriptParser object
 void run(IModel model)
          Main processing method for the JavascriptParser object
 void step(IModel model)
          Description of the Method
 void step(IModel model, int cycles)
          Description of the Method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptParser

public JavascriptParser(java.io.Reader reader,
                        org.mozilla.javascript.Context context,
                        org.mozilla.javascript.Scriptable scope,
                        java.io.Writer output,
                        java.io.Writer error,
                        java.lang.String prompt)
Constructor for the JavascriptParser object

Parameters:
reader - Description of the Parameter
context - Description of the Parameter
scope - Description of the Parameter
output - Description of the Parameter
error - Description of the Parameter
prompt - Description of the Parameter
Method Detail

defineVariable

public void defineVariable(java.lang.String variableName,
                           java.lang.Object object)
Description of the Method

Parameters:
variableName - Description of the Parameter
object - Description of the Parameter

loadModel

public IModel loadModel(java.lang.String modelName)
Description of the Method

Parameters:
modelName - Description of the Parameter
Returns:
Description of the Return Value

quit

public void quit()
Description of the Method


run

public void run(IModel model)
Main processing method for the JavascriptParser object

Parameters:
model - Description of the Parameter

step

public void step(IModel model,
                 int cycles)
Description of the Method

Parameters:
model - Description of the Parameter
cycles - Description of the Parameter

step

public void step(IModel model)
Description of the Method

Parameters:
model - Description of the Parameter

run

public void run()
Main processing method for the JavascriptParser object

Specified by:
run in interface java.lang.Runnable