sidnet.stack.users.marco_project.node_centric.routing
Class UpdateMessage
java.lang.Object
sidnet.stack.users.marco_project.node_centric.routing.UpdateMessage
- All Implemented Interfaces:
- JistAPI.Timeless, Message
public class UpdateMessage
- extends java.lang.Object
- implements Message
Fields inherited from interface jist.swans.misc.Message |
NULL |
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 |
src
public Coordinate src
snk
public Coordinate snk
snkIP
public NetAddress snkIP
charge
public ElectricCharge charge
sequenceNumber
public long sequenceNumber
UpdateMessage
public UpdateMessage(Coordinate src,
Coordinate snk,
NetAddress snkIP,
ElectricCharge charge,
long sequenceNumber)
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
getSize
public int getSize()
- Return packet size or Constants.ZERO_WIRE_SIZE.
- Specified by:
getSize
in interface Message
- Returns:
- packet size [in bytes]