examples.macro_model.spaces package¶
Submodules¶
examples.macro_model.spaces.cG_market module¶
-
class
examples.macro_model.spaces.cG_market.CGMarket(model, name, actions_set_file, action_class)[source]¶ Bases:
examples.macro_model.spaces.market.MarketThe Consumer Goods Market
examples.macro_model.spaces.credit_market module¶
-
class
examples.macro_model.spaces.credit_market.CreditMarket(model, name, actions_set_file, action_class)[source]¶ Bases:
examples.macro_model.spaces.market.MarketThe Credit Market
examples.macro_model.spaces.deposits_market module¶
-
class
examples.macro_model.spaces.deposits_market.DepositsMarket(model, name, actions_set_file, action_class)[source]¶ Bases:
examples.macro_model.spaces.market.MarketThe Deposits Market
examples.macro_model.spaces.kG_market module¶
-
class
examples.macro_model.spaces.kG_market.KGMarket(model, name, actions_set_file, action_class)[source]¶ Bases:
examples.macro_model.spaces.market.MarketThe Capital Goods Market
examples.macro_model.spaces.labor_market module¶
-
class
examples.macro_model.spaces.labor_market.LaborMarket(model, name, actions_set_file, action_class)[source]¶ Bases:
examples.macro_model.spaces.market.MarketThe Labor Market
examples.macro_model.spaces.market module¶
Basic Market Class implementation
-
class
examples.macro_model.spaces.market.Market(model, name, actions_set_file, action_class)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObjectAbstract Market
-
BID_TYPE= ['O', 'D']¶
-
get_highest_demmand()[source]¶ A market answers the demmand with the highest value (in the self.demmand ordered dict)
-
get_highest_offer()[source]¶ A market answers the offer with the highest value (in the self.offers ordered dict)
-
get_lowest_demmand()[source]¶ A market answers the demmand with the lowest value (in the self.demmand ordered dict)
-
get_lowest_offer()[source]¶ A market answers the offer with the lowest value (in the self.offers ordered dict)
-
match_bids()[source]¶ Market matching of offer and demmand This method can be specialized depending on market Is prepared to be an assincronous method
-
release_demmand()[source]¶ When some bid passed the timeout of the system, the market release the bid
-