ovm.polyd.runemu
Class RunaboutQuick

java.lang.Object
  extended by ovm.polyd.runemu.RunaboutQuick

public class RunaboutQuick
extends java.lang.Object

A Runabout emulation that uses PolyD factories to speed up the construction of new dispatchers. In order to take advantage of this emulation, the code of existing programs that use the Runabout neeeds to be slightly altered as follows:

public class Xyz extends RunaboutQuick {
 private static ovm.polyd.Factory fact=Runabout.prepare(Xyz.class);
  public Xyz() {
  super();
  fact.getDispatcher1(this);
 }
 ...visit() methods...
}


Field Summary
 RunaboutBase2 the$$$Dispatcher
          Internal use only.
 
Method Summary
static Factory prepare(java.lang.Class c)
          Prepares a new Factory, in order to create dispatchers that use RunaboutQuick.
 void visit(java.lang.Object o)
          A "catch-all" visit method.
 void visitAppropriate(java.lang.Object obj)
          The bridge method that performs the actual dispatching, calling the appropriate visit for this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

the$$$Dispatcher

public RunaboutBase2 the$$$Dispatcher
Internal use only.

Method Detail

prepare

public static Factory prepare(java.lang.Class c)
Prepares a new Factory, in order to create dispatchers that use RunaboutQuick.

Parameters:
c - the desired subclass of RunaboutQuick
Returns:
the new Factory.

visit

public void visit(java.lang.Object o)
A "catch-all" visit method. It will not further redispatch the message.

Parameters:
o - the object that should be visited

visitAppropriate

public void visitAppropriate(java.lang.Object obj)
The bridge method that performs the actual dispatching, calling the appropriate visit for this object.

Parameters:
obj - the object that should be visited