Response message for CapabilityReq message providing list of Capability of an agent.
Modifiers | Name | Description |
---|---|---|
protected Set<Capability> |
capSet |
Constructor and description |
---|
CapabilityListRsp
(Message msg, Set<Capability> capSet) Constructs the response for CapabilityReq. |
Type Params | Return Type | Name and description |
---|---|---|
|
Set<Capability> |
getCapabilities() Gets capabilities. |
|
boolean |
isCapableOf(Capability cap) Checks if agent is capable of. |
|
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 the response for CapabilityReq.
msg
- inReply tocapSet
- supported CapabilityGets capabilities.
Checks if agent is capable of.
cap
- capabilityCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd