Request one or more parameters of an agent.
| Modifiers | Name | Description |
|---|---|---|
class |
ParameterReq.Entry |
Representation for parameter and value. |
| Constructor and description |
|---|
ParameterReq
() |
ParameterReq
(AgentID recipient) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
clear()clears all parameter requests. |
|
ParameterReq |
get(Parameter param)Requests a parameter. |
|
ParameterReq |
get(List<Parameter> param)Requests a list of parameters. |
|
int |
getIndex()Gets the index for index based parameters. |
|
List<Entry> |
requests()Gets a list of requests to be made. |
|
ParameterReq |
set(Parameter param, Object value)Sets a parameter value. |
|
void |
setIndex(int index)Sets the index for index based parameter. |
|
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 |
clears all parameter requests.
Requests a parameter.
param
- parameter to be requestedRequests a list of parameters.
param
- parameter list to be requestedGets the index for index based parameters.
Gets a list of requests to be made.
Sets a parameter value.
param
- parameter to be setvalue - value of parameterSets the index for index based parameter. Examples of indexed parameters include channel in phy layer or scheme in modem layer.
index - index or channel, -1 if the request has not indexedCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd