Stride Reference Manual  1.0
stride::ThresholdData Class Reference

#include <ThresholdData.h>

Collaboration diagram for stride::ThresholdData:
Collaboration graph

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...
 

Detailed Description

Definition at line 20 of file ThresholdData.h.

Constructor & Destructor Documentation

stride::ThresholdData::ThresholdData ( )
inline

Default constructor.

Definition at line 23 of file ThresholdData.h.

Member Function Documentation

void stride::ThresholdData::setThresholdInfected ( double  threshold)
inline
double stride::ThresholdData::getThresholdInfected ( ) const
inline
void stride::ThresholdData::setThresholdAdopted ( double  threshold)
inline
double stride::ThresholdData::getThresholdAdopted ( ) const
inline
double stride::ThresholdData::getFractionInfected ( ) const
inline
double stride::ThresholdData::getFractionAdopted ( ) const
inline
template<typename BehaviourPolicy , typename BeliefPolicy >
template void stride::ThresholdData::contact< Vaccination< Threshold< true, false > >, Threshold< true, true > > ( const Person< BehaviourPolicy, BeliefPolicy > *  p)

Member Data Documentation

unsigned int stride::ThresholdData::m_num_contacts
private

Definition at line 61 of file ThresholdData.h.

Referenced by contact(), getFractionAdopted(), and getFractionInfected().

unsigned int stride::ThresholdData::m_num_contacts_infected
private

Definition at line 62 of file ThresholdData.h.

Referenced by contact(), and getFractionInfected().

unsigned int stride::ThresholdData::m_num_contacts_adopted
private

Definition at line 63 of file ThresholdData.h.

Referenced by contact(), and getFractionAdopted().

double stride::ThresholdData::m_threshold_infected
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().

double stride::ThresholdData::m_threshold_adopted
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().


The documentation for this class was generated from the following files: