Stride Reference Manual  - generated for commit 9643b11
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SurveySeeder.h
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2018, Kuylen E, Willem L, Broeckhove J
14  */
15 
21 #pragma once
22 
23 #include <boost/property_tree/ptree_fwd.hpp>
24 #include <memory>
25 
26 namespace stride {
27 
28 class Population;
29 
30 namespace util {
31 class RnMan;
32 }
33 
38 {
39 public:
43  SurveySeeder(const boost::property_tree::ptree& config, util::RnMan& rnMan);
44 
47  std::shared_ptr<Population> Seed(std::shared_ptr<Population> pop);
48 
49 private:
50  const boost::property_tree::ptree& m_config;
52 };
53 
54 } // namespace stride
Seeds the population with survey participants.
Definition: SurveySeeder.h:37
util::RnMan & m_rn_man
Random number manager.
Definition: SurveySeeder.h:51
const boost::property_tree::ptree & m_config
Run config.
Definition: SurveySeeder.h:50
Namespace for the simulator and related classes.
Definition: Calendar.cpp:28