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 MemoryMonitor

    java.lang.Object
      avrora.util.help.HelpCategory
          avrora.monitors.MonitorFactory
              avrora.monitors.MemoryMonitor

All Implemented Interfaces:
  HelpItem

public class MemoryMonitor
extends MonitorFactory

The `MemoryMonitor` class implements a monitor that collects information about how the program accesses the data memory over its execution. For each RAM address it keeps an account of the number of reads and the number of writes and reports that information after the program is completed.

Nested Class Summary
`class` | `MemoryMonitor.Monitor`

Field Summary
`Option.List` | `LOCATIONS`
`Option.Bool` | `LOWER_ADDRESS`

Fields inherited from class avrora.monitors.MonitorFactory
`options`

Fields inherited from class avrora.util.help.HelpCategory
`COMPARATOR, help, name`

Constructor Summary
`MemoryMonitor()`

Method Summary
`Monitor` | `newMonitor(Simulator s)` The `newMonitor()` method creates a new monitor for the specified instance of `Simulator`.

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

### LOCATIONS

    public final Option.List LOCATIONS

### LOWER_ADDRESS

    public final Option.Bool LOWER_ADDRESS

Constructor Detail

### MemoryMonitor

    public MemoryMonitor()

Method Detail

### newMonitor

    public Monitor newMonitor(Simulator s)

  Description copied from class: `MonitorFactory`
  The `newMonitor()` method creates a new monitor for the specified instance of `Simulator`. The resulting monitor may insert probes, watches, or events into the simulation to collect information and later report that information after the simulation is complete.

  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

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