CYCAMORE
|
This facility acts as a sink of materials and products with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size. More...
#include <sink.h>
Public Member Functions | |
virtual void | AcceptGenRsrcTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Product >, cyclus::Product::Ptr > > &responses) |
SinkFacilities place accepted trade Materials in their Inventory. More... | |
virtual void | AcceptGenRsrcTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Product >, cyclus::Product::Ptr > > &responses) |
SinkFacilities place accepted trade Materials in their Inventory. More... | |
virtual void | AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
SinkFacilities place accepted trade Materials in their Inventory. More... | |
virtual void | AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
SinkFacilities place accepted trade Materials in their Inventory. More... | |
void | AddCommodity (std::string name) |
add a commodity to the set of input commodities More... | |
void | AddCommodity (std::string name) |
add a commodity to the set of input commodities More... | |
virtual Json::Value | annotations () |
void | Capacity (double cap) |
sets the capacity of a material generated at any given time step More... | |
double | Capacity () const |
void | Capacity (double cap) |
sets the capacity of a material generated at any given time step More... | |
double | Capacity () const |
virtual cyclus::Agent * | Clone () |
virtual void | EnterNotify () |
virtual void | EnterNotify () |
virtual std::set< cyclus::RequestPortfolio< cyclus::Product >::Ptr > | GetGenRsrcRequests () |
SinkFacilities request Products of their given commodity. More... | |
virtual std::set< cyclus::RequestPortfolio< cyclus::Product >::Ptr > | GetGenRsrcRequests () |
SinkFacilities request Products of their given commodity. More... | |
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > | GetMatlRequests () |
SinkFacilities request Materials of their given commodity. More... | |
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > | GetMatlRequests () |
SinkFacilities request Materials of their given commodity. More... | |
virtual void | InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di) |
virtual void | InitFrom (cycamore::Sink *m) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitInv (cyclus::Inventories &inv) |
const std::vector< std::string > & | input_commodities () const |
const std::vector< std::string > & | input_commodities () const |
const std::vector< double > & | input_commodity_preferences () const |
const std::vector< double > & | input_commodity_preferences () const |
double | InventorySize () const |
double | InventorySize () const |
double | MaxInventorySize () const |
double | MaxInventorySize () const |
double | RequestAmt () const |
determines the amount to request More... | |
double | RequestAmt () const |
determines the amount to request More... | |
virtual std::string | schema () |
void | SetMaxInventorySize (double size) |
sets the size of the storage inventory for received material More... | |
void | SetMaxInventorySize (double size) |
sets the size of the storage inventory for received material More... | |
Sink (cyclus::Context *ctx) | |
Sink (cyclus::Context *ctx) | |
virtual void | Snapshot (cyclus::DbInit di) |
virtual cyclus::Inventories | SnapshotInv () |
virtual std::string | str () |
virtual std::string | str () |
virtual void | Tick () |
virtual void | Tick () |
virtual void | Tock () |
virtual void | Tock () |
virtual std::string | version () |
virtual std::string | version () |
virtual | ~Sink () |
virtual | ~Sink () |
Private Member Functions | |
void | RecordPosition () |
void | RecordPosition () |
Private Attributes | |
double | capacity |
monthly acceptance capacity More... | |
cyclus::toolkit::Position | coordinates |
std::vector< int > | cycpp_shape_capacity |
std::vector< int > | cycpp_shape_in_commod_prefs |
std::vector< int > | cycpp_shape_in_commods |
std::vector< int > | cycpp_shape_inventory |
std::vector< int > | cycpp_shape_latitude |
std::vector< int > | cycpp_shape_longitude |
std::vector< int > | cycpp_shape_max_inv_size |
std::vector< int > | cycpp_shape_recipe_name |
std::vector< double > | in_commod_prefs |
std::vector< std::string > | in_commods |
all facilities must have at least one input commodity More... | |
cyclus::toolkit::ResBuf< cyclus::Resource > | inventory |
this facility holds material in storage. More... | |
double | latitude |
double | longitude |
double | max_inv_size |
max inventory size More... | |
std::string | recipe_name |
This facility acts as a sink of materials and products with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size.
The inventory size and throughput capacity both default to infinite. If a recipe is provided, it will request material with that recipe. Requests are made for any number of specified commodities.
Definition at line 23 of file _tmp_build/cycamore/sink.h.
cycamore::Sink::Sink | ( | cyclus::Context * | ctx | ) |
Definition at line 13 of file _tmp_build/cycamore/sink.cc.
References SetMaxInventorySize().
Referenced by cycamore::ConstructSink().
|
virtual |
Definition at line 22 of file _tmp_build/cycamore/sink.cc.
cycamore::Sink::Sink | ( | cyclus::Context * | ctx | ) |
|
virtual |
|
virtual |
SinkFacilities place accepted trade Materials in their Inventory.
|
virtual |
SinkFacilities place accepted trade Materials in their Inventory.
Definition at line 461 of file _tmp_build/cycamore/sink.cc.
References inventory.
Referenced by version().
|
virtual |
SinkFacilities place accepted trade Materials in their Inventory.
|
virtual |
SinkFacilities place accepted trade Materials in their Inventory.
Definition at line 450 of file _tmp_build/cycamore/sink.cc.
References inventory.
|
inline |
add a commodity to the set of input commodities
name | the commodity name |
Definition at line 74 of file src/sink.h.
References in_commods.
|
inline |
add a commodity to the set of input commodities
name | the commodity name |
Definition at line 86 of file _tmp_build/cycamore/sink.h.
References in_commods.
Referenced by SinkTest::SetUpSink(), and TEST_F().
|
virtual |
Definition at line 71 of file _tmp_build/cycamore/sink.cc.
Referenced by version().
|
inline |
sets the capacity of a material generated at any given time step
capacity | the reception capacity |
Definition at line 96 of file src/sink.h.
References capacity.
|
inline |
Definition at line 99 of file src/sink.h.
References capacity.
|
inline |
sets the capacity of a material generated at any given time step
capacity | the reception capacity |
Definition at line 108 of file _tmp_build/cycamore/sink.h.
References capacity.
Referenced by SinkTest::SetUpSink(), and TEST_F().
|
inline |
Definition at line 111 of file _tmp_build/cycamore/sink.h.
References capacity.
|
virtual |
Definition at line 285 of file _tmp_build/cycamore/sink.cc.
References InitFrom().
Referenced by TEST_F(), and version().
|
virtual |
|
virtual |
Definition at line 352 of file _tmp_build/cycamore/sink.cc.
References in_commod_prefs, in_commods, and RecordPosition().
Referenced by TEST_F(), and version().
|
virtual |
SinkFacilities request Products of their given commodity.
Note that it is assumed the Sink operates on a single resource type!
|
virtual |
SinkFacilities request Products of their given commodity.
Note that it is assumed the Sink operates on a single resource type!
Definition at line 422 of file _tmp_build/cycamore/sink.cc.
References in_commods, RequestAmt(), and cycamore::string.
Referenced by version().
|
virtual |
SinkFacilities request Materials of their given commodity.
Note that it is assumed the Sink operates on a single resource type!
|
virtual |
SinkFacilities request Materials of their given commodity.
Note that it is assumed the Sink operates on a single resource type!
Definition at line 390 of file _tmp_build/cycamore/sink.cc.
References in_commod_prefs, in_commods, recipe_name, and RequestAmt().
Referenced by TEST_F(), and version().
|
virtual |
Definition at line 140 of file _tmp_build/cycamore/sink.cc.
References capacity, cycpp_shape_capacity, cycpp_shape_in_commod_prefs, cycpp_shape_in_commods, cycpp_shape_inventory, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_max_inv_size, cycpp_shape_recipe_name, in_commod_prefs, in_commods, latitude, longitude, max_inv_size, recipe_name, and cycamore::string.
Referenced by version().
|
virtual |
Definition at line 322 of file _tmp_build/cycamore/sink.cc.
References capacity, cycpp_shape_capacity, cycpp_shape_in_commod_prefs, cycpp_shape_in_commods, cycpp_shape_inventory, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_max_inv_size, cycpp_shape_recipe_name, in_commod_prefs, in_commods, inventory, latitude, longitude, max_inv_size, and recipe_name.
|
virtual |
Definition at line 292 of file _tmp_build/cycamore/sink.cc.
References capacity, cycpp_shape_capacity, cycpp_shape_in_commod_prefs, cycpp_shape_in_commods, cycpp_shape_inventory, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_max_inv_size, cycpp_shape_recipe_name, in_commod_prefs, in_commods, inventory, latitude, longitude, max_inv_size, recipe_name, and cycamore::string.
|
virtual |
Definition at line 279 of file _tmp_build/cycamore/sink.cc.
References inventory.
Referenced by version().
|
inline |
|
inline |
Definition at line 115 of file _tmp_build/cycamore/sink.h.
References in_commods.
Referenced by TEST_F().
|
inline |
Definition at line 107 of file src/sink.h.
References capacity, coordinates, in_commod_prefs, in_commods, inventory, latitude, longitude, max_inv_size, recipe_name, RecordPosition(), and cycamore::string.
|
inline |
Definition at line 119 of file _tmp_build/cycamore/sink.h.
References in_commod_prefs.
Referenced by TEST_F().
|
inline |
Definition at line 87 of file src/sink.h.
References inventory.
|
inline |
Definition at line 99 of file _tmp_build/cycamore/sink.h.
References inventory.
Referenced by TEST_F().
|
inline |
Definition at line 84 of file src/sink.h.
References inventory.
|
inline |
Definition at line 96 of file _tmp_build/cycamore/sink.h.
References inventory.
Referenced by TEST_F().
|
private |
|
private |
Definition at line 506 of file _tmp_build/cycamore/sink.cc.
References latitude, longitude, and cycamore::string.
Referenced by EnterNotify(), and input_commodity_preferences().
|
inline |
determines the amount to request
Definition at line 90 of file src/sink.h.
|
inline |
determines the amount to request
Definition at line 102 of file _tmp_build/cycamore/sink.h.
References capacity, and inventory.
Referenced by GetGenRsrcRequests(), GetMatlRequests(), TEST_F(), and Tick().
|
virtual |
Definition at line 23 of file _tmp_build/cycamore/sink.cc.
Referenced by version().
|
inline |
sets the size of the storage inventory for received material
size | the storage size |
Definition at line 78 of file src/sink.h.
References inventory, and max_inv_size.
|
inline |
sets the size of the storage inventory for received material
size | the storage size |
Definition at line 90 of file _tmp_build/cycamore/sink.h.
References inventory, and max_inv_size.
Referenced by SinkTest::SetUpSink(), and Sink().
|
virtual |
Definition at line 258 of file _tmp_build/cycamore/sink.cc.
References capacity, cycpp_shape_capacity, cycpp_shape_in_commod_prefs, cycpp_shape_in_commods, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_max_inv_size, cycpp_shape_recipe_name, in_commod_prefs, in_commods, latitude, longitude, max_inv_size, and recipe_name.
Referenced by version().
|
virtual |
Definition at line 271 of file _tmp_build/cycamore/sink.cc.
References inventory.
Referenced by version().
|
virtual |
|
virtual |
Definition at line 369 of file _tmp_build/cycamore/sink.cc.
References in_commods, inventory, and cycamore::string.
|
virtual |
|
virtual |
Definition at line 472 of file _tmp_build/cycamore/sink.cc.
References in_commods, RequestAmt(), and cycamore::string.
Referenced by version().
|
virtual |
|
virtual |
Definition at line 493 of file _tmp_build/cycamore/sink.cc.
References inventory.
Referenced by version().
|
inlinevirtual |
Definition at line 29 of file src/sink.h.
References AcceptGenRsrcTrades(), AcceptMatlTrades(), CYCAMORE_VERSION, EnterNotify(), GetGenRsrcRequests(), GetMatlRequests(), str(), cycamore::string, Tick(), and Tock().
|
inlinevirtual |
Definition at line 31 of file _tmp_build/cycamore/sink.h.
References AcceptGenRsrcTrades(), AcceptMatlTrades(), annotations(), Clone(), CYCAMORE_VERSION, EnterNotify(), GetGenRsrcRequests(), GetMatlRequests(), InfileToDb(), InitFrom(), InitInv(), schema(), Snapshot(), SnapshotInv(), str(), cycamore::string, Tick(), and Tock().
|
private |
monthly acceptance capacity
Definition at line 155 of file _tmp_build/cycamore/sink.h.
Referenced by Capacity(), InfileToDb(), InitFrom(), input_commodity_preferences(), RequestAmt(), and Snapshot().
|
private |
Definition at line 181 of file _tmp_build/cycamore/sink.h.
Referenced by input_commodity_preferences().
|
private |
Definition at line 156 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 133 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 126 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 163 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), and InitFrom().
|
private |
Definition at line 170 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 177 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 148 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 140 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 132 of file _tmp_build/cycamore/sink.h.
Referenced by EnterNotify(), GetMatlRequests(), InfileToDb(), InitFrom(), input_commodity_preferences(), and Snapshot().
|
private |
all facilities must have at least one input commodity
Definition at line 125 of file _tmp_build/cycamore/sink.h.
Referenced by AddCommodity(), EnterNotify(), GetGenRsrcRequests(), GetMatlRequests(), InfileToDb(), InitFrom(), input_commodities(), input_commodity_preferences(), Snapshot(), str(), and Tick().
|
private |
this facility holds material in storage.
Definition at line 162 of file _tmp_build/cycamore/sink.h.
Referenced by AcceptGenRsrcTrades(), AcceptMatlTrades(), InitFrom(), InitInv(), input_commodity_preferences(), InventorySize(), MaxInventorySize(), RequestAmt(), SetMaxInventorySize(), SnapshotInv(), str(), and Tock().
|
private |
Definition at line 169 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), input_commodity_preferences(), RecordPosition(), and Snapshot().
|
private |
Definition at line 176 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), input_commodity_preferences(), RecordPosition(), and Snapshot().
|
private |
max inventory size
Definition at line 147 of file _tmp_build/cycamore/sink.h.
Referenced by InfileToDb(), InitFrom(), input_commodity_preferences(), SetMaxInventorySize(), and Snapshot().
|
private |
Definition at line 139 of file _tmp_build/cycamore/sink.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), input_commodity_preferences(), and Snapshot().