sidnet.stack.users.marco_project.packet_centric.routing
Class AckMessage

java.lang.Object
  extended by sidnet.stack.users.marco_project.packet_centric.routing.AckMessage
All Implemented Interfaces:
JistAPI.Timeless, Message

public class AckMessage
extends java.lang.Object
implements Message


Field Summary
 int routeId
           
 long sequenceNumber
           
 Coordinate snk
           
 Coordinate src
           
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
AckMessage(Coordinate src, Coordinate snk, int routeId, long sequenceNumber)
           
 
Method Summary
 void getBytes(byte[] b, int offset)
          Store packet into byte array.
 int getSize()
          Return packet size or Constants.ZERO_WIRE_SIZE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

public Coordinate src

snk

public Coordinate snk

routeId

public int routeId

sequenceNumber

public long sequenceNumber
Constructor Detail

AckMessage

public AckMessage(Coordinate src,
                  Coordinate snk,
                  int routeId,
                  long sequenceNumber)
Method Detail

getBytes

public void getBytes(byte[] b,
                     int offset)
Store packet into byte array.

Specified by:
getBytes in interface Message
Parameters:
b - destination byte array
offset - byte array starting offset

getSize

public int getSize()
Return packet size or Constants.ZERO_WIRE_SIZE.

Specified by:
getSize in interface Message
Returns:
packet size [in bytes]