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