ovm.polyd.runemu
Class RunaboutStat

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

public class RunaboutStat
extends java.lang.Object

A Runabout emulation that will gather statistics while it runs.

Use RunaboutStat as you would use a conventional Runabout. The method printStats can be used at any time to print out a summary of the dispatchers created using the RunaboutStat as a base class, and of the messages dispatched using those dispatchers. This emulation does not support primitives.


Method Summary
static void printStats()
          Prints a summary of dispatchers and the messages that they have dispatched so far.
 void visit(boolean o)
          Unused
 void visit(byte o)
          Unused
 void visit(char o)
          Unused
 void visit(double o)
          Unused
 void visit(float o)
          Unused
 void visit(int o)
          Unused
 void visit(long o)
          Unused
 void visit(java.lang.Object o)
          A "catch-all" visit method, redirected to visitDefault.
 void visit(short o)
          Unused
 void visitAppropriate(java.lang.Object obj)
          The bridge method that performs the actual dispatching, calling the appropriate visit for this object.
 void visitAppropriate(java.lang.Object o, java.lang.Class c)
          The bridge method that performs the dispatching for objects or primitives (not available in this emulation).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

visit

public void visit(java.lang.Object o)
A "catch-all" visit method, redirected to visitDefault.

Parameters:
o - the object that should be visited

visit

public void visit(char o)
Unused


visit

public void visit(byte o)
Unused


visit

public void visit(int o)
Unused


visit

public void visit(long o)
Unused


visit

public void visit(float o)
Unused


visit

public void visit(double o)
Unused


visit

public void visit(short o)
Unused


visit

public void visit(boolean o)
Unused


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

visitAppropriate

public void visitAppropriate(java.lang.Object o,
                             java.lang.Class c)
The bridge method that performs the dispatching for objects or primitives (not available in this emulation).

Parameters:
o - the object that should be visited (possibly a wrapped primitive)
c - the class of the object (possibly a primitive type)

printStats

public static void printStats()
Prints a summary of dispatchers and the messages that they have dispatched so far.