avrora.gui
Class VisualRadioMonitor.VisualMonitor

java.lang.Object
  extended byavrora.gui.VisualRadioMonitor.VisualMonitor
All Implemented Interfaces:
Monitor, VisualMonitor
Enclosing class:
VisualRadioMonitor

public class VisualRadioMonitor.VisualMonitor
extends java.lang.Object
implements VisualMonitor


Field Summary
 ProgramProfiler profile
           
 Program program
           
 Simulator simulator
           
 GraphEvents theGraph
           
 javax.swing.JPanel visualOptionsPanel
           
 javax.swing.JPanel visualPanel
           
 java.lang.Object vSync
           
 
Method Summary
 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

simulator

public final Simulator simulator

program

public final Program program

profile

public final ProgramProfiler profile

visualPanel

public javax.swing.JPanel visualPanel

visualOptionsPanel

public javax.swing.JPanel visualOptionsPanel

theGraph

public GraphEvents theGraph

vSync

public java.lang.Object vSync
Method Detail

updateDataAndPaint

public void updateDataAndPaint()
Description copied from interface: VisualMonitor
This function should be called by the thread that periodically repaints the monitors chalkaboard. It is assumed that this function will also handle any internal data maniuplations that are necessary

Specified by:
updateDataAndPaint in interface VisualMonitor

getGraph

public GraphEvents getGraph()
Description copied from interface: VisualMonitor
This is a temporary hack...once Global Monitors is rewritten to be more robust, this will be deleted

Specified by:
getGraph in interface VisualMonitor

setVisualPanel

public void setVisualPanel(javax.swing.JPanel thePanel,
                           javax.swing.JPanel theOptionsPanel)
Description copied from interface: VisualMonitor
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

Specified by:
setVisualPanel in interface VisualMonitor
Parameters:
thePanel - The main display panel for the monitor
theOptionsPanel - The panel that the monitor can display options to

report

public void report()
The report() method generates a textual report after the simulation is complete. The report does nothing in this case, because this is a visual monitor

Specified by:
report in interface VisualMonitor