Sim.Routing.Champ
Class RREPHeader

java.lang.Object
  extended by Sim.Routing.Champ.RREPHeader
All Implemented Interfaces:
ProtocolFrame

public class RREPHeader
extends java.lang.Object
implements ProtocolFrame


Constructor Summary
RREPHeader(int source, int dest, int seqNum, int nodeReplyFrom, java.util.LinkedList previousHops, int hopCount, double age, int routeLength)
          Creates a new instance of RREPHeader
 
Method Summary
 double getAge()
           
 int getDest()
           
 int getHopCount()
           
 int getNodeReplyFrom()
           
 java.util.LinkedList<java.lang.Integer> getPreviousHops()
           
 int getRouteLength()
           
 int getSeqNum()
           
 int getSize()
          Returns the "serialized" size of this portion of the packet, in bytes.
 int getSource()
           
 void setAge(double age)
           
 void setDest(int dest)
           
 void setHopCount(int hopCount)
           
 void setNodeReplyFrom(int nodeReplyFrom)
           
 void setPreviousHops(java.util.LinkedList<java.lang.Integer> previousHops)
           
 void setRouteLength(int routeLength)
           
 void setSeqNum(int seqNum)
           
 void setSource(int source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RREPHeader

public RREPHeader(int source,
                  int dest,
                  int seqNum,
                  int nodeReplyFrom,
                  java.util.LinkedList previousHops,
                  int hopCount,
                  double age,
                  int routeLength)
Creates a new instance of RREPHeader

Parameters:
source -
dest -
seqNum -
prevHop -
Method Detail

getSize

public int getSize()
Description copied from interface: ProtocolFrame
Returns the "serialized" size of this portion of the packet, in bytes.

Specified by:
getSize in interface ProtocolFrame

getSource

public int getSource()

setSource

public void setSource(int source)

getDest

public int getDest()

setDest

public void setDest(int dest)

getSeqNum

public int getSeqNum()

setSeqNum

public void setSeqNum(int seqNum)

getPreviousHops

public java.util.LinkedList<java.lang.Integer> getPreviousHops()

setPreviousHops

public void setPreviousHops(java.util.LinkedList<java.lang.Integer> previousHops)

getHopCount

public int getHopCount()

setHopCount

public void setHopCount(int hopCount)

getRouteLength

public int getRouteLength()

setRouteLength

public void setRouteLength(int routeLength)

setAge

public void setAge(double age)

getAge

public double getAge()

getNodeReplyFrom

public int getNodeReplyFrom()

setNodeReplyFrom

public void setNodeReplyFrom(int nodeReplyFrom)