pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Base treatment class. More...
#include <treatments.hpp>
Public Member Functions | |
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 bool | should_start (unsigned step)=0 |
virtual bool | should_end (unsigned step)=0 |
virtual void | apply_treatment (IntegerRaster &infected, std::vector< IntegerRaster > &exposed, IntegerRaster &susceptible, IntegerRaster &resistant, IntegerRaster &total_hosts, const std::vector< std::vector< int >> &spatial_indeices)=0 |
virtual void | end_treatment (IntegerRaster &susceptible, IntegerRaster &resistant, const std::vector< std::vector< int >> &spatial_indeices)=0 |
virtual | ~AbstractTreatment () |
Protected Attributes | |
unsigned | start_step_ |
unsigned | end_step_ |
FloatRaster | map_ |
TreatmentApplication | application_ |
Base treatment class.
Holds functions common between all treatment classes.
Definition at line 108 of file treatments.hpp.
|
inline |
Definition at line 117 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 134 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 130 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 126 of file treatments.hpp.
|
protected |
Definition at line 114 of file treatments.hpp.
|
protected |
Definition at line 112 of file treatments.hpp.
|
protected |
Definition at line 113 of file treatments.hpp.
|
protected |
Definition at line 111 of file treatments.hpp.