sidnet.stack.users.k_shortest_path.routing
Class MessageInitP2P

java.lang.Object
  extended by sidnet.stack.users.k_shortest_path.routing.MessageInitP2P
All Implemented Interfaces:
JistAPI.Timeless, Message

public class MessageInitP2P
extends java.lang.Object
implements Message


Field Summary
 Query query
           
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
MessageInitP2P(Query query)
          Creates a new instance of MessageInitP2P
 
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

query

public Query query
Constructor Detail

MessageInitP2P

public MessageInitP2P(Query query)
Creates a new instance of MessageInitP2P

Method Detail

getSize

public int getSize()
Description copied from interface: Message
Return packet size or Constants.ZERO_WIRE_SIZE.

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

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