avrora.monitors
Class PacketMonitor

java.lang.Object
  extended byavrora.util.help.HelpCategory
      extended byavrora.monitors.MonitorFactory
          extended byavrora.monitors.PacketMonitor
All Implemented Interfaces:
HelpItem

public class PacketMonitor
extends MonitorFactory

Packet monitor implementation. This class logs the number of packets, e.g. bytes sent and received.


Field Summary
protected  Option.Bool DISCARD
           
static int INTER_PACKET_TIME
           
protected  Option.Bool PACKETS
           
protected  Option.Bool PREAMBLE
           
 
Fields inherited from class avrora.monitors.MonitorFactory
options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
PacketMonitor()
          create a new monitor
 
Method Summary
 Monitor newMonitor(Simulator s)
          create a new monitor, calls the constructor
 
Methods inherited from class avrora.monitors.MonitorFactory
processOptions
 
Methods inherited from class avrora.util.help.HelpCategory
addCommandExample, addListSection, addOptionSection, addSection, addSubcategorySection, getHelp, getName, printHelp, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTER_PACKET_TIME

public static final int INTER_PACKET_TIME
See Also:
Constant Field Values

PACKETS

protected Option.Bool PACKETS

PREAMBLE

protected Option.Bool PREAMBLE

DISCARD

protected Option.Bool DISCARD
Constructor Detail

PacketMonitor

public PacketMonitor()
create a new monitor

Method Detail

newMonitor

public Monitor newMonitor(Simulator s)
create a new monitor, calls the constructor

Specified by:
newMonitor in class MonitorFactory
Parameters:
s - the Simulator instance to create the monitor for
Returns:
an instance of the Monitor interface that represents the monitor for the simulator
See Also:
MonitorFactory.newMonitor(avrora.sim.Simulator)