1#ifndef CYCLUS_SRC_TOOLKIT_SUPPLY_DEMAND_MANAGER_H_
2#define CYCLUS_SRC_TOOLKIT_SUPPLY_DEMAND_MANAGER_H_
34 demand_functions_.insert(std::make_pair(commodity,
demand));
40 return demand_functions_.find(commodity) != demand_functions_.end();
45 managers_.insert(
cpm);
58 return demand_functions_[commodity]->value(time);
64 return demand_functions_[commodity];
74 std::map<Commodity, SymFunction::Ptr, CommodityCompare> demand_functions_;
77 std::set<CommodityProducerManager*> managers_;
The abstract base class used by all types of agents that live and interact in a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters