|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.gui.VisualRegMonitor.VisualMonitor
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 | |
ProgramProfiler |
profile
|
Program |
program
|
Simulator |
simulator
|
GraphNumbers |
theGraph
|
javax.swing.JPanel |
visualOptionsPanel
|
javax.swing.JPanel |
visualPanel
|
Method Summary | |
void |
fireAfter(State s,
int address)
The fireAfter() method is called after the probed instruction executes. |
void |
fireBefore(State s,
int address)
The fireBefore() method is called before the probed instruction executes. |
GraphEvents |
getGraph()
This is a temporary hack...once Global Monitors is rewritten to be more robust, this will be deleted |
void |
report()
The report() method generates a textual report after the simulation is complete.
|
void |
setVisualPanel(javax.swing.JPanel thePanel,
javax.swing.JPanel theOptionsPanel)
This is called right after a monitor is actually init (when the sim is just beginning It physically let's the new monitor "know" about it's painting surfaces Note that it's possible with the new implementation that this function will be unnecessary |
void |
updateDataAndPaint()
This function should be called by the thread that periodically repaints the monitors chalkaboard. |
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
public final ProgramProfiler profile
public javax.swing.JPanel visualPanel
public javax.swing.JPanel visualOptionsPanel
public GraphNumbers theGraph
Method Detail |
public GraphEvents getGraph()
VisualMonitor
getGraph
in interface VisualMonitor
public void updateDataAndPaint()
VisualMonitor
updateDataAndPaint
in interface VisualMonitor
public void setVisualPanel(javax.swing.JPanel thePanel, javax.swing.JPanel theOptionsPanel)
VisualMonitor
Note that it's possible with the new implementation that this function will be unnecessary
setVisualPanel
in interface VisualMonitor
thePanel
- The main display panel for the monitortheOptionsPanel
- The panel that the monitor can display options topublic void fireBefore(State s, int address)
Simulator.Probe
fireBefore()
method is called before the probed instruction executes.
fireBefore
in interface Simulator.Probe
s
- the state of the simulationaddress
- the address at which this instruction residespublic void fireAfter(State s, int address)
Simulator.Probe
fireAfter()
method is called after the probed instruction executes.
fireAfter
in interface Simulator.Probe
s
- the state of the simulationaddress
- the address at which this instruction residespublic void report()
report()
method generates a textual report after the simulation is complete.
The report does nothing in this case, because this is a visual monitor
report
in interface VisualMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |