pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Abstract interface for treatment classes. More...
#include <treatments.hpp>
Public Member Functions | |
virtual unsigned | get_start ()=0 |
virtual unsigned | get_end ()=0 |
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 void | apply_treatment_mortality (IntegerRaster &infected, const std::vector< std::vector< int >> &spatial_indeices)=0 |
virtual | ~AbstractTreatment () |
Abstract interface for treatment classes.
The class is meant for better internal code layout and, at this point, it is not meant as a universal matured interface for treatments. Functions apply_treatment and end_treatment are examples where we account for the current concrete classes and will introduce more general set of parameters only when needed for additional classes.
Definition at line 79 of file treatments.hpp.
|
inlinevirtual |
Definition at line 100 of file treatments.hpp.
|
pure virtual |
|
pure virtual |
Implemented in pops::BaseTreatment< IntegerRaster, FloatRaster >.
|
pure virtual |
|
pure virtual |
Implemented in pops::BaseTreatment< IntegerRaster, FloatRaster >.
|
pure virtual |
Implemented in pops::BaseTreatment< IntegerRaster, FloatRaster >.
|
pure virtual |
|
pure virtual |