avrora.gui
Class VisualRadioMonitor
java.lang.Object
avrora.util.help.HelpCategory
avrora.monitors.MonitorFactory
avrora.gui.VisualRadioMonitor
- All Implemented Interfaces:
- HelpItem
- public class VisualRadioMonitor
- extends MonitorFactory
This is a prototype for a "global monitor." Several
different nodes are all displayed on the same one panel.
Basically, this monitor will display radio packet transmissions
as dots on the screen. You can see transmission delays across
nodes.
The internal code here is not well documented and will soon be entirely
rewritten to a) accomodate a new way of handeling global monitors and
b) a new way of accessing data inside the simulator.
Constructor Summary |
VisualRadioMonitor()
The constructor for the VisualPCMonitor class builds a new MonitorFactory
capable of creating monitors for each Simulator instance passed to the
newMonitor() method. |
Method Summary |
Monitor |
newMonitor(Simulator s)
The newMonitor() method creates a new monitor that is capable of monitoring the stack
height of the program over its execution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
masterPanel
public static javax.swing.JPanel masterPanel
optionsPanel
public static javax.swing.JPanel optionsPanel
isDisplayed
public static boolean isDisplayed
allCurrentMonitors
public static java.util.Vector allCurrentMonitors
allCurrentGraphEvents
public static java.util.Vector allCurrentGraphEvents
numofnodes
public static int numofnodes
VisualRadioMonitor
public VisualRadioMonitor()
- The constructor for the
VisualPCMonitor
class builds a new MonitorFactory
capable of creating monitors for each Simulator
instance passed to the
newMonitor()
method.
newMonitor
public Monitor newMonitor(Simulator s)
- The
newMonitor()
method creates a new monitor that is capable of monitoring the stack
height of the program over its execution.
- Specified by:
newMonitor
in class MonitorFactory
- Parameters:
s
- the simulator to create a monitor for
- Returns:
- an instance of the
Monitor
interface for the specified simulator