CYCLUS
Loading...
Searching...
No Matches
supply_demand_manager.cc
Go to the documentation of this file.
1
#include "
supply_demand_manager.h
"
2
3
#include "
error.h
"
4
5
namespace
cyclus
{
6
namespace
toolkit {
7
8
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9
double
SupplyDemandManager::Supply
(
Commodity
& commodity) {
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
cyclus::toolkit::Commodity
A simple class defining a commodity; it is currently super simple.
Definition
commodity.h:12
cyclus::toolkit::SupplyDemandManager::Supply
double Supply(Commodity &commodity)
Returns the current supply of a commodity.
Definition
supply_demand_manager.cc:9
error.h
cyclus
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition
agent.cc:14
supply_demand_manager.h
src
toolkit
supply_demand_manager.cc
Generated by
1.11.0