sidnet.stack.users.marco_project.packet_centric.routing
Class NZMessage
java.lang.Object
sidnet.stack.users.marco_project.packet_centric.routing.NZMessage
- All Implemented Interfaces:
- JistAPI.Timeless, Message
public class NZMessage
- extends java.lang.Object
- implements Message
Fields inherited from interface jist.swans.misc.Message |
NULL |
Constructor Summary |
NZMessage()
Creates a new instance of NZMessage |
NZMessage(int queryId,
long s_seq,
long timeSent,
Message payload)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queryId
public int queryId
s_seq
public long s_seq
timeSent
public long timeSent
NZMessage
public NZMessage(int queryId,
long s_seq,
long timeSent,
Message payload)
NZMessage
public NZMessage()
- Creates a new instance of NZMessage
getPath
public Location2D[] getPath()
setPath
public void setPath(Location2D[] path)
getPayload
public Message getPayload()
getSourceLocation
public Location2D getSourceLocation()
setSourceLocation
public void setSourceLocation(Location2D loc)
getQuery
public Query getQuery()
setQuery
public void setQuery(Query newQuery)
getSize
public int getSize()
- 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 arrayoffset
- byte array starting offset
copy
public NZMessage copy()