CYCAMORE
src/source_tests.h
Go to the documentation of this file.
1 #ifndef CYCAMORE_SRC_SOURCE_TESTS_H_
2 #define CYCAMORE_SRC_SOURCE_TESTS_H_
3 #include "source.h"
4 
5 #include <gtest/gtest.h>
6 
7 #include <boost/shared_ptr.hpp>
8 
9 #include "agent_tests.h"
10 #include "context.h"
11 #include "exchange_context.h"
12 #include "facility_tests.h"
13 #include "material.h"
14 
15 namespace cycamore {
16 
17 class SourceTest : public ::testing::Test {
18  public:
19  cyclus::TestContext tc;
20  TestFacility* trader;
23  double capacity;
24  cyclus::Composition::Ptr recipe;
25 
26  virtual void SetUp();
27  virtual void TearDown();
28  void InitParameters();
29  void SetUpSource();
30 
33  double throughput(cycamore::Source* s) { return s->throughput; }
34 
36  s->outrecipe = recipe;
37  }
39  s->outcommod = commod;
40  }
41  void throughput(cycamore::Source* s, double val) { s->throughput = val; }
42 
43  boost::shared_ptr<cyclus::ExchangeContext<cyclus::Material> > GetContext(
44  int nreqs, std::string commodity);
45 };
46 
47 } // namespace cycamore
48 
49 #endif // CYCAMORE_SRC_SOURCE_TESTS_H_
This facility acts as a source of material with a fixed throughput (per time step) capacity and a lif...
double throughput(cycamore::Source *s)
std::string outrecipe(cycamore::Source *s)
void throughput(cycamore::Source *s, double val)
cycamore::GrowthRegion string
std::string outcommod(cycamore::Source *s)
boost::shared_ptr< cyclus::ExchangeContext< cyclus::Material > > GetContext(int nreqs, std::string commodity)
void outrecipe(cycamore::Source *s, std::string recipe)
void outcommod(cycamore::Source *s, std::string commod)