1 #ifndef CYCLUS_SRC_TOOLKIT_MATL_BUY_POLICY_H_ 2 #define CYCLUS_SRC_TOOLKIT_MATL_BUY_POLICY_H_ 86 double fill_to,
double req_when_under);
88 double throughput,
double fill_to,
89 double req_when_under,
double quantize);
121 return std::min(throughput_,
122 fill_to_ * buf_->capacity() - buf_->quantity());
126 inline bool Excl()
const {
return quantize_ > 0; }
135 return Excl() ?
static_cast<int>(
TotalQty() / quantize_) : 1;
142 return rsrc_commods_;
153 struct CommodDetail {
159 void set_fill_to(
double x);
161 void set_req_when_under(
double x);
162 void set_quantize(
double x);
163 void set_throughput(
double x);
167 double fill_to_, req_when_under_, quantize_, throughput_;
168 std::map<Material::Ptr, std::string> rsrc_commods_;
169 std::map<std::string, CommodDetail> commod_details_;
boost::shared_ptr< Composition > Ptr
boost::shared_ptr< Material > Ptr
std::string name(int nuc)
A simple API for agents that wish to exchange resources in the simulation.
virtual Agent * manager()
The abstract base class used by all types of agents that live and interact in a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
A Trade is a simple container that associates a request for a resource with a bid for that resource...