com.irs.jam
Class JAM

java.lang.Object
  |
  +--com.irs.jam.JAM
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class JAM
extends java.lang.Object
implements java.io.Serializable, java.lang.Runnable

The JAM Agent application interface

See Also:
Serialized Form

Constructor Summary
JAM()
          Default constructor
JAM(Interpreter interpreter)
          Constructor with Interpreter
JAM(java.lang.String[] argv)
          Constructor w/ command-line arguments
 
Method Summary
 Interpreter getInterpreter()
           
static void main(java.lang.String[] argv)
          Command-line interface for users to start Jam agent.
 void myStop()
          Stop the currently executing thread safely.
 void run()
          Overrides the run() method in the Thread parent class.
 boolean running()
          Returns true if the interpreter is running.
 boolean stopped()
          Returns true if this thread has been stopped.
 boolean think()
          Re-entry point for restartable JAM agents.
 boolean think(Interpreter interpreter)
          Entry-point for deserialized agents to restart.
 boolean think(java.lang.String[] argv)
          Entry-point for invoking or re-invoking agents from Java code (in contrast to starting it from a command-line).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAM

public JAM()
Default constructor

JAM

public JAM(java.lang.String[] argv)
Constructor w/ command-line arguments

JAM

public JAM(Interpreter interpreter)
Constructor with Interpreter
Method Detail

getInterpreter

public Interpreter getInterpreter()

myStop

public void myStop()
Stop the currently executing thread safely.

stopped

public boolean stopped()
Returns true if this thread has been stopped.
See Also:
myStop()

running

public boolean running()
Returns true if the interpreter is running.

main

public static void main(java.lang.String[] argv)
Command-line interface for users to start Jam agent.

think

public boolean think(Interpreter interpreter)
Entry-point for deserialized agents to restart.

think

public boolean think()
Re-entry point for restartable JAM agents.

run

public void run()
Overrides the run() method in the Thread parent class.
Specified by:
run in interface java.lang.Runnable
See Also:
Dan Damouth (ORINCON Corp): added for invocation as a thread. Exception throwing from Martin Klesen (DFKI)

think

public boolean think(java.lang.String[] argv)
              throws java.io.IOException,
                     ParseException
Entry-point for invoking or re-invoking agents from Java code (in contrast to starting it from a command-line).