public class ParameterReq extends Message
Modifier and Type | Class and Description |
---|---|
class |
ParameterReq.Entry
Representation for parameter and value.
|
Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected Parameter |
param |
protected java.util.List<ParameterReq.Entry> |
requests |
protected GenericValue |
value |
Constructor and Description |
---|
ParameterReq() |
ParameterReq(AgentID recipient) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears all parameter requests.
|
ParameterReq |
get(java.util.List<? extends Parameter> param)
Requests a list of parameters.
|
ParameterReq |
get(Parameter param)
Requests a parameter.
|
int |
getIndex()
Gets the index for index based parameters.
|
java.util.List<ParameterReq.Entry> |
requests()
Gets a list of requests to be made.
|
ParameterReq |
set(Parameter param,
java.lang.Object value)
Sets a parameter value.
|
void |
setIndex(int index)
Sets the index for index based parameter.
|
java.lang.String |
toString()
Gets a string representation of the message.
|
getInReplyTo, getJsonCache, getMessageID, getPerformative, getRecipient, getSender, getSentAt, setInReplyTo, setJsonCache, setMessageID, setPerformative, setRecipient, setSender, setSentAt
protected int index
protected java.util.List<ParameterReq.Entry> requests
protected Parameter param
protected GenericValue value
public ParameterReq()
public ParameterReq(AgentID recipient)
public void clear()
public int getIndex()
public void setIndex(int index)
index
- index or channel, -1 if the request has not indexedpublic ParameterReq get(Parameter param)
param
- parameter to be requestedpublic ParameterReq get(java.util.List<? extends Parameter> param)
param
- parameter list to be requestedpublic ParameterReq set(Parameter param, java.lang.Object value)
param
- parameter to be setvalue
- value of parameterpublic java.util.List<ParameterReq.Entry> requests()