public class Packet
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
byte[] |
dataPayload
The data payload carried in this packet, if any.
|
NetworkElement |
destinationAddr
Destination address, to which this packet is sent.
|
protected java.lang.String |
identifier
Packet identifier for reporting/debugging purposes.
|
boolean |
inError
Indicates whether this packet is corrupted by an error.
|
int |
length
Packet length [in bytes].
|
Constructor and Description |
---|
Packet(NetworkElement destinationAddr_,
byte[] dataPayload_)
Constructor.
|
public byte[] dataPayload
public NetworkElement destinationAddr
protected java.lang.String identifier
public boolean inError
true
.public int length
public Packet(NetworkElement destinationAddr_, byte[] dataPayload_)
destinationAddr_
- the destination address to which this packet is sentdataPayload_
- the data payload to be carried by this packet, if anypublic java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object