CYCAMORE
|
This facility acts as a source of material with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size. More...
#include <source.h>
Public Member Functions | |
virtual Json::Value | annotations () |
virtual cyclus::Agent * | Clone () |
virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > | GetMatlBids (cyclus::CommodMap< cyclus::Material >::type &commod_requests) |
virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > | GetMatlBids (cyclus::CommodMap< cyclus::Material >::type &commod_requests) |
virtual void | GetMatlTrades (const std::vector< cyclus::Trade< cyclus::Material > > &trades, std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
virtual void | GetMatlTrades (const std::vector< cyclus::Trade< cyclus::Material > > &trades, std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
virtual void | InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di) |
virtual void | InitFrom (Source *m) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitFrom (Source *m) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitInv (cyclus::Inventories &inv) |
virtual std::string | schema () |
virtual void | Snapshot (cyclus::DbInit di) |
virtual cyclus::Inventories | SnapshotInv () |
Source (cyclus::Context *ctx) | |
Source (cyclus::Context *ctx) | |
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 | ~Source () |
virtual | ~Source () |
Private Member Functions | |
void | RecordPosition () |
void | RecordPosition () |
Private Attributes | |
cyclus::toolkit::Position | coordinates |
std::vector< int > | cycpp_shape_inventory_size |
std::vector< int > | cycpp_shape_latitude |
std::vector< int > | cycpp_shape_longitude |
std::vector< int > | cycpp_shape_outcommod |
std::vector< int > | cycpp_shape_outrecipe |
std::vector< int > | cycpp_shape_throughput |
double | inventory_size |
double | latitude |
double | longitude |
std::string | outcommod |
std::string | outrecipe |
double | throughput |
Friends | |
class | SourceTest |
This facility acts as a source of material with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size.
It offers its material as a single commodity. If a composition recipe is specified, it provides that single material composition to requesters. If unspecified, the source provides materials with the exact requested compositions. The inventory size and throughput both default to infinite. Supplies material results in corresponding decrease in inventory, and when the inventory size reaches zero, the source can provide no more material.
Definition at line 25 of file _tmp_build/cycamore/source.h.
cycamore::Source::Source | ( | cyclus::Context * | ctx | ) |
Definition at line 12 of file _tmp_build/cycamore/source.cc.
Referenced by cycamore::ConstructSource().
|
virtual |
Definition at line 20 of file _tmp_build/cycamore/source.cc.
cycamore::Source::Source | ( | cyclus::Context * | ctx | ) |
|
virtual |
|
inlinevirtual |
Definition at line 80 of file _tmp_build/cycamore/source.h.
|
inlinevirtual |
Definition at line 40 of file _tmp_build/cycamore/source.h.
References InitFrom().
Referenced by cycamore::TEST_F().
|
virtual |
|
virtual |
Definition at line 93 of file _tmp_build/cycamore/source.cc.
References inventory_size, outcommod, outrecipe, str(), and throughput.
Referenced by cycamore::TEST_F(), and Tock().
|
virtual |
|
virtual |
Definition at line 135 of file _tmp_build/cycamore/source.cc.
References inventory_size, outcommod, and outrecipe.
Referenced by cycamore::TEST_F(), and Tock().
|
inlinevirtual |
Definition at line 150 of file _tmp_build/cycamore/source.h.
References cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_throughput, inventory_size, latitude, longitude, outcommod, outrecipe, cycamore::string, and throughput.
|
virtual |
|
virtual |
|
virtual |
Definition at line 22 of file _tmp_build/cycamore/source.cc.
References cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_throughput, inventory_size, latitude, longitude, outcommod, outrecipe, RecordPosition(), and throughput.
Referenced by Clone(), InitInv(), and version().
|
virtual |
Definition at line 46 of file _tmp_build/cycamore/source.cc.
References cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_throughput, inventory_size, latitude, longitude, outcommod, outrecipe, RecordPosition(), cycamore::string, and throughput.
|
inlinevirtual |
Definition at line 242 of file _tmp_build/cycamore/source.h.
References InitFrom().
|
private |
|
private |
Definition at line 159 of file _tmp_build/cycamore/source.cc.
References latitude, longitude, and cycamore::string.
Referenced by InitFrom(), and Tock().
|
inlinevirtual |
Definition at line 46 of file _tmp_build/cycamore/source.h.
|
inlinevirtual |
Definition at line 226 of file _tmp_build/cycamore/source.h.
References cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_throughput, inventory_size, latitude, longitude, outcommod, outrecipe, and throughput.
|
inlinevirtual |
Definition at line 237 of file _tmp_build/cycamore/source.h.
|
virtual |
|
virtual |
Definition at line 73 of file _tmp_build/cycamore/source.cc.
References outcommod, outrecipe, cycamore::string, and throughput.
Referenced by GetMatlBids(), cycamore::TEST_F(), and Tock().
|
inlinevirtual |
Definition at line 60 of file src/source.h.
|
inlinevirtual |
Definition at line 250 of file _tmp_build/cycamore/source.h.
Referenced by cycamore::TEST_F().
|
inlinevirtual |
Definition at line 62 of file src/source.h.
References coordinates, GetMatlBids(), GetMatlTrades(), inventory_size, latitude, longitude, outcommod, outrecipe, RecordPosition(), str(), cycamore::string, and throughput.
|
inlinevirtual |
Definition at line 252 of file _tmp_build/cycamore/source.h.
References GetMatlBids(), GetMatlTrades(), str(), and cycamore::string.
|
inlinevirtual |
Definition at line 33 of file src/source.h.
References CYCAMORE_VERSION, and InitFrom().
|
inlinevirtual |
Definition at line 35 of file _tmp_build/cycamore/source.h.
References CYCAMORE_VERSION.
|
friend |
Definition at line 28 of file _tmp_build/cycamore/source.h.
|
private |
Definition at line 308 of file _tmp_build/cycamore/source.h.
Referenced by Tock().
|
private |
Definition at line 283 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 297 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 304 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 269 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 276 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 290 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 282 of file _tmp_build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), Snapshot(), and Tock().
|
private |
Definition at line 296 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and Tock().
|
private |
Definition at line 303 of file _tmp_build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and Tock().
|
private |
Definition at line 268 of file _tmp_build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), cycamore::SourceTest::outcommod(), Snapshot(), str(), and Tock().
|
private |
Definition at line 275 of file _tmp_build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), cycamore::SourceTest::outrecipe(), Snapshot(), str(), and Tock().
|
private |
Definition at line 289 of file _tmp_build/cycamore/source.h.
Referenced by GetMatlBids(), InfileToDb(), InitFrom(), Snapshot(), str(), cycamore::SourceTest::throughput(), and Tock().