![]() |
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.
References coordinates, inventory_size, latitude, longitude, package, throughput, and transport_unit.
Referenced by cycamore::ConstructSource(), and InitFrom().
|
virtual |
Definition at line 22 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 118 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 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 |
References coordinates, inventory, inventory_size, latitude, longitude, 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_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, Source(), throughput, and transport_unit.
Referenced by Clone().
|
inlinevirtual |
Definition at line 315 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 295 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 308 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 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 410 of file build/cycamore/source.h.
Referenced by GetMatlTrades(), and Source().
|
private |
Definition at line 406 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
private |
Definition at line 364 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 392 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 399 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 350 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 357 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 378 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 371 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 385 of file build/cycamore/source.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 405 of file build/cycamore/source.h.
Referenced by Build(), GetMatlBids(), GetMatlTrades(), InitFrom(), InitFrom(), InitInv(), and SnapshotInv().
|
private |
Definition at line 363 of file build/cycamore/source.h.
Referenced by Build(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Source().
|
private |
Definition at line 391 of file build/cycamore/source.h.
Referenced by GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), Snapshot(), and Source().
|
private |
Definition at line 398 of file build/cycamore/source.h.
Referenced by GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), Snapshot(), and Source().
|
private |
Definition at line 349 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 356 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 377 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), Snapshot(), and Source().
|
private |
Definition at line 370 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 384 of file build/cycamore/source.h.
Referenced by GetMatlBids(), GetMatlTrades(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Source().