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 | RecordPosition () |
void | RecordPosition () |
void | SetPackage () |
void | SetPackage () |
Private Attributes | |
cyclus::toolkit::Position | coordinates |
std::vector< int > | cycpp_shape_inventory |
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_package |
std::vector< int > | cycpp_shape_throughput |
std::vector< int > | cycpp_shape_transport_unit |
cyclus::toolkit::ResBuf< cyclus::Material > | inventory |
double | inventory_size |
double | latitude |
double | longitude |
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.
Referenced by cycamore::ConstructSource().
|
virtual |
Definition at line 22 of file build/cycamore/source.cc.
cycamore::Source::Source | ( | cyclus::Context * | ctx | ) |
|
virtual |
|
inlinevirtual |
Definition at line 92 of file build/cycamore/source.h.
|
virtual |
— Facility Members — perform module-specific tasks when entering the simulation
Definition at line 118 of file build/cycamore/source.cc.
References inventory, inventory_size, and outrecipe.
Referenced by cycamore::SourceTest::SetUp().
|
virtual |
— Facility Members — perform module-specific tasks when entering the simulation
|
inlinevirtual |
Definition at line 42 of file build/cycamore/source.h.
|
virtual |
Definition at line 113 of file build/cycamore/source.cc.
References RecordPosition().
|
virtual |
|
virtual |
Definition at line 134 of file build/cycamore/source.cc.
References inventory, outcommod, outrecipe, package, str(), throughput, and transport_unit.
|
virtual |
|
virtual |
Definition at line 190 of file build/cycamore/source.cc.
References inventory, outcommod, outrecipe, package, and transport_unit.
|
virtual |
|
inlinevirtual |
Definition at line 185 of file build/cycamore/source.h.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory_size, latitude, longitude, outcommod, outrecipe, package, throughput, and transport_unit.
|
virtual |
Definition at line 56 of file build/cycamore/source.cc.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory, inventory_size, latitude, longitude, outcommod, outrecipe, throughput, and transport_unit.
|
virtual |
|
virtual |
Definition at line 24 of file build/cycamore/source.cc.
References cycpp_shape_inventory, cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory, inventory_size, latitude, longitude, outcommod, outrecipe, throughput, and transport_unit.
|
virtual |
|
inlinevirtual |
Definition at line 307 of file build/cycamore/source.h.
References inventory.
|
private |
Definition at line 238 of file build/cycamore/source.cc.
References latitude, and longitude.
Referenced by EnterNotify().
|
private |
|
inlinevirtual |
Definition at line 48 of file build/cycamore/source.h.
|
private |
|
private |
|
inlinevirtual |
Definition at line 287 of file build/cycamore/source.h.
References cycpp_shape_inventory_size, cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_outcommod, cycpp_shape_outrecipe, cycpp_shape_package, cycpp_shape_throughput, cycpp_shape_transport_unit, inventory_size, latitude, longitude, outcommod, outrecipe, package, throughput, and transport_unit.
|
inlinevirtual |
Definition at line 300 of file build/cycamore/source.h.
References inventory.
|
virtual |
Definition at line 91 of file build/cycamore/source.cc.
References outcommod, outrecipe, and throughput.
Referenced by GetMatlBids().
|
virtual |
|
inlinevirtual |
Definition at line 317 of file build/cycamore/source.h.
|
inlinevirtual |
Definition at line 62 of file src/source.h.
|
inlinevirtual |
Definition at line 319 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.
|
private |
Definition at line 402 of file build/cycamore/source.h.
|
private |
Definition at line 398 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
private |
Definition at line 356 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 384 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 391 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 342 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 349 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 370 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 363 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 377 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 397 of file build/cycamore/source.h.
Referenced by Build(), GetMatlBids(), GetMatlTrades(), cycamore::Storage::InitFrom(), InitFrom(), cycamore::Storage::InitFrom(), InitFrom(), InitInv(), and SnapshotInv().
|
private |
Definition at line 355 of file build/cycamore/source.h.
Referenced by Build(), InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 383 of file build/cycamore/source.h.
Referenced by InfileToDb(), cycamore::Storage::InitFrom(), InitFrom(), cycamore::Storage::InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
private |
Definition at line 390 of file build/cycamore/source.h.
Referenced by InfileToDb(), cycamore::Storage::InitFrom(), InitFrom(), cycamore::Storage::InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
private |
Definition at line 341 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and str().
|
private |
Definition at line 348 of file build/cycamore/source.h.
Referenced by Build(), GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and str().
|
private |
Definition at line 369 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), and Snapshot().
|
private |
Definition at line 362 of file build/cycamore/source.h.
Referenced by GetMatlBids(), InfileToDb(), InitFrom(), cycamore::Storage::InitFrom(), InitFrom(), Snapshot(), and str().
|
private |
Definition at line 376 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), cycamore::Storage::InitFrom(), InitFrom(), cycamore::Storage::InitFrom(), InitFrom(), and Snapshot().