Datagram request message to send across data to a destination.
| Modifiers | Name | Description |
|---|---|---|
protected byte[] |
data |
|
protected int |
from |
|
protected Priority |
priority |
|
protected boolean |
progress |
|
protected int |
protocol |
|
protected java.lang.Boolean |
reliability |
|
protected Robustness |
robustness |
|
protected java.lang.String |
route |
|
protected boolean |
shortcircuit |
|
protected int |
to |
|
protected float |
ttl |
| Type | Name and description |
|---|---|
byte[] |
data |
Priority |
priority |
int |
protocol |
java.lang.Boolean |
reliability |
Robustness |
robustness |
java.lang.String |
route |
int |
to |
float |
ttl |
| Constructor and description |
|---|
DatagramReq
() |
DatagramReq
(org.arl.fjage.AgentID recipient) |
DatagramReq
(org.arl.fjage.AgentID recipient, DatagramReq req) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
byte[] |
getData()Gets the data in bytes. |
|
Priority |
getPriority()Gets the priority of the datagram. |
|
boolean |
getProgress()Gets whether progress notifications are requested. |
|
int |
getProtocol()Gets the protocol number. |
|
java.lang.Boolean |
getReliability()Gets the reliability. |
|
Robustness |
getRobustness()Gets the robustness. |
|
java.lang.String |
getRoute()Gets the route to be used for routing the datagram. |
|
boolean |
getShortcircuit()Gets whether the datagram may be short circuited. |
|
int |
getTo()Gets to/destination node address. |
|
float |
getTtl()Gets the time-to-live for the datagram. |
|
void |
setData(byte[] data)Sets data to be send across. |
|
void |
setPriority(Priority priority)Sets the priority of the datagram. |
|
void |
setProgress(boolean b)Sets whether progress notifications are requested. |
|
void |
setProtocol(int protocol)Sets the protocol number. |
|
void |
setReliability(java.lang.Boolean reliability)Sets the reliability. |
|
void |
setRobustness(Robustness robustness)Sets the robustness. |
|
void |
setRoute(java.lang.String route)Sets the route to be used for the datagram. |
|
void |
setShortcircuit(boolean b)Sets whether the datagram may be short circuited. |
|
void |
setTo(int to)Sets the to/destination node 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 in bytes.
Gets the priority of the datagram.
Gets whether progress notifications are requested.
Gets the protocol number.
Gets the reliability.
Gets the robustness.
Gets the route to be used for routing the datagram.
Gets whether the datagram may be short circuited.
Gets to/destination node address.
Gets the time-to-live for the datagram.
Sets data to be send across.
data - in bytesSets the priority of the datagram. Priority is advisory, and an agent may choose to ignore it, if it does not support prioritization.
priority - priority assigned to the request.Sets whether progress notifications are requested.
b - true if progress notifications are requested, false otherwise.Sets the protocol number.
protocol - numberSets the reliability.
reliability - true if reliable, false if unreliable, null if unspecifiedSets the robustness. Robustness is advisory, and an agent may choose to trade-off data rate to achieve increased robustness, if requested.
robustness - robustnessSets the route to be used for the datagram. Routing agents may use this information to route the datagram. All other agents should propagate this information unchanged.
route - UUID of the route to be used, null if none specified.Sets whether the datagram may be short circuited.
b - true if it may be short circuited, false otherwise.Sets the to/destination node 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