Class RecurBDI


  • public class RecurBDI
    extends java.lang.Object
    Agent that has a goal for buying an amount of items.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  RecurBDI.BuyItemsGoal
      A buy items goal that is responsible for buying a number of items.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The bdi agent.
      protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> items
      The list of items.
      protected double money
      The initial money.
      protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> store
      The items in store.
      protected TestReport tr  
    • Constructor Summary

      Constructors 
      Constructor Description
      RecurBDI()  
    • Field Detail

      • items

        protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> items
        The list of items.
      • money

        protected double money
        The initial money.
      • store

        protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> store
        The items in store.
    • Constructor Detail

      • RecurBDI

        public RecurBDI()
    • Method Detail

      • body

        public void body()
        The agent body.
      • destroy

        public void destroy​(IInternalAccess agent)
        Called when agent is killed.
      • getMoney

        public double getMoney()
        Get the money.
        Returns:
        The money.
      • setMoney

        public void setMoney​(double money)
        Set the money.
        Parameters:
        money - The money to set.