interact
Class Interactor

java.lang.Object
  extended byinteract.Interactor
All Implemented Interfaces:
java.lang.Runnable

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

An Interactor provides a window for interacting with a Jscheme listener that is useful for debugging Java applications. A user can provide an Interactor with name value pairs that are bound as Jscheme global variables for easy reference.

Currently there can be only one Interactor at a time. If a second one is started, because of global io variables, The old window will become useless.


Constructor Summary
Interactor(boolean newThread, java.lang.String name, java.lang.Object[] pairs, int rows, int cols, java.lang.String[] files, JScheme js)
          Most general Interactor constructor.
Interactor(java.lang.Object it)
          Start a new interactor in a new thread with Object, it, bound to the Jscheme global it.
Interactor(java.lang.Object[] pairs, JScheme js)
          Start a new interactor in a new thread with the Object[], Pairs, providing String "name", Object value pairs that become Jscheme global bindings.
Interactor(java.lang.Object it, JScheme js)
          Start a new interactor in a new thread with Object, it, bound to the Jscheme global it.
 
Method Summary
static void main(java.lang.String[] args)
          Run the interactor.
 void readEvalWriteLoop(java.lang.String prompt)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interactor

public Interactor(java.lang.Object it)
Start a new interactor in a new thread with Object, it, bound to the Jscheme global it.


Interactor

public Interactor(java.lang.Object it,
                  JScheme js)
Start a new interactor in a new thread with Object, it, bound to the Jscheme global it.


Interactor

public Interactor(java.lang.Object[] pairs,
                  JScheme js)
Start a new interactor in a new thread with the Object[], Pairs, providing String "name", Object value pairs that become Jscheme global bindings.


Interactor

public Interactor(boolean newThread,
                  java.lang.String name,
                  java.lang.Object[] pairs,
                  int rows,
                  int cols,
                  java.lang.String[] files,
                  JScheme js)
Most general Interactor constructor.

Parameters:
newThread - Start Interactor in a new thread?
name - Name of JFrame.
pairs - Name value pairs bound to Jscheme global variables.
rows - Number of rows.
cols - Number of columns.
files - Additional arguments as in jsint.Scheme.main().
Method Detail

readEvalWriteLoop

public void readEvalWriteLoop(java.lang.String prompt)

run

public void run()
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
Run the interactor.