Physical goods and services

Goods

An agent can access a good with self['cookies'] or self['money'].

  • self.create(money, 15) creates money
  • self.destroy(money, 10) destroys money
  • goods can be given, taken, sold and bought
  • :code:`self[‘money’] returns the quantity an agent possesses

Services

Services are like goods, but the need to be declared as services in the simulation abce.__init__.service(). In this function one declares a good that creates the other good and how much. For example if one has self['adults'] = 2, one could get 16 hours of labor every day. :code:`simulation.declare_service(‘adults’, 8, ‘labor’).