Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.monitors
Class EnergyMonitor

    java.lang.Object
      avrora.monitors.MonitorFactory
          avrora.monitors.EnergyMonitor

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

Fields inherited from class avrora.monitors.MonitorFactory
`help, options, shortName`

Constructor Summary
`EnergyMonitor()` create a new monitor
`EnergyMonitor(java.lang.String s1, java.lang.String s2)`

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

### EnergyMonitor

    public EnergyMonitor()

  create a new monitor

### EnergyMonitor

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD