Interface ICapability


  • public interface ICapability
    • Method Detail

      • addBeliefListener

        <T> void addBeliefListener​(java.lang.String name,
                                   IBeliefListener<T> listener)
        Add a belief listener.
        Parameters:
        name - The belief name.
        listener - The belief listener.
      • removeBeliefListener

        <T> void removeBeliefListener​(java.lang.String name,
                                      IBeliefListener<T> listener)
        Remove a belief listener.
        Parameters:
        name - The belief name.
        listener - The belief listener.
      • getPojoCapability

        java.lang.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:
        java.lang.UnsupportedOperationException - for XML BDI agents.