CYCAMORE
|
Mixer mixes N streams with fixed, static, user-specified ratios into a single output stream. More...
#include <mixer.h>
Public Member Functions | |
virtual void | AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
virtual void | AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses) |
virtual Json::Value | annotations () |
virtual cyclus::Agent * | Clone () |
virtual void | EnterNotify () |
virtual void | EnterNotify () |
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > | GetMatlRequests () |
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > | GetMatlRequests () |
virtual void | InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di) |
virtual void | InitFrom (cycamore::Mixer *m) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitInv (cyclus::Inventories &inv) |
virtual void | InitInv (cyclus::Inventories &inv) |
Mixer (cyclus::Context *ctx) | |
Mixer (cyclus::Context *ctx) | |
virtual std::string | schema () |
virtual void | Snapshot (cyclus::DbInit di) |
virtual cyclus::Inventories | SnapshotInv () |
virtual cyclus::Inventories | SnapshotInv () |
virtual void | Tick () |
virtual void | Tick () |
virtual void | Tock () |
virtual void | Tock () |
virtual | ~Mixer () |
virtual | ~Mixer () |
Protected Attributes | |
std::vector< int > | cycpp_shape_out_buf_size |
std::vector< int > | cycpp_shape_out_commod |
std::vector< int > | cycpp_shape_output |
std::vector< int > | cycpp_shape_streams_ |
std::vector< int > | cycpp_shape_throughput |
std::vector< double > | in_buf_sizes |
std::vector< std::map< std::string, double > > | in_commods |
std::vector< double > | mixing_ratios |
double | out_buf_size |
std::string | out_commod |
cyclus::toolkit::ResBuf< cyclus::Material > | output |
std::map< cyclus::Request< cyclus::Material > *, std::string > | req_inventories_ |
cyclus::toolkit::MatlSellPolicy | sell_policy |
std::map< std::string, cyclus::toolkit::ResBuf< cyclus::Material > > | streambufs |
std::vector< std::pair< std::pair< double, double >, std::map< std::string, double > > > | streams_ |
double | throughput |
Private Member Functions | |
void | RecordPosition () |
Records an agent's latitude and longitude to the output db. More... | |
void | RecordPosition () |
Records an agent's latitude and longitude to the output db. More... | |
Private Attributes | |
cyclus::toolkit::Position | coordinates |
std::vector< int > | cycpp_shape_latitude |
std::vector< int > | cycpp_shape_longitude |
double | latitude |
double | longitude |
Friends | |
class | MixerTest |
Mixer mixes N streams with fixed, static, user-specified ratios into a single output stream.
The Mixer has N input inventories: one for each streams to be mixed, and one output stream. The supplying of mixed material is constrained by available inventory of mixed material quantities.
Definition at line 17 of file _tmp_build/cycamore/mixer.h.
cycamore::Mixer::Mixer | ( | cyclus::Context * | ctx | ) |
Definition at line 9 of file _tmp_build/cycamore/mixer.cc.
References RecordPosition().
Referenced by cycamore::ConstructMixer().
|
inlinevirtual |
Definition at line 27 of file _tmp_build/cycamore/mixer.h.
References Tick().
cycamore::Mixer::Mixer | ( | cyclus::Context * | ctx | ) |
|
inlinevirtual |
Definition at line 31 of file src/mixer.h.
References Tick().
|
virtual |
Definition at line 178 of file _tmp_build/cycamore/mixer.cc.
References req_inventories_, streambufs, and cycamore::string.
Referenced by Tock().
|
virtual |
|
inlinevirtual |
Definition at line 283 of file _tmp_build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 39 of file _tmp_build/cycamore/mixer.h.
References InitFrom().
|
virtual |
Definition at line 48 of file _tmp_build/cycamore/mixer.cc.
References in_buf_sizes, in_commods, mixing_ratios, out_commod, output, sell_policy, streambufs, streams_, and cycamore::string.
Referenced by cycamore::MixerTest::GetStreamBuffer(), cycamore::TEST_F(), and Tock().
|
virtual |
|
virtual |
Definition at line 133 of file _tmp_build/cycamore/mixer.cc.
References in_commods, mixing_ratios, req_inventories_, streambufs, and cycamore::string.
Referenced by Tock().
|
virtual |
|
inlinevirtual |
Definition at line 71 of file _tmp_build/cycamore/mixer.h.
References cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, latitude, longitude, out_buf_size, out_commod, streams_, cycamore::string, and throughput.
|
inlinevirtual |
Definition at line 46 of file _tmp_build/cycamore/mixer.h.
References cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, latitude, longitude, out_buf_size, out_commod, output, streams_, and throughput.
Referenced by Clone().
|
inlinevirtual |
Definition at line 196 of file _tmp_build/cycamore/mixer.h.
References cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, latitude, longitude, out_buf_size, out_commod, output, streams_, cycamore::string, and throughput.
|
virtual |
|
virtual |
Definition at line 38 of file _tmp_build/cycamore/mixer.cc.
References output, and streambufs.
Referenced by Snapshot(), and Tock().
|
private |
Records an agent's latitude and longitude to the output db.
|
private |
Records an agent's latitude and longitude to the output db.
Definition at line 208 of file _tmp_build/cycamore/mixer.cc.
References latitude, longitude, and cycamore::string.
|
inlinevirtual |
Definition at line 222 of file _tmp_build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 348 of file _tmp_build/cycamore/mixer.h.
References cycpp_shape_latitude, cycpp_shape_longitude, cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_streams_, cycpp_shape_throughput, InitInv(), latitude, longitude, out_buf_size, out_commod, SnapshotInv(), streams_, and throughput.
|
virtual |
|
virtual |
Definition at line 20 of file _tmp_build/cycamore/mixer.cc.
References output, and streambufs.
Referenced by Snapshot(), and Tock().
|
virtual |
Definition at line 100 of file _tmp_build/cycamore/mixer.cc.
References mixing_ratios, out_commod, output, streambufs, cycamore::string, and throughput.
Referenced by cycamore::MixerTest::GetStreamBuffer(), cycamore::TEST_F(), and ~Mixer().
|
virtual |
|
inlinevirtual |
Definition at line 30 of file _tmp_build/cycamore/mixer.h.
References AcceptMatlTrades(), EnterNotify(), and GetMatlRequests().
|
inlinevirtual |
Definition at line 34 of file src/mixer.h.
References AcceptMatlTrades(), coordinates, EnterNotify(), GetMatlRequests(), in_buf_sizes, in_commods, InitInv(), latitude, longitude, mixing_ratios, out_buf_size, out_commod, output, RecordPosition(), req_inventories_, sell_policy, SnapshotInv(), streambufs, streams_, cycamore::string, and throughput.
|
friend |
Definition at line 23 of file _tmp_build/cycamore/mixer.h.
|
private |
Definition at line 434 of file _tmp_build/cycamore/mixer.h.
Referenced by Tock().
|
private |
Definition at line 423 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 430 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
protected |
Definition at line 395 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
protected |
Definition at line 388 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
protected |
Definition at line 401 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), and InitFrom().
|
protected |
Definition at line 372 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
protected |
Definition at line 408 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
protected |
Definition at line 377 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetStream_capacity(), cycamore::MixerTest::SetStream_capacity(), and Tock().
|
protected |
Definition at line 376 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), GetMatlRequests(), and Tock().
|
private |
Definition at line 422 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and Tock().
|
private |
Definition at line 429 of file _tmp_build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and Tock().
|
protected |
Definition at line 378 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), GetMatlRequests(), cycamore::MixerTest::GetStream_ratio(), cycamore::MixerTest::SetStream_ratio(), Tick(), and Tock().
|
protected |
Definition at line 394 of file _tmp_build/cycamore/mixer.h.
Referenced by cycamore::MixerTest::GetOutStream_capacity(), InfileToDb(), InitFrom(), cycamore::MixerTest::SetOutStream_capacity(), Snapshot(), and Tock().
|
protected |
Definition at line 387 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetOutStream_comds(), InfileToDb(), InitFrom(), cycamore::MixerTest::SetOutStream_comds(), Snapshot(), Tick(), and Tock().
|
protected |
Definition at line 400 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetOutPutBuffer(), InitFrom(), InitInv(), SnapshotInv(), Tick(), and Tock().
|
protected |
Definition at line 414 of file _tmp_build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), GetMatlRequests(), and Tock().
|
protected |
Definition at line 417 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), and Tock().
|
protected |
Definition at line 382 of file _tmp_build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), EnterNotify(), GetMatlRequests(), cycamore::MixerTest::GetStreamBuffer(), InitInv(), cycamore::MixerTest::SetInputInv(), SnapshotInv(), Tick(), and Tock().
|
protected |
Definition at line 371 of file _tmp_build/cycamore/mixer.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), cycamore::MixerTest::SetIn_stream(), cycamore::MixerTest::SetStream_capacity(), cycamore::MixerTest::SetStream_ratio(), Snapshot(), and Tock().
|
protected |
Definition at line 407 of file _tmp_build/cycamore/mixer.h.
Referenced by cycamore::MixerTest::GetThroughput(), InfileToDb(), InitFrom(), cycamore::MixerTest::SetThroughput(), Snapshot(), Tick(), and Tock().