CYCLUS
Loading...
Searching...
No Matches
commodity_producer_manager.cc
Go to the documentation of this file.
2
3namespace cyclus {
4namespace 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 mixin to provide information about produced commodities.
double Capacity(const Commodity &commodity)
A simple class defining a commodity; it is currently super simple.
Definition commodity.h:12
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters