edu.gwu.simplenetsim
Class NetsimPacket

java.lang.Object
  extended by edu.gwu.simplenetsim.NetsimPacket
Direct Known Subclasses:
DatalinkPacket, NetworkPacket, TransportPacket

public class NetsimPacket
extends java.lang.Object

This is the base packet class, with optional info for the GUI. Note: shapes have not been implemented, but colors are. The color variable inherits down the hierarchy and can be set by any layer. The appropriate color then shows up in animation. This is useful for debugging - one can use a different color for control packets, for instance.


Field Summary
static int CIRCLE
           
static int IDCount
           
static int SQUARE
           
 
Constructor Summary
NetsimPacket()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CIRCLE

public static int CIRCLE

SQUARE

public static int SQUARE

IDCount

public static int IDCount
Constructor Detail

NetsimPacket

public NetsimPacket()