Sim.Routing.Champ
Class RERRHeader

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

public class RERRHeader
extends java.lang.Object
implements ProtocolFrame


Constructor Summary
RERRHeader(int src, int dest, int seqNum, int prevHop, int nodeSendingErr)
          Creates a new instance of RERRHeader
 
Method Summary
 int getDestination()
           
 int getNodeSendingErr()
           
 int getPreviousHop()
           
 int getSequenceNumber()
           
 int getSize()
          Returns the "serialized" size of this portion of the packet, in bytes.
 int getSource()
           
 void setDestination(int destination)
           
 void setNodeSendingErr(int nodeSendingErr)
           
 void setPreviousHop(int previousHop)
           
 void setSequenceNumber(int sequenceNumber)
           
 void setSource(int source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RERRHeader

public RERRHeader(int src,
                  int dest,
                  int seqNum,
                  int prevHop,
                  int nodeSendingErr)
Creates a new instance of RERRHeader

Parameters:
src -
dest -
seqNum -
prevHop -
nodeSendingErr -
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)

getDestination

public int getDestination()

setDestination

public void setDestination(int destination)

getSequenceNumber

public int getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(int sequenceNumber)

getPreviousHop

public int getPreviousHop()

setPreviousHop

public void setPreviousHop(int previousHop)

getNodeSendingErr

public int getNodeSendingErr()

setNodeSendingErr

public void setNodeSendingErr(int nodeSendingErr)