Request message sent by a client agent, to reserve the channel for a certain duration of time. Reservation notification message indicates the current state of channel reservation for a ReservationReq message.
Constructor and description |
---|
ReservationReq
() Constructor to set the performative to Performative.REQUEST. |
ReservationReq
(AgentID recipient) Constructor to specify the agent which provides Services.MAC. |
Type Params | Return Type | Name and description |
---|---|---|
|
float |
getDuration() Gets the duration for which the channel will be reserved (in seconds). |
|
byte[] |
getPayload() Gets the payload information in byte[]. |
|
Priority |
getPriority() Gets the priority of the reservation request. |
|
Long |
getStartTime() Gets the starting time for the reservation request. |
|
int |
getTo() Gets the NodeInfoParam.address of the destination node. |
|
float |
getTtl() Gets the time-to-live for the reservation request. |
|
boolean |
isReliable() Gets the value of reliable. |
|
void |
setDuration(float duration) Sets the duration for which the channel will be reserved, with the destination (in seconds). |
|
void |
setPayload(byte[] payload) Sets payload with meta information(in a byte[]), that the TX client agent communicates with RX node. |
|
void |
setPriority(Priority priority) Sets the priority of the reservation request. |
|
void |
setReliable(boolean reliable) Sets value to specify if current reservation requires reliability (in the form of mac layer acknowledgements), if supported by the underlying MAC agent. |
|
void |
setStartTime(Long time) Sets the starting time for the reservation request. |
|
void |
setTo(int to) Sets the address of the destination node. |
|
void |
setTtl(float ttl) Sets the time-to-live for the reservation request. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
toString, setRecipient, setPerformative, getPerformative, getRecipient, setSender, getSender, setMessageID, getMessageID, setInReplyTo, getInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor to set the performative to Performative.REQUEST.
Constructor to specify the agent which provides Services.MAC.
recipient
- AgentID.Gets the duration for which the channel will be reserved (in seconds).
Gets the payload information in byte[].
Gets the priority of the reservation request.
Gets the starting time for the reservation request. The time is in microseconds according to the Physical agent's clock.
Gets the NodeInfoParam.address of the destination node.
Gets the time-to-live for the reservation request.
Gets the value of reliable.
Sets the duration for which the channel will be reserved, with the destination (in seconds).
duration
- in millisecondsSets payload with meta information(in a byte[]), that the TX client agent communicates with RX node.
payload
- info in byte[]Sets the priority of the reservation request. A priority are advisory, and an underlying agent may choose to ignore it, if it does not support prioritization.
priority
- priority assigned to the request.Sets value to specify if current reservation requires reliability (in the form of mac layer acknowledgements), if supported by the underlying MAC agent.
reliable
- value to set/unset mac layer acknowledgementsSets the starting time for the reservation request. The time is in microseconds according to the Physical agent's clock.
time
- starting time in microseconds, or null to disable starting time.Sets the address of the destination node.
to
- destination addressSets the time-to-live for the reservation request. Time-to-live is advisory, and an agent may choose it ignore it. If a reservation request is dropped, a ReservationStatusNtf indicating a FAILURE must be sent for that request.
ttl
- time-to-live or NaN if no limit defined.Copyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd