|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.Simulator.Probe.Empty
avrora.monitors.StackMonitor.Monitor
The Monitor class implements a monitor for the stack height that inserts a probe after
every instruction in the program and checks the stack height after each instruction is executed.
| Nested Class Summary |
| Nested classes inherited from class avrora.sim.Simulator.Probe |
Simulator.Probe.Empty |
| Field Summary | |
Program |
program
|
Simulator |
simulator
|
| Method Summary | |
void |
fireAfter(State s,
int pc)
The fireAfter() method is called after the probed instruction executes.
|
void |
report()
The report() method generates a textual report after the simulation is complete. |
| Methods inherited from class avrora.sim.Simulator.Probe.Empty |
fireBefore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final Simulator simulator
public final Program program
| Method Detail |
public void fireAfter(State s,
int pc)
Simulator.Probe.EmptyfireAfter() method is called after the probed instruction executes.
In the implementation of the Empty probe, this method is empty.
fireAfter in interface Simulator.ProbefireAfter in class Simulator.Probe.Emptys - the state of the simulationpc - the address at which this instruction residespublic void report()
report() method generates a textual report after the simulation is complete. The
text report contains the 3 smallest stack pointers encountered (tracking all three is necessary
because the stack pointer begins at 0 and then is initialized one byte at a time).
report in interface Monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||