CYCLUS
bid_portfolio.cc
Go to the documentation of this file.
1 #include "bid_portfolio.h"
2 
3 #include "trader.h"
4 
5 
6 
7 namespace cyclus {
8 
9 
10  std::string GetTraderPrototype(Trader* bidder){
11  return bidder->manager()->prototype();
12  }
13 
14 
15  std::string GetTraderSpec(Trader* bidder){
16  return bidder->manager()->spec();
17  }
18 
19 
20 } // namespace cyclus
std::string GetTraderPrototype(Trader *bidder)
A simple API for agents that wish to exchange resources in the simulation.
Definition: trader.h:24
const std::string prototype() const
Returns the agent's prototype.
Definition: agent.h:347
std::string spec()
The string representation of the agent spec that uniquely identifies the concrete agent class/module...
Definition: agent.h:358
virtual Agent * manager()
Definition: trader.h:28
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14
std::string GetTraderSpec(Trader *bidder)