avrora.monitors
Class EnergyMonitorLog.Monitor

java.lang.Object
  extended byavrora.monitors.EnergyMonitor.Monitor
      extended byavrora.monitors.EnergyMonitorLog.Monitor
All Implemented Interfaces:
EnergyMonitorBase, Monitor
Enclosing class:
EnergyMonitorLog

public class EnergyMonitorLog.Monitor
extends EnergyMonitor.Monitor
implements EnergyMonitorBase


Nested Class Summary
 
Nested classes inherited from class avrora.monitors.EnergyMonitor.Monitor
EnergyMonitor.Monitor.BatteryCheck
 
Field Summary
 
Fields inherited from class avrora.monitors.EnergyMonitor.Monitor
consumer, energyControl, simulator, state
 
Method Summary
 void fire(Energy energy)
          called when the state of the device changes this compoent logs these state changes
 void report()
          implemenation of report of Monitor class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

report

public void report()
implemenation of report of Monitor class. Called when the simulation ends and reports summaries for the power consumption of all devices to the stdout

Specified by:
report in interface Monitor
Overrides:
report in class EnergyMonitor.Monitor
See Also:
Monitor.report()

fire

public void fire(Energy energy)
called when the state of the device changes this compoent logs these state changes

Specified by:
fire in interface EnergyMonitorBase
Parameters:
energy -
See Also:
EnergyMonitorBase.fire(avrora.sim.Energy)