Class CustomerCapability

java.lang.Object
jadex.bdi.shop.CustomerCapability

public class CustomerCapability extends Object
Customer capability.
  • Field Details

    • agent

      protected jadex.core.IComponent agent
      The agent.
    • capa

      protected jadex.bdi.runtime.ICapability capa
      The capability.
    • inventory

      protected List<ItemInfo> inventory
      The inventory.
  • Constructor Details

    • CustomerCapability

      public CustomerCapability()
      Called when the agent is started.
  • Method Details

    • getMoney

      public double getMoney()
      Get the money.
    • setMoney

      public void setMoney(double money)
      Set the money.
    • buyItem

      public void buyItem(CustomerCapability.BuyItem big)
      Plan for buying an item.
    • getCapability

      public jadex.bdi.runtime.ICapability getCapability()
      Returns:
      the capa