1#ifndef CYCLUS_SRC_TRADER_H_
2#define CYCLUS_SRC_TRADER_H_
33 virtual std::set<RequestPortfolio<Material>::Ptr>
35 return std::set<RequestPortfolio<Material>::Ptr>();
39 virtual std::set<RequestPortfolio<Product>::Ptr>
41 return std::set<RequestPortfolio<Product>::Ptr>();
45 virtual std::set<BidPortfolio<Material>::Ptr>
47 return std::set<BidPortfolio<Material>::Ptr>();
51 virtual std::set<BidPortfolio<Product>::Ptr>
53 return std::set<BidPortfolio<Product>::Ptr>();
93 virtual std::set<BidPortfolio<Material>::Ptr>
95 return std::set<BidPortfolio<Material>::Ptr>();
100 virtual std::set<BidPortfolio<Product>::Ptr>
102 return std::set<BidPortfolio<Product>::Ptr>();
The abstract base class used by all types of agents that live and interact in a simulation.
boost::shared_ptr< Material > Ptr
boost::shared_ptr< Product > Ptr
A simple API for agents that wish to exchange resources in the simulation.
virtual void AcceptMatlTrades(const std::vector< std::pair< Trade< Material >, Material::Ptr > > &responses)
default implementation for material trade acceptance
virtual void AdjustMatlPrefs(PrefMap< Material >::type &prefs)
default implementation for material preferences.
virtual void GetProductTrades(const std::vector< Trade< Product > > &trades, std::vector< std::pair< Trade< Product >, Product::Ptr > > &responses)
default implementation for responding to product trades
virtual std::set< BidPortfolio< Product >::Ptr > GetProductBids(CommodMap< Product >::type &commod_requests)
default implementation for product requests
virtual void GetMatlTrades(const std::vector< Trade< Material > > &trades, std::vector< std::pair< Trade< Material >, Material::Ptr > > &responses)
default implementation for responding to material trades
virtual std::set< BidPortfolio< Material >::Ptr > GetMatlBids(CommodMap< Material >::type &commod_requests)
default implementation for material requests
virtual void AdjustProductPrefs(PrefMap< Product >::type &prefs)
default implementation for material preferences.
virtual Agent * manager()
virtual void AcceptProductTrades(const std::vector< std::pair< Trade< Product >, Product::Ptr > > &responses)
default implementation for product trade acceptance
virtual std::set< RequestPortfolio< Product >::Ptr > GetProductRequests()
default implementation for product requests
virtual std::set< RequestPortfolio< Material >::Ptr > GetMatlRequests()
default implementation for material requests
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
std::map< std::string, std::vector< Request< T > * > > type
std::map< Request< T > *, std::map< Bid< T > *, double > > type
A Trade is a simple container that associates a request for a resource with a bid for that resource.