pops-core  0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
Public Member Functions | List of all members
pops::PesticideTreatment< IntegerRaster, FloatRaster > Class Template Reference

Pesticide treatment class. More...

#include <treatments.hpp>

Inheritance diagram for pops::PesticideTreatment< IntegerRaster, FloatRaster >:
Inheritance graph
[legend]
Collaboration diagram for pops::PesticideTreatment< IntegerRaster, FloatRaster >:
Collaboration graph
[legend]

Public Member Functions

 PesticideTreatment (const FloatRaster &map, unsigned start, unsigned end, TreatmentApplication treatment_application)
 
bool should_start (unsigned step) override
 
bool should_end (unsigned step) override
 
void apply_treatment (IntegerRaster &infected, std::vector< IntegerRaster > &exposed_vector, IntegerRaster &susceptible, IntegerRaster &resistant, IntegerRaster &total_hosts, const std::vector< std::vector< int >> &suitable_cells) override
 
void end_treatment (IntegerRaster &susceptible, IntegerRaster &resistant, const std::vector< std::vector< int >> &suitable_cells) override
 
- Public Member Functions inherited from pops::BaseTreatment< IntegerRaster, FloatRaster >
 BaseTreatment (const FloatRaster &map, unsigned start, TreatmentApplication treatment_application)
 
unsigned get_start () override
 
unsigned get_end () override
 
void apply_treatment_mortality (IntegerRaster &infected, const std::vector< std::vector< int >> &suitable_cells) override
 
- Public Member Functions inherited from pops::AbstractTreatment< IntegerRaster, FloatRaster >
virtual ~AbstractTreatment ()
 

Additional Inherited Members

- Protected Attributes inherited from pops::BaseTreatment< IntegerRaster, FloatRaster >
unsigned start_step_
 
unsigned end_step_
 
FloatRaster map_
 
TreatmentApplication application_
 

Detailed Description

template<typename IntegerRaster, typename FloatRaster>
class pops::PesticideTreatment< IntegerRaster, FloatRaster >

Pesticide treatment class.

Removes percentage (given by treatment efficiency) of infected and susceptible to resistant pool and after certain number of days back to susceptible.

Definition at line 235 of file treatments.hpp.

Constructor & Destructor Documentation

◆ PesticideTreatment()

template<typename IntegerRaster , typename FloatRaster >
pops::PesticideTreatment< IntegerRaster, FloatRaster >::PesticideTreatment ( const FloatRaster &  map,
unsigned  start,
unsigned  end,
TreatmentApplication  treatment_application 
)
inline

Definition at line 238 of file treatments.hpp.

Member Function Documentation

◆ apply_treatment()

template<typename IntegerRaster , typename FloatRaster >
void pops::PesticideTreatment< IntegerRaster, FloatRaster >::apply_treatment ( IntegerRaster &  infected,
std::vector< IntegerRaster > &  exposed_vector,
IntegerRaster &  susceptible,
IntegerRaster &  resistant,
IntegerRaster &  total_hosts,
const std::vector< std::vector< int >> &  suitable_cells 
)
inlineoverridevirtual

◆ end_treatment()

template<typename IntegerRaster , typename FloatRaster >
void pops::PesticideTreatment< IntegerRaster, FloatRaster >::end_treatment ( IntegerRaster &  susceptible,
IntegerRaster &  resistant,
const std::vector< std::vector< int >> &  suitable_cells 
)
inlineoverridevirtual

◆ should_end()

template<typename IntegerRaster , typename FloatRaster >
bool pops::PesticideTreatment< IntegerRaster, FloatRaster >::should_end ( unsigned  step)
inlineoverridevirtual

◆ should_start()

template<typename IntegerRaster , typename FloatRaster >
bool pops::PesticideTreatment< IntegerRaster, FloatRaster >::should_start ( unsigned  step)
inlineoverridevirtual

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