CYCLUS
Loading...
Searching...
No Matches
timeseries.cc
Go to the documentation of this file.
1#include "timeseries.h"
2
3namespace cyclus {
4namespace toolkit {
5
6std::map<std::string, std::vector<time_series_listener_t> > TIME_SERIES_LISTENERS;
7
8template <>
9void RecordTimeSeries<POWER>(cyclus::Agent* agent, double value, std::string units) {
10 RecordTimeSeries<double>("Power", agent, value, units);
11}
12
13template <>
14void RecordTimeSeries<ENRICH_SWU>(cyclus::Agent* agent, double value, std::string units) {
15 RecordTimeSeries<double>("EnrichmentSWU", agent, value, units);
16}
17
18template <>
19void RecordTimeSeries<ENRICH_FEED>(cyclus::Agent* agent, double value, std::string units) {
20 RecordTimeSeries<double>("EnrichmentFeed", agent, value, units);
21}
22
23} // namespace toolkit
24} // namespace cyclus
The abstract base class used by all types of agents that live and interact in a simulation.
Definition agent.h:49
void RecordTimeSeries< ENRICH_FEED >(cyclus::Agent *agent, double value, std::string units)
Definition timeseries.cc:19
void RecordTimeSeries< ENRICH_SWU >(cyclus::Agent *agent, double value, std::string units)
Definition timeseries.cc:14
void RecordTimeSeries< POWER >(cyclus::Agent *agent, double value, std::string units)
Definition timeseries.cc:9
std::map< std::string, std::vector< time_series_listener_t > > TIME_SERIES_LISTENERS
Definition timeseries.cc:6
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters