Class GDRelease#

Inheritance Relationships#

Derived Types#

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()
void release_gene_drive(int day, std::vector<Patch*> &sites)

Releases the gene drive mosquitoes into the simulation area if it is time for release.

Parameters:
  • day[in] simulation day

  • sites[inout] vector of all Patch objects

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.

virtual std::vector<Patch*> select_driver_sites(int day, const std::vector<Patch*> &sites) = 0
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.