Response message for ParameterReq.
Modifiers | Name | Description |
---|---|---|
protected int |
index |
|
protected Parameter |
param |
|
protected GenericValue |
value |
|
protected Map<Parameter, GenericValue> |
values |
Constructor and description |
---|
ParameterRsp
(Message msg) Constructs a response message. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
clear() Clears all parameter and values. |
|
Object |
get(Parameter param) Gets the queried parameter value. |
|
int |
getIndex() Gets the index. |
|
Map<Parameter, Object> |
getParameters() Gets all requested parameters as map. |
|
Set<Parameter> |
parameters() Gets all requested parameters as set. |
|
void |
set(Parameter param, Object value) Sets the parameter. |
|
void |
setIndex(int index) Sets the index or scheme for 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 |
Constructs a response message.
msg
- message to which this response corresponds to.Clears all parameter and values.
Gets the queried parameter value.
param
- ParameterGets the index.
Gets all requested parameters as map.
Sets the parameter.
param
- parametervalue
- valueSets the index or scheme for parameter.
index
- index or channelCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd