Class GDRelease#
Defined in File GDRelease.h
Inheritance Relationships#
Derived Types#
public RandomGDRelease
(Class RandomGDRelease)public SchedGDRelease
(Class SchedGDRelease)
Class Documentation#
-
class GDRelease
Gene drive release base class.
Defines the basic implementation of gene drive release in the model.
GDRelease classes implement the selection mechanism of the release sites from available patches and the release of gene drive mosquitoes into the Patch objects at the chosen release times. The number of drive heterozygous adult male mosquitoes released into each release site at each release time is determined by
num_driver_M
.Subclassed by RandomGDRelease, SchedGDRelease
Public Functions
-
inline GDRelease(int num_driver_M, std::vector<int> rel_times)
GDRelease constructor.
- Parameters:
num_driver_M – [in] number of drive heterozygous (WD) adult male mosquitoes per release
rel_times – [in] days on which the gene drive mosquitoes will be released
-
inline virtual ~GDRelease()
Protected Functions
-
bool is_release_time(int day)
Determines if the day is a chosen release time.
- Parameters:
day – [in] simulation day
- Returns:
As you would expect.
-
void put_driver_sites(std::vector<Patch*> &rel_sites)
Adds drive heterozygous (WD) adult male mosquitoes to the release sites.
Relevant parameters include the number of adult male driver mosquitoes to be released at each site
num_driver_M
.- Parameters:
rel_sites – [inout] release sites
Protected Attributes
-
int num_driver_M
Number of drive heterozygous (WD) adult male mosquitoes per release.
-
std::vector<int> release_times
Days on which the gene drive mosquitoes will be released.
-
inline GDRelease(int num_driver_M, std::vector<int> rel_times)