![]() |
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 void | Build (cyclus::Agent *parent) |
— Facility Members — perform module-specific tasks when entering the simulation | |
virtual void | Build (cyclus::Agent *parent) |
— Facility Members — perform module-specific tasks when entering the simulation | |
virtual cyclus::Agent * | Clone () |
virtual void | EnterNotify () |
virtual void | EnterNotify () |
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 (cyclus::QueryableBackend *b) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitFrom (Source *m) |
virtual void | InitFrom (Source *m) |
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 | SetPackage () |
void | SetPackage () |
Private Attributes | |
std::vector< int > | cycpp_shape_inventory |
std::vector< int > | cycpp_shape_inventory_size |
std::vector< int > | cycpp_shape_outcommod |
std::vector< int > | cycpp_shape_outrecipe |
std::vector< int > | cycpp_shape_package |
std::vector< int > | cycpp_shape_throughput |
std::vector< int > | cycpp_shape_transport_unit |
cyclus::toolkit::ResBuf< cyclus::Material > | inventory |
double | inventory_size |
std::string | outcommod |
std::string | outrecipe |
std::string | package |
double | throughput |
std::string | transport_unit |
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 27 of file build/cycamore/source.h.
cycamore::Source::Source | ( | cyclus::Context * | ctx | ) |
Definition at line 12 of file build/cycamore/source.cc.
References inventory_size, package, throughput, and transport_unit.
Referenced by cycamore::ConstructSource(), and InitFrom().
|
virtual |
Definition at line 19 of file build/cycamore/source.cc.
cycamore::Source::Source | ( | cyclus::Context * | ctx | ) |
|
virtual |
|
inlinevirtual |
Definition at line 100 of file build/cycamore/source.h.
|
virtual |
— Facility Members — perform module-specific tasks when entering the simulation
Definition at line 115 of file build/cycamore/source.cc.
References inventory, inventory_size, and outrecipe.
|
virtual |
— Facility Members — perform module-specific tasks when entering the simulation
|
inlinevirtual |
Definition at line 42 of file build/cycamore/source.h.
References InitFrom().
|
virtual |
Definition at line 110 of file build/cycamore/source.cc.
|
virtual |
|
virtual |
Definition at line 131 of file build/cycamore/source.cc.
References inventory, outcommod, outrecipe, package, str(), throughput, and transport_unit.
|
virtual |
|
virtual |
Definition at line 187 of file build/cycamore/source.cc.
References inventory, outcommod, outrecipe, package, and transport_unit.
|
virtual |
References inventory, inventory_size, outcommod, outrecipe, package, throughput, and transport_unit.
|
inlinevirtual |
Definition at line 193 of file build/cycamore/source.h.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory_size, outcommod, outrecipe, package, throughput, and transport_unit.
|
virtual |
Definition at line 53 of file build/cycamore/source.cc.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory, inventory_size, outcommod, outrecipe, throughput, and transport_unit.
|
virtual |
|
virtual |
Definition at line 21 of file build/cycamore/source.cc.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory, inventory_size, outcommod, outrecipe, Source(), throughput, and transport_unit.
Referenced by Clone().
|
inlinevirtual |
Definition at line 315 of file build/cycamore/source.h.
References inventory.
|
inlinevirtual |
Definition at line 48 of file build/cycamore/source.h.
|
private |
|
private |
|
inlinevirtual |
Definition at line 295 of file build/cycamore/source.h.
References cycpp_shape_inventory_size, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory_size, outcommod, outrecipe, package, throughput, and transport_unit.
|
inlinevirtual |
Definition at line 308 of file build/cycamore/source.h.
References inventory.
|
virtual |
Definition at line 88 of file build/cycamore/source.cc.
References outcommod, outrecipe, and throughput.
Referenced by GetMatlBids().
|
virtual |
|
inlinevirtual |
Definition at line 325 of file build/cycamore/source.h.
|
inlinevirtual |
Definition at line 62 of file src/source.h.
|
inlinevirtual |
Definition at line 327 of file build/cycamore/source.h.
|
inlinevirtual |
Definition at line 64 of file src/source.h.
|
inlinevirtual |
Definition at line 37 of file build/cycamore/source.h.
References CYCAMORE_VERSION.
|
inlinevirtual |
Definition at line 35 of file src/source.h.
References CYCAMORE_VERSION.
|
friend |
Definition at line 30 of file build/cycamore/source.h.
References SourceTest.
Referenced by SourceTest.
|
private |
Definition at line 395 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
private |
Definition at line 367 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 353 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 360 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 381 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 374 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 388 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 394 of file build/cycamore/source.h.
Referenced by Build(), GetMatlBids(), GetMatlTrades(), InitFrom(), InitFrom(), InitInv(), and SnapshotInv().
|
private |
Definition at line 366 of file build/cycamore/source.h.
Referenced by Build(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Source().
|
private |
Definition at line 352 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), cycamore::SourceTest::outcommod(), cycamore::SourceTest::outcommod(), Snapshot(), and str().
|
private |
Definition at line 359 of file build/cycamore/source.h.
Referenced by Build(), GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), cycamore::SourceTest::outrecipe(), cycamore::SourceTest::outrecipe(), Snapshot(), and str().
|
private |
Definition at line 380 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), Snapshot(), and Source().
|
private |
Definition at line 373 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), Source(), str(), cycamore::SourceTest::throughput(), and cycamore::SourceTest::throughput().
|
private |
Definition at line 387 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Source().