CYCLUS
|
A mixin to provide information about produced commodities.
Definition at line 23 of file commodity_producer.h.
#include <commodity_producer.h>
Public Member Functions | |
void | Add (const Commodity &commodity) |
void | Add (const Commodity &commodity, const CommodInfo &info) |
double | Capacity (const Commodity &commodity) |
CommodityProducer (double default_capacity=0, double default_cost=kModifierLimit, Agent *agent=NULL) | |
void | Copy (CommodityProducer *source) |
double | Cost (const Commodity &commodity) |
std::set< Commodity, CommodityCompare > | ProducedCommodities () |
bool | Produces (const Commodity &commodity) const |
void | Rm (const Commodity &commodity) |
void | SetCapacity (const Commodity &commodity, double capacity) |
void | SetCost (const Commodity &commodity, double cost) |
virtual | ~CommodityProducer () |
Public Member Functions inherited from cyclus::toolkit::AgentManaged | |
Agent * | agent () const |
AgentManaged (Agent *agent=NULL) | |
cyclus::toolkit::CommodityProducer::CommodityProducer | ( | double | default_capacity = 0, |
double | default_cost = kModifierLimit, | ||
Agent * | agent = NULL ) |
Definition at line 10 of file commodity_producer.cc.
|
virtual |
Definition at line 17 of file commodity_producer.cc.
Register a commodity as being produced by this object.
commodity | the commodity being produced |
Definition at line 64 of file commodity_producer.h.
|
inline |
Register a commodity as being produced by this object and set its relevant info.
commodity | the commodity being produced |
info | the information describing the commodity |
Definition at line 72 of file commodity_producer.h.
commodity | the commodity in question |
Definition at line 38 of file commodity_producer.h.
void cyclus::toolkit::CommodityProducer::Copy | ( | CommodityProducer * | source | ) |
Add all commodities produced by a source.
source | the original commodity producer |
Definition at line 28 of file commodity_producer.cc.
commodity | the commodity in question |
Definition at line 44 of file commodity_producer.h.
std::set< Commodity, CommodityCompare > cyclus::toolkit::CommodityProducer::ProducedCommodities | ( | ) |
Definition at line 19 of file commodity_producer.cc.
commodity | the commodity in question |
Definition at line 32 of file commodity_producer.h.
Unregister a commodity as being produced by this object.
commodity | the commodity being produced |
Definition at line 78 of file commodity_producer.h.
|
inline |
Set the production capacity for a given commodity.
commodity | the commodity being produced |
capacity | the production capacity |
Definition at line 51 of file commodity_producer.h.
|
inline |
Set the production cost for a given commodity.
commodity | the commodity being produced |
cost | the production cost |
Definition at line 58 of file commodity_producer.h.