Sim.Routing.DSR
Class FloodingHeader

java.lang.Object
  extended by Sim.Routing.DSR.FloodingHeader
All Implemented Interfaces:
ProtocolFrame
Direct Known Subclasses:
RouteRequest

public abstract class FloodingHeader
extends java.lang.Object
implements ProtocolFrame

FloodingHeader is a generic header for any type of flooded packet.


Constructor Summary
FloodingHeader(int hopsRemaining)
           
 
Method Summary
 int getHopsRemaining()
           
 int getSize()
          Returns the "serialized" size of this portion of the packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloodingHeader

public FloodingHeader(int hopsRemaining)
Method Detail

getHopsRemaining

public int getHopsRemaining()

getSize

public int getSize()
Returns the "serialized" size of this portion of the packet.

Specified by:
getSize in interface ProtocolFrame