CYCLUS
supply_demand_manager.cc
Go to the documentation of this file.
2 
3 #include "error.h"
4 
5 namespace cyclus {
6 namespace toolkit {
7 
8 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
10  double value = 0.0;
11  std::set<CommodityProducerManager*>::iterator it;
12  for (it = managers_.begin(); it != managers_.end(); it++) {
13  value += (*it)->TotalCapacity(commodity);
14  }
15  return value;
16 }
17 
18 } // namespace toolkit
19 } // namespace cyclus
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.org/Osi/browser/trunk.
Definition: agent.cc:14
double Supply(Commodity &commodity)
Returns the current supply of a commodity.