avrora.monitors
Class SleepMonitor.Monitor

java.lang.Object
  extended byavrora.monitors.SleepMonitor.Monitor
All Implemented Interfaces:
Monitor, Simulator.Event
Enclosing class:
SleepMonitor

public class SleepMonitor.Monitor
extends java.lang.Object
implements Monitor, Simulator.Event


Field Summary
protected  long awakeCycles
           
 Program program
           
 Simulator simulator
           
protected  long sleepCycles
           
 
Method Summary
 void fire()
          The fire() method is called when the event to which it is tied happens with in the simulator.
 void report()
          The report() method is called after the simulation is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simulator

public final Simulator simulator

program

public final Program program

sleepCycles

protected long sleepCycles

awakeCycles

protected long awakeCycles
Method Detail

report

public void report()
Description copied from interface: Monitor
The report() method is called after the simulation is complete. The monitor generates a textual or other format representation of the information collected during the execution of the program.

Specified by:
report in interface Monitor

fire

public void fire()
Description copied from interface: Simulator.Event
The fire() method is called when the event to which it is tied happens with in the simulator.

Specified by:
fire in interface Simulator.Event