A mixin to provide information about produced commodities.
Definition at line 23 of file commodity_producer.h.
#include <commodity_producer.h>
◆ CommodityProducer()
cyclus::toolkit::CommodityProducer::CommodityProducer |
( |
double | default_capacity = 0, |
|
|
double | default_cost = kModifierLimit, |
|
|
Agent * | agent = NULL ) |
◆ ~CommodityProducer()
cyclus::toolkit::CommodityProducer::~CommodityProducer |
( |
| ) |
|
|
virtual |
◆ Add() [1/2]
void cyclus::toolkit::CommodityProducer::Add |
( |
const Commodity & | commodity | ) |
|
|
inline |
Register a commodity as being produced by this object.
- Parameters
-
commodity | the commodity being produced |
Definition at line 64 of file commodity_producer.h.
◆ Add() [2/2]
void cyclus::toolkit::CommodityProducer::Add |
( |
const Commodity & | commodity, |
|
|
const CommodInfo & | info ) |
|
inline |
Register a commodity as being produced by this object and set its relevant info.
- Parameters
-
commodity | the commodity being produced |
info | the information describing the commodity |
Definition at line 72 of file commodity_producer.h.
◆ Capacity()
double cyclus::toolkit::CommodityProducer::Capacity |
( |
const Commodity & | commodity | ) |
|
|
inline |
- Parameters
-
commodity | the commodity in question |
- Returns
- the production capacity for a commodity
Definition at line 38 of file commodity_producer.h.
◆ Copy()
Add all commodities produced by a source.
- Parameters
-
source | the original commodity producer |
Definition at line 28 of file commodity_producer.cc.
◆ Cost()
double cyclus::toolkit::CommodityProducer::Cost |
( |
const Commodity & | commodity | ) |
|
|
inline |
- Returns
- the cost to produce a commodity at a given capacity
- Parameters
-
commodity | the commodity in question |
Definition at line 44 of file commodity_producer.h.
◆ ProducedCommodities()
◆ Produces()
bool cyclus::toolkit::CommodityProducer::Produces |
( |
const Commodity & | commodity | ) |
const |
|
inline |
- Parameters
-
commodity | the commodity in question |
- Returns
- true if the commodity is produced by this entity
Definition at line 32 of file commodity_producer.h.
◆ Rm()
void cyclus::toolkit::CommodityProducer::Rm |
( |
const Commodity & | commodity | ) |
|
|
inline |
Unregister a commodity as being produced by this object.
- Parameters
-
commodity | the commodity being produced |
Definition at line 78 of file commodity_producer.h.
◆ SetCapacity()
void cyclus::toolkit::CommodityProducer::SetCapacity |
( |
const Commodity & | commodity, |
|
|
double | capacity ) |
|
inline |
Set the production capacity for a given commodity.
- Parameters
-
commodity | the commodity being produced |
capacity | the production capacity |
Definition at line 51 of file commodity_producer.h.
◆ SetCost()
void cyclus::toolkit::CommodityProducer::SetCost |
( |
const Commodity & | commodity, |
|
|
double | cost ) |
|
inline |
Set the production cost for a given commodity.
- Parameters
-
commodity | the commodity being produced |
cost | the production cost |
Definition at line 58 of file commodity_producer.h.
The documentation for this class was generated from the following files: