|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.data.Packet
public class Packet
The class implements the packet, as specified in OLSRv2.
Constructor Summary | |
---|---|
Packet(java.util.ArrayList<Message> messages)
Constructor |
Method Summary | |
---|---|
byte[] |
getBytes()
Returns the bytes of the packet |
int |
getSequenceNumber()
Returns the packet sequence number |
void |
setSequenceNumber(int sequenceNumber)
Sets the packet sequence number |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Packet(java.util.ArrayList<Message> messages)
messages
- the messages to be added to the packetMethod Detail |
---|
public int getSequenceNumber()
public void setSequenceNumber(int sequenceNumber)
sequenceNumber
- the packet sequence numberpublic byte[] getBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |