Notification of received datagram message created by DatagramReq.
Constructor and description |
---|
DatagramNtf
() |
DatagramNtf
(AgentID recipient) |
Type Params | Return Type | Name and description |
---|---|---|
|
byte[] |
getData() Gets the data as byte array. |
|
int |
getFrom() Gets the from/source node address. |
|
Priority |
getPriority() Gets the priority of the datagram. |
|
int |
getProtocol() Gets the protocol number. |
|
int |
getTo() Gets to or destination address. |
|
float |
getTtl() Gets the time-to-live for the datagram. |
|
void |
setData(byte[] data) Sets the data as byte array. |
|
void |
setFrom(int from) Sets from or source address. |
|
void |
setPriority(Priority priority) Sets the priority of the datagram. |
|
void |
setProtocol(int protocol) Sets protocol number. |
|
void |
setTo(int to) Sets the to address. |
|
void |
setTtl(float ttl) Sets the time-to-live for the datagram. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
setPerformative, toString, getSender, setMessageID, getSentAt, setRecipient, getInReplyTo, setSentAt, setSender, getPerformative, getRecipient, getMessageID, setInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Gets the data as byte array.
Gets the from/source node address.
Gets the priority of the datagram.
Gets the protocol number.
Gets to or destination address.
Gets the time-to-live for the datagram.
Sets the data as byte array.
data
- in byte arraySets from or source address.
from
- addressSets the priority of the datagram. A priority are advisory, and an agent may choose to ignore it, if it does not support prioritization.
priority
- priority assigned to the request.Sets protocol number.
protocol
- numberSets the to address.
to
- addressSets the time-to-live for the datagram. Time-to-live is advisory, and an agent may choose it ignore it.
ttl
- time-to-live (seconds) or NaN if no limit defined.Copyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd