avrora.monitors
Class EnergyProfiler.Monitor.SleepProbe

java.lang.Object
  extended byavrora.monitors.EnergyProfiler.Monitor.SleepProbe
All Implemented Interfaces:
Simulator.Probe
Enclosing class:
EnergyProfiler.Monitor

public class EnergyProfiler.Monitor.SleepProbe
extends java.lang.Object
implements Simulator.Probe


Constructor Summary
EnergyProfiler.Monitor.SleepProbe()
           
 
Method Summary
 void fireAfter(Instr i, int address, State s)
          In this case, nothing is done.
 void fireBefore(Instr i, int address, State s)
          fired before a sleep mode is entered, it logs the previos state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnergyProfiler.Monitor.SleepProbe

public EnergyProfiler.Monitor.SleepProbe()
Method Detail

fireBefore

public void fireBefore(Instr i,
                       int address,
                       State s)
fired before a sleep mode is entered, it logs the previos state

Specified by:
fireBefore in interface Simulator.Probe
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
s - the state of the simulation
See Also:
Simulator.Probe.fireBefore(avrora.core.Instr, int, avrora.sim.State)

fireAfter

public void fireAfter(Instr i,
                      int address,
                      State s)
In this case, nothing is done. However, the interface requires an implementation

Specified by:
fireAfter in interface Simulator.Probe
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
s - the state of the simulation
See Also:
Simulator.Probe.fireAfter(avrora.core.Instr, int, avrora.sim.State)