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. | |
void | RecordPosition () |
Records an agent's latitude and longitude to the output db. | |
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 19 of file build/cycamore/mixer.h.
cycamore::Mixer::Mixer | ( | cyclus::Context * | ctx | ) |
Definition at line 9 of file build/cycamore/mixer.cc.
References RecordPosition().
|
inlinevirtual |
Definition at line 29 of file build/cycamore/mixer.h.
cycamore::Mixer::Mixer | ( | cyclus::Context * | ctx | ) |
|
inlinevirtual |
Definition at line 33 of file src/mixer.h.
|
virtual |
Definition at line 176 of file build/cycamore/mixer.cc.
References req_inventories_, and streambufs.
|
virtual |
|
inlinevirtual |
Definition at line 285 of file build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 41 of file build/cycamore/mixer.h.
|
virtual |
Definition at line 48 of file build/cycamore/mixer.cc.
References in_buf_sizes, in_commods, mixing_ratios, out_commod, output, sell_policy, streambufs, and streams_.
|
virtual |
|
virtual |
Definition at line 132 of file build/cycamore/mixer.cc.
References in_commods, mixing_ratios, req_inventories_, and streambufs.
|
virtual |
|
inlinevirtual |
Definition at line 73 of file 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_, and throughput.
|
inlinevirtual |
Definition at line 48 of file 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.
|
inlinevirtual |
Definition at line 198 of file 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.
|
virtual |
Definition at line 38 of file build/cycamore/mixer.cc.
References output, and streambufs.
|
virtual |
|
private |
Records an agent's latitude and longitude to the output db.
Definition at line 206 of file build/cycamore/mixer.cc.
References latitude, and longitude.
Referenced by Mixer().
|
private |
Records an agent's latitude and longitude to the output db.
|
inlinevirtual |
Definition at line 224 of file build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 353 of file 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, latitude, longitude, out_buf_size, out_commod, streams_, and throughput.
|
virtual |
Definition at line 20 of file build/cycamore/mixer.cc.
References output, and streambufs.
|
virtual |
|
virtual |
Definition at line 100 of file build/cycamore/mixer.cc.
References mixing_ratios, out_commod, output, streambufs, and throughput.
|
virtual |
|
inlinevirtual |
Definition at line 32 of file build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 36 of file src/mixer.h.
|
friend |
Definition at line 25 of file build/cycamore/mixer.h.
|
private |
Definition at line 439 of file build/cycamore/mixer.h.
|
private |
Definition at line 428 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 435 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 400 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 393 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 406 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
protected |
Definition at line 377 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 413 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 382 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetStream_capacity(), and cycamore::MixerTest::SetStream_capacity().
|
protected |
Definition at line 381 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), and GetMatlRequests().
|
private |
Definition at line 427 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
private |
Definition at line 434 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
protected |
Definition at line 383 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), GetMatlRequests(), cycamore::MixerTest::GetStream_ratio(), cycamore::MixerTest::SetStream_ratio(), and Tick().
|
protected |
Definition at line 399 of file build/cycamore/mixer.h.
Referenced by cycamore::MixerTest::GetOutStream_capacity(), InfileToDb(), InitFrom(), InitFrom(), cycamore::MixerTest::SetOutStream_capacity(), and Snapshot().
|
protected |
Definition at line 392 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetOutStream_comds(), InfileToDb(), InitFrom(), InitFrom(), cycamore::MixerTest::SetOutStream_comds(), Snapshot(), and Tick().
|
protected |
Definition at line 405 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), cycamore::MixerTest::GetOutPutBuffer(), InitFrom(), InitFrom(), InitInv(), SnapshotInv(), and Tick().
|
protected |
Definition at line 419 of file build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), and GetMatlRequests().
|
protected |
Definition at line 422 of file build/cycamore/mixer.h.
Referenced by EnterNotify().
|
protected |
Definition at line 387 of file build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), EnterNotify(), GetMatlRequests(), cycamore::MixerTest::GetStreamBuffer(), InitInv(), cycamore::MixerTest::SetInputInv(), SnapshotInv(), and Tick().
|
protected |
Definition at line 376 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), InitFrom(), cycamore::MixerTest::SetIn_stream(), cycamore::MixerTest::SetStream_capacity(), cycamore::MixerTest::SetStream_ratio(), and Snapshot().
|
protected |
Definition at line 412 of file build/cycamore/mixer.h.
Referenced by cycamore::MixerTest::GetThroughput(), InfileToDb(), InitFrom(), InitFrom(), cycamore::MixerTest::SetThroughput(), Snapshot(), and Tick().