Stride Reference Manual  1.0
ThresholdData.cpp
Go to the documentation of this file.
1 /*
2  * ThresholdData.cpp
3  *
4  * Created on: May 8, 2017
5  * Author: elise
6  */
7 
8 #include "ThresholdData.h"
9 #include "pop/Person.h"
10 
11 namespace stride {
12 
13 template<typename BehaviourPolicy, typename BeliefPolicy>
16  if (p->getHealth().isSymptomatic()) {
18  }
19  const auto other_belief_data = p->getBeliefData();
20  if (BeliefPolicy::hasAdopted(other_belief_data)) {
22  }
23 }
24 
25 template void ThresholdData::contact<Vaccination<Threshold<true, false>>, Threshold<true, false>>(
27 
28 template void ThresholdData::contact<Vaccination<Threshold<true, false>>, Threshold<false, true>>(
29  const Person<Vaccination<Threshold<true, false>>, Threshold<false, true>>* p);
30 
31 template void ThresholdData::contact<Vaccination<Threshold<true, false>>, Threshold<true, true>>(
32  const Person<Vaccination<Threshold<true, false>>, Threshold<true, true>>* p);
33 
34 
35 }
unsigned int m_num_contacts
Definition: ThresholdData.h:61
unsigned int m_num_contacts_adopted
Definition: ThresholdData.h:63
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
Header file for the Person class.
Forward declaration of class Person.
Definition: ThresholdData.h:15
const BeliefPolicy::Data & getBeliefData() const
Return person&#39;s belief status.
Definition: Person.h:85
unsigned int m_num_contacts_infected
Definition: ThresholdData.h:62
Health & getHealth()
Return person&#39;s health status.
Definition: Person.h:79
void contact(const Person< BehaviourPolicy, BeliefPolicy > *p)