CYCAMORE
Loading...
Searching...
No Matches
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
15namespace cycamore {
16
17class SourceTest : public ::testing::Test {
18 public:
19 cyclus::TestContext tc;
20 TestFacility* trader;
23 double capacity;
24 cyclus::Composition::Ptr recipe;
25 cyclus::Package::Ptr package;
26 cyclus::TransportUnit::Ptr tu;
27
28 virtual void SetUp();
29 virtual void TearDown();
32
33 std::string outrecipe(cycamore::Source* s) { return s->outrecipe; }
34 std::string outcommod(cycamore::Source* s) { return s->outcommod; }
35 double throughput(cycamore::Source* s) { return s->throughput; }
36
37 void outrecipe(cycamore::Source* s, std::string recipe) {
38 s->outrecipe = recipe;
39 }
40 void outcommod(cycamore::Source* s, std::string commod) {
41 s->outcommod = commod;
42 }
43 void throughput(cycamore::Source* s, double val) { s->throughput = val; }
44
45 boost::shared_ptr<cyclus::ExchangeContext<cyclus::Material> > GetContext(
46 int nreqs, std::string commodity);
47};
48
49} // namespace cycamore
50
51#endif // CYCAMORE_SRC_SOURCE_TESTS_H_
void outcommod(cycamore::Source *s, std::string commod)
void throughput(cycamore::Source *s, double val)
cyclus::TransportUnit::Ptr tu
void outrecipe(cycamore::Source *s, std::string recipe)
std::string outrecipe(cycamore::Source *s)
virtual void TearDown()
cyclus::Composition::Ptr recipe
boost::shared_ptr< cyclus::ExchangeContext< cyclus::Material > > GetContext(int nreqs, std::string commodity)
std::string outcommod(cycamore::Source *s)
double throughput(cycamore::Source *s)
virtual void SetUp()
This facility acts as a source of material with a fixed throughput (per time step) capacity and a lif...