avrora.monitors
Class CallMonitor

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

public class CallMonitor
extends MonitorFactory

The CallMonitor class implements a monitor that is capable of tracing the call/return behavior of a program while it executes.


Field Summary
 
Fields inherited from class avrora.monitors.MonitorFactory
options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
CallMonitor()
          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
 

Constructor Detail

CallMonitor

public CallMonitor()
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