jist.runtime
Class Bootstrap

java.lang.Object
  extended by jist.runtime.Entity.Empty
      extended by jist.runtime.Bootstrap
All Implemented Interfaces:
Entity, Timeless
Direct Known Subclasses:
Bootstrap.Bsh, Bootstrap.JavaMain, Bootstrap.Jython

public abstract class Bootstrap
extends Entity.Empty

Bootstrap entities to start simulations.

Since:
JIST1.0
Version:
$Id: Bootstrap.java,v 1.17 2004/04/06 16:07:43 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
(package private) static class Bootstrap.Bsh
          A special-purpose Entity used to bootstrap the simulation.
(package private) static class Bootstrap.JavaMain
          A special-purpose Entity used to bootstrap the simulation.
(package private) static class Bootstrap.Jython
          A special-purpose Entity used to bootstrap the simulation.
(package private) static class Bootstrap.StaticRunnableCaller
          Shell class to perform static invocations.
 
Nested classes/interfaces inherited from interface jist.runtime.Entity
Entity.Empty, Entity.Static
 
Field Summary
static java.lang.reflect.Method method_startSimulation
          Method stub for event that starts the simulation.
 
Fields inherited from class jist.runtime.Entity.Empty
_jistField__ref
 
Constructor Summary
protected Bootstrap()
          Create a new bootstrap event; called only by sub-classes.
 
Method Summary
static void create(int type, Controller controller, java.lang.String name, java.lang.String[] args, java.lang.Object properties)
          Create and enqueue a bootstrap event.
abstract  void startSimulation(Rewriter rewriter, java.lang.String name, java.lang.String[] args, java.lang.Object properties)
          Entity method (invoked in simulation time) to perform bootstrap event.
 
Methods inherited from class jist.runtime.Entity.Empty
_jistMethod_Get__ref, _jistMethod_Set__ref
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method_startSimulation

public static java.lang.reflect.Method method_startSimulation
Method stub for event that starts the simulation.

Constructor Detail

Bootstrap

protected Bootstrap()
Create a new bootstrap event; called only by sub-classes.

Method Detail

create

public static void create(int type,
                          Controller controller,
                          java.lang.String name,
                          java.lang.String[] args,
                          java.lang.Object properties)
                   throws java.rmi.RemoteException
Create and enqueue a bootstrap event.

Parameters:
type - bootstrap event type
controller - where to register the bootstrap entity and enqueue event
name - script or application name
args - command-line arguments
properties - object passed through to specific bootstrap implementation
Throws:
java.rmi.RemoteException - distributed simulation error

startSimulation

public abstract void startSimulation(Rewriter rewriter,
                                     java.lang.String name,
                                     java.lang.String[] args,
                                     java.lang.Object properties)
Entity method (invoked in simulation time) to perform bootstrap event.

Parameters:
rewriter - rewriting class loader instance
name - script or application name
args - command-line arguments
properties - object passed through to specific bootstrap implementation