avrora.monitors
Class InteractiveMonitor

java.lang.Object
  extended byavrora.util.help.HelpCategory
      extended byavrora.monitors.MonitorFactory
          extended byavrora.monitors.InteractiveMonitor
All Implemented Interfaces:
HelpItem

public class InteractiveMonitor
extends MonitorFactory

The InteractiveMonitor class implements a monitor that allows the user to interact with the simulation as it is running.


Nested Class Summary
static class InteractiveMonitor.BreakPointProbe
           
 
Field Summary
protected  Option.List BREAKPOINTS
           
 
Fields inherited from class avrora.monitors.MonitorFactory
options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
InteractiveMonitor()
          The constructor for the CallMonitor class simply initializes the help for this class.
 
Method Summary
 Monitor newMonitor(Simulator s)
          The newMonitor() method simply creates a new call monitor for each simulator.
 
Methods inherited from class avrora.monitors.MonitorFactory
processOptions
 
Methods inherited from class avrora.util.help.HelpCategory
addCommandExample, addListSection, addOptionSection, addSection, addSubcategorySection, getHelp, getName, printHelp, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BREAKPOINTS

protected final Option.List BREAKPOINTS
Constructor Detail

InteractiveMonitor

public InteractiveMonitor()
The constructor for the CallMonitor class simply initializes the help for this class. Monitors are also help categories, so they will have an options section in their help that explains each option and its use.

Method Detail

newMonitor

public Monitor newMonitor(Simulator s)
The newMonitor() method simply creates a new call monitor for each simulator. The call monitor will print out each call, interrupt, and return during the execution of the program.

Specified by:
newMonitor in class MonitorFactory
Parameters:
s - the simulator to create a new monitor for
Returns:
a new monitor that tracks the call and return behavior of the simulator as it executes