Notification message to indicate the status of channel reservation for a particular request.
Modifiers | Name | Description |
---|---|---|
protected int |
from |
|
protected byte[] |
payload |
|
protected ReservationStatus |
status |
|
protected int |
to |
Constructor and description |
---|
ReservationStatusNtf
() Constructor to set the performative to Performative.INFORM. |
ReservationStatusNtf
(AgentID recipient) Constructor to specify the recipient agent/topic. |
ReservationStatusNtf
(ReservationReq request) Constructor to specify the original request associated with this message. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getFrom() Gets the address of the source node. |
|
byte[] |
getPayload() Gets payload information in byte[] format. |
|
ReservationStatus |
getStatus() Gets the current status of channel reservation for a particular reservation request. |
|
int |
getTo() Gets the address (NodeInfoParam.address) of the destination node. |
|
void |
setFrom(int from) Sets the address of the source node. |
|
void |
setPayload(byte[] payload) Sets payload information using a byte[]. |
|
void |
setStatus(ReservationStatus status) Sets the current status of channel reservation for a particular reservation request. |
|
void |
setTo(int to) Sets the address of the destination node. |
|
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.INFORM.
Constructor to specify the recipient agent/topic.
recipient
- ntf AgentIDConstructor to specify the original request associated with this message.
request
- request associated with this messageGets the address of the source node.
Gets payload information in byte[] format.
Gets the current status of channel reservation for a particular reservation request.
Gets the address (NodeInfoParam.address) of the destination node.
Sets the address of the source node.
from
- source addressSets payload information using a byte[].
payload
- payload info in byte[]Sets the current status of channel reservation for a particular reservation request.
status
- to one of the values in ReservationStatusSets the address of the destination node.
to
- destination addressCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd