avrora.monitors
Class PacketMonitor

java.lang.Object
  extended byavrora.monitors.MonitorFactory
      extended byavrora.monitors.PacketMonitor

public class PacketMonitor
extends MonitorFactory

Energy monitor implementation. This class handles logging and recording of power consumption.

Furthermore the monitor shuts down the node when an energy limit is exceeded.


Field Summary
 
Fields inherited from class avrora.monitors.MonitorFactory
help, options, shortName
 
Constructor Summary
PacketMonitor()
          create a new monitor
 
Method Summary
 Monitor newMonitor(Simulator s)
          create a new monitor, calls the constructor
 
Methods inherited from class avrora.monitors.MonitorFactory
getShortName, processOptions, reportQuantity, reportQuantity, reportQuantity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketMonitor

public PacketMonitor()
create a new monitor

Method Detail

newMonitor

public Monitor newMonitor(Simulator s)
create a new monitor, calls the constructor

Specified by:
newMonitor in class MonitorFactory
Parameters:
s - the Simulator instance to create the monitor for
Returns:
an instance of the Monitor interface that represents the monitor for the simulator
See Also:
MonitorFactory.newMonitor(avrora.sim.Simulator)