Stride Reference Manual
1.0
|
#include <ThresholdData.h>
Public Member Functions | |
ThresholdData () | |
Default constructor. More... | |
void | setThresholdInfected (double threshold) |
double | getThresholdInfected () const |
void | setThresholdAdopted (double threshold) |
double | getThresholdAdopted () const |
double | getFractionInfected () const |
double | getFractionAdopted () const |
template<typename BehaviourPolicy , typename BeliefPolicy > | |
void | contact (const Person< BehaviourPolicy, BeliefPolicy > *p) |
Private Attributes | |
unsigned int | m_num_contacts |
unsigned int | m_num_contacts_infected |
unsigned int | m_num_contacts_adopted |
double | m_threshold_infected |
Fraction of contacts that needs to be infected before person adopts belief. More... | |
double | m_threshold_adopted |
Fraction of contacts that needs to have adopted the belief for person to also adopt. More... | |
Definition at line 20 of file ThresholdData.h.
|
inline |
Default constructor.
Definition at line 23 of file ThresholdData.h.
|
inline |
Definition at line 27 of file ThresholdData.h.
References m_threshold_infected.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::initialize().
|
inline |
Definition at line 31 of file ThresholdData.h.
References m_threshold_infected.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::hasAdopted().
|
inline |
Definition at line 35 of file ThresholdData.h.
References m_threshold_adopted.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::initialize().
|
inline |
Definition at line 39 of file ThresholdData.h.
References m_threshold_adopted.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::hasAdopted().
|
inline |
Definition at line 43 of file ThresholdData.h.
References m_num_contacts, and m_num_contacts_infected.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::hasAdopted().
|
inline |
Definition at line 50 of file ThresholdData.h.
References contact(), m_num_contacts, and m_num_contacts_adopted.
Referenced by stride::Threshold< threshold_infected, threshold_adopted >::hasAdopted().
template void stride::ThresholdData::contact< Vaccination< Threshold< true, false > >, Threshold< true, true > > | ( | const Person< BehaviourPolicy, BeliefPolicy > * | p | ) |
Definition at line 14 of file ThresholdData.cpp.
References stride::Person< BehaviourPolicy, BeliefPolicy >::getBeliefData(), stride::Person< BehaviourPolicy, BeliefPolicy >::getHealth(), m_num_contacts, m_num_contacts_adopted, and m_num_contacts_infected.
Referenced by getFractionAdopted(), and stride::Threshold< threshold_infected, threshold_adopted >::update().
|
private |
Definition at line 61 of file ThresholdData.h.
Referenced by contact(), getFractionAdopted(), and getFractionInfected().
|
private |
Definition at line 62 of file ThresholdData.h.
Referenced by contact(), and getFractionInfected().
|
private |
Definition at line 63 of file ThresholdData.h.
Referenced by contact(), and getFractionAdopted().
|
private |
Fraction of contacts that needs to be infected before person adopts belief.
Definition at line 65 of file ThresholdData.h.
Referenced by getThresholdInfected(), and setThresholdInfected().
|
private |
Fraction of contacts that needs to have adopted the belief for person to also adopt.
Definition at line 66 of file ThresholdData.h.
Referenced by getThresholdAdopted(), and setThresholdAdopted().