CYCLUS
commodity_producer_manager.cc
Go to the documentation of this file.
2 
3 namespace cyclus {
4 namespace toolkit {
5 
6 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8  double total = 0.0;
9  std::set<CommodityProducer*>::iterator it;
11  for (it = producers_.begin(); it != producers_.end(); ++it) {
12  p = *it;
13  if (p->Produces(commodity))
14  total += p->Capacity(commodity);
15  }
16  return total;
17 }
18 
19 } // namespace toolkit
20 } // namespace cyclus
A simple class defining a commodity; it is currently super simple.
Definition: commodity.h:12
double Capacity(const Commodity &commodity)
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14
A mixin to provide information about produced commodities.
bool Produces(const Commodity &commodity) const