Notification of received datagram message created by DatagramReq.
| Constructor and description |
|---|
DatagramNtf
() |
DatagramNtf
(org.arl.fjage.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. |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class org.arl.fjage.Message |
org.arl.fjage.Message#toString(), org.arl.fjage.Message#setPerformative(org.arl.fjage.Performative), org.arl.fjage.Message#getPerformative(), org.arl.fjage.Message#setRecipient(org.arl.fjage.AgentID), org.arl.fjage.Message#getRecipient(), org.arl.fjage.Message#setSender(org.arl.fjage.AgentID), org.arl.fjage.Message#getSender(), org.arl.fjage.Message#setMessageID(java.lang.String), org.arl.fjage.Message#getMessageID(), org.arl.fjage.Message#setInReplyTo(java.lang.String), org.arl.fjage.Message#getInReplyTo(), org.arl.fjage.Message#setSentAt(long), org.arl.fjage.Message#getSentAt(), org.arl.fjage.Message#getJsonCache(), org.arl.fjage.Message#setJsonCache(java.lang.String), org.arl.fjage.Message#wait(long, int), org.arl.fjage.Message#wait(long), org.arl.fjage.Message#wait(), org.arl.fjage.Message#equals(java.lang.Object), org.arl.fjage.Message#hashCode(), org.arl.fjage.Message#getClass(), org.arl.fjage.Message#notify(), org.arl.fjage.Message#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.Groovy Documentation