Sim.Routing.Champ
Class RREPHeader
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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)