Package jadex.bdi.runtime
Interface ICapability
- All Known Implementing Classes:
CapabilityPojoWrapper
public interface ICapability
-
Method Summary
Modifier and TypeMethodDescription<T> void
addBeliefListener
(String name, IBeliefListener<T> listener) Add a belief listener.Get the pojo capability object.<T> void
removeBeliefListener
(String name, IBeliefListener<T> listener) Remove a belief listener.
-
Method Details
-
addBeliefListener
Add a belief listener.- Parameters:
name
- The belief name.listener
- The belief listener.
-
removeBeliefListener
Remove a belief listener.- Parameters:
name
- The belief name.listener
- The belief listener.
-
getPojoCapability
Object getPojoCapability()Get the pojo capability object. Only applicable for Pojo BDI agents (i.e. not for XML BDI agents).- Returns:
- The user defined java object for the capability.
- Throws:
UnsupportedOperationException
- for XML BDI agents.
-