Sim.Routing.Champ
Class NormalPacketHeader

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

public class NormalPacketHeader
extends java.lang.Object
implements ProtocolFrame


Constructor Summary
NormalPacketHeader(int sequenceNumber, int sourceAddress, int currentNodeAddress, int destination)
          Creates a new instance of NormalPacketHeader
 
Method Summary
 int getDestination()
           
 int getPreviousHopAddress()
           
 int getSequenceNumber()
           
 int getSize()
          Returns the "serialized" size of this portion of the packet, in bytes.
 int getSourceAddress()
           
 void setDestination(int destination)
           
 void setPreviousHopAddress(int previousHopAddress)
           
 void setSequenceNumber(int sequenceNumber)
           
 void setSourceAddress(int sourceAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalPacketHeader

public NormalPacketHeader(int sequenceNumber,
                          int sourceAddress,
                          int currentNodeAddress,
                          int destination)
Creates a new instance of NormalPacketHeader

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

getSequenceNumber

public int getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(int sequenceNumber)

getSourceAddress

public int getSourceAddress()

setSourceAddress

public void setSourceAddress(int sourceAddress)

getPreviousHopAddress

public int getPreviousHopAddress()

setPreviousHopAddress

public void setPreviousHopAddress(int previousHopAddress)

getDestination

public int getDestination()

setDestination

public void setDestination(int destination)