avrora.monitors
Class EnergyMonitor

java.lang.Object
  extended byavrora.util.help.HelpCategory
      extended byavrora.monitors.MonitorFactory
          extended byavrora.monitors.EnergyMonitor
All Implemented Interfaces:
HelpItem
Direct Known Subclasses:
EnergyMonitorLog

public class EnergyMonitor
extends MonitorFactory

energy monitor implementation this class handles logging and recording of power consumption. Furthermore the monitor shutsdown the node, when an energy limit is exceeded.


Nested Class Summary
 class EnergyMonitor.Monitor
           
 
Field Summary
protected  Option.Double BATTERY
           
 
Fields inherited from class avrora.monitors.MonitorFactory
options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
EnergyMonitor()
          create a new monitor
EnergyMonitor(java.lang.String s2)
           
 
Method Summary
 Monitor newMonitor(Simulator s)
          create a new monitor, calls the constructor
 
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

BATTERY

protected final Option.Double BATTERY
Constructor Detail

EnergyMonitor

public EnergyMonitor()
create a new monitor


EnergyMonitor

public EnergyMonitor(java.lang.String s2)
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)