pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Simple treatment class. More...
#include <treatments.hpp>
Public Member Functions | |
SimpleTreatment (const FloatRaster &map, unsigned start, TreatmentApplication treatment_application) | |
bool | should_start (unsigned step) override |
bool | should_end (unsigned) override |
void | apply_treatment (IntegerRaster &infected, std::vector< IntegerRaster > &exposed, IntegerRaster &susceptible, IntegerRaster &resistant, IntegerRaster &total_hosts, const std::vector< std::vector< int >> &suitable_cells) override |
void | end_treatment (IntegerRaster &, IntegerRaster &, const std::vector< std::vector< int >> &) 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_ |
Simple treatment class.
Removes percentage (given by treatment efficiency) of infected and susceptible host (e.g. cut down trees).
Definition at line 157 of file treatments.hpp.
|
inline |
Definition at line 160 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 176 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 221 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 172 of file treatments.hpp.
|
inlineoverridevirtual |
Implements pops::AbstractTreatment< IntegerRaster, FloatRaster >.
Definition at line 166 of file treatments.hpp.