![]() |
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 |
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 throughput.
|
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 174 of file build/cycamore/mixer.cc.
References req_inventories_, and streambufs.
|
virtual |
|
inlinevirtual |
Definition at line 290 of file build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 41 of file build/cycamore/mixer.h.
References InitFrom().
|
virtual |
Definition at line 44 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 130 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_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, out_buf_size, out_commod, streams_, and throughput.
|
inlinevirtual |
Definition at line 48 of file build/cycamore/mixer.h.
References cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, out_buf_size, out_commod, output, streams_, and throughput.
Referenced by Clone().
|
inlinevirtual |
Definition at line 198 of file build/cycamore/mixer.h.
References cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_output, cycpp_shape_streams_, cycpp_shape_throughput, out_buf_size, out_commod, output, streams_, and throughput.
|
virtual |
Definition at line 34 of file build/cycamore/mixer.cc.
References output, and streambufs.
|
virtual |
References in_buf_sizes, in_commods, mixing_ratios, out_buf_size, out_commod, output, req_inventories_, sell_policy, streambufs, streams_, and throughput.
|
inlinevirtual |
Definition at line 224 of file build/cycamore/mixer.h.
|
inlinevirtual |
Definition at line 358 of file build/cycamore/mixer.h.
References cycpp_shape_out_buf_size, cycpp_shape_out_commod, cycpp_shape_streams_, cycpp_shape_throughput, out_buf_size, out_commod, streams_, and throughput.
|
virtual |
Definition at line 16 of file build/cycamore/mixer.cc.
References output, and streambufs.
|
virtual |
|
virtual |
Definition at line 98 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.
References MixerTest.
Referenced by MixerTest.
|
protected |
Definition at line 405 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 398 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 411 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
protected |
Definition at line 382 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 418 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
protected |
Definition at line 387 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), and InitInv().
|
protected |
Definition at line 386 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), GetMatlRequests(), and InitInv().
|
protected |
Definition at line 388 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), GetMatlRequests(), InitInv(), and Tick().
|
protected |
Definition at line 404 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), InitInv(), and Snapshot().
|
protected |
Definition at line 397 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), InitFrom(), InitInv(), Snapshot(), and Tick().
|
protected |
Definition at line 410 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), InitFrom(), InitFrom(), InitInv(), SnapshotInv(), and Tick().
|
protected |
Definition at line 424 of file build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), GetMatlRequests(), and InitInv().
|
protected |
Definition at line 427 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), and InitInv().
|
protected |
Definition at line 392 of file build/cycamore/mixer.h.
Referenced by AcceptMatlTrades(), EnterNotify(), GetMatlRequests(), InitInv(), SnapshotInv(), and Tick().
|
protected |
Definition at line 381 of file build/cycamore/mixer.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), InitFrom(), InitInv(), and Snapshot().
|
protected |
Definition at line 417 of file build/cycamore/mixer.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), InitInv(), Mixer(), Snapshot(), and Tick().