Stride Reference Manual
- generated for commit 9643b11
Main Page
Namespaces
Classes
Files
File List
File Members
TransmissionProfile.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 2017, Kuylen E, Willem L, Broeckhove J
14
*/
15
21
#pragma once
22
23
#include <boost/property_tree/ptree.hpp>
24
25
namespace
stride
{
26
30
class
TransmissionProfile
31
{
32
public
:
34
TransmissionProfile
() :
m_transmission_probability
(0.0) {}
35
37
double
GetProbability
()
const
{
return
m_transmission_probability
; }
38
40
void
Initialize
(
const
boost::property_tree::ptree& configPt,
const
boost::property_tree::ptree& diseasePt);
41
42
private
:
43
double
m_transmission_probability
;
44
};
45
46
}
// namespace stride
stride::TransmissionProfile::m_transmission_probability
double m_transmission_probability
Definition:
TransmissionProfile.h:43
stride::TransmissionProfile::TransmissionProfile
TransmissionProfile()
Initialize.
Definition:
TransmissionProfile.h:34
stride::TransmissionProfile
Transmission probabilities from disease data.
Definition:
TransmissionProfile.h:30
stride::TransmissionProfile::GetProbability
double GetProbability() const
Return transmission probability.
Definition:
TransmissionProfile.h:37
stride
Namespace for the simulator and related classes.
Definition:
Calendar.cpp:28
stride::TransmissionProfile::Initialize
void Initialize(const boost::property_tree::ptree &configPt, const boost::property_tree::ptree &diseasePt)
Initialize.
Definition:
TransmissionProfile.cpp:31
main
cpp
contact
TransmissionProfile.h
Generated on Wed Aug 14 2019 13:28:19 for Stride Reference Manual by
1.8.11