CYCLUS
Loading...
Searching...
No Matches
commodity_producer_manager.cc
Go to the documentation of this file.
1
#include "
commodity_producer_manager.h
"
2
3
namespace
cyclus
{
4
namespace
toolkit {
5
6
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7
double
CommodityProducerManager::TotalCapacity
(
Commodity
& commodity) {
8
double
total = 0.0;
9
std::set<CommodityProducer*>::iterator it;
10
CommodityProducer
* p;
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
cyclus::toolkit::CommodityProducerManager::TotalCapacity
double TotalCapacity(Commodity &commodity)
Definition
commodity_producer_manager.cc:7
cyclus::toolkit::CommodityProducer
A mixin to provide information about produced commodities.
Definition
commodity_producer.h:23
cyclus::toolkit::CommodityProducer::Capacity
double Capacity(const Commodity &commodity)
Definition
commodity_producer.h:38
cyclus::toolkit::CommodityProducer::Produces
bool Produces(const Commodity &commodity) const
Definition
commodity_producer.h:32
cyclus::toolkit::Commodity
A simple class defining a commodity; it is currently super simple.
Definition
commodity.h:12
commodity_producer_manager.h
cyclus
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition
agent.cc:14
src
toolkit
commodity_producer_manager.cc
Generated by
1.11.0